What is the Lifespan State on FastAPI?
HTML-код
- Опубликовано: 13 сен 2024
- The lifespan state is a new feature introduced recently, and on this video I talk about it, and the way it should be used.
This idea was introduced on github.com/dja....
Social:
/ marcelotryle
/ marcelotryle
github.com/Kludex
/ marcelotryle
Such an underrated channel, really love the videos.
Finally someone who produces content for users other than beginners.
Thanks!
thank you Marcelo, can you please talk about examples of projects or a series of project like micro services, hexagonal architecture , repository pattern, as a Fastapi expert that would be very helpful for the community and would be a real plus in a our journey as junior to mid developpers.
thanks,
welcome back and thanks to video
I love FastAPI, keep up the good work!
Thanks!
we need more
I'm setting up a schedule. 😁
Thank Marcelo this was top drawer stuff.
Thanks!
Thanks!!! Come back for more awesome stuff.
You are welcome! :)
I'll record some videos today! :)
Thank you for the video.
If I have a big application with multiple files, can I access app.state within the router object? Like router.state or something similar?
Please create a larger advanced FastAPI tutorial!!
So.. how would this be managed in a post request? What about routers? Do I need to recreate the client for every router even if the talk to the same service?
so you are saying we should always use request.state, does this also apply to a database state being define the lifespan?
Thank you very much!
You are welcome! :)
good content only gets 3.2K in 1 year. We need to filter out YT video's like this
Thanks! :)
🔥❤️🙌
Thank you for this very helpful video. If we wanted to properly type hint your lifespan function, how would you do it? Also, is any way to recieve typehints on the request state from within an endpoint? Thank you.
Just a suggestion please turn up the font size, while streaming.
I'll do that, thanks 😁
👋👋👋
👍👍
You're deprecating app.state from Starlite!?
Looks like it