identity icon indicating copy to clipboard operation
identity copied to clipboard

Support for FastAPI framework

Open pamelafox opened this issue 1 year ago • 6 comments

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.

pamelafox avatar Apr 22 '24 21:04 pamelafox

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.

jdoiro3 avatar May 21 '24 19:05 jdoiro3

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.

rayluo avatar May 21 '24 20:05 rayluo

Any update on this?

git-hamza avatar Aug 01 '24 20:08 git-hamza

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.

stevstrong avatar Oct 24 '24 14:10 stevstrong

I would like to second the request for identity support of fastapi. @rayluo do you have suggestions on how to get started with a PR that would include fastapi support?

pwm1234-sri avatar Sep 03 '25 21:09 pwm1234-sri