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

Support for FastAPI framework #22

Open
pamelafox opened this issue Apr 22, 2024 · 4 comments
Open

Support for FastAPI framework #22

pamelafox opened this issue Apr 22, 2024 · 4 comments

Comments

@pamelafox
Copy link
Contributor

It's one of the top 3 popular Python web frameworks this day and is async only, so it's important for applications that make long network calls. Would love built-in support for it.

@jdoiro3
Copy link

jdoiro3 commented May 21, 2024

I'm using nicegui which is built with FastAPI and am close to getting it working but hit an issue with the session object since Starlette does not have a global session object like Flask. I tried to just pass a dict but that causes issues since that object is shared among all requests.

@rayluo, I wonder how hard it would be to implement a WebFrameworkAuth class for Starlette/FastAPI.

@rayluo
Copy link
Owner

rayluo commented May 21, 2024

how hard it would be

Not sure yet. Haven't started looking into FastAPI. But it is high priority in our feature TODO list, for the reasons that @pamelafox mentioned.

By the way, you can click the Watch button (which is near the Star button) from this repo's homepage to receive its future release notice.

@git-hamza
Copy link

Any update on this?

@stevstrong
Copy link

stevstrong commented Oct 24, 2024

Hi, I would love to hear some good news here, I am also trying to adapt the session object for FastAPI.
I would really appreciate any hints.

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

No branches or pull requests

5 participants