Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to FastAPI #108

Open
banesullivan opened this issue Jul 26, 2022 · 4 comments
Open

Switch to FastAPI #108

banesullivan opened this issue Jul 26, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@banesullivan
Copy link
Owner

Flask has been giving me too many headaches lately, and I've been wanting to learn/use FastAPI.

I'm going to rewrite the internals of localtileserver to strip out flask and use fastapi. The average user will see not change in the Python API, but any projects using the flask blueprint (I think I'm the only person doing that) will no longer be supported.

When this lands, it will completely change the dependencies (hopefully making them lighter).

@banesullivan banesullivan added the enhancement New feature or request label Jul 26, 2022
@banesullivan
Copy link
Owner Author

It seems there's at least one stakeholder project using the flask app: https://github.com/supervisionearth/svs-tileserver

But they seem to be using a fork so I may go ahead and do this change when I have free time

@meteoDaniel
Copy link

Dear @banesullivan where is the difference between localtileserver and https://developmentseed.org/titiler/ ? They are using FastAPI as backend.

@vincentsarago
Copy link

@meteoDaniel Titiler uses rio-tiler/rasterio for data access while localtileserver uses the large-image module.

@banesullivan
Copy link
Owner Author

Exactly correct, @vincentsarago! Thanks for chiming in!

localtileserver is honestly a hobby/toy project of mine, and I never thought it would get as many users as it has. I'm hoping to refactor this entirely to only support Jupyter and CLI usage which would drop support for using localtileserver as microservivce in favor of titiler.

Then I also want to experiment with using rio-tiler as the backend for this... but maybe it makes more sense for me to just contribute to rio-viz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants