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

Комментарии • 29

  • @syedazeemjaved
    @syedazeemjaved 4 месяца назад +1

    Such an underrated channel, really love the videos.
    Finally someone who produces content for users other than beginners.

  • @maroben225
    @maroben225 Год назад +3

    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,

  • @2cyclone493
    @2cyclone493 Год назад +1

    welcome back and thanks to video

  • @plankton383
    @plankton383 Год назад +1

    I love FastAPI, keep up the good work!

  • @dx30-ln3blank7
    @dx30-ln3blank7 Год назад

    we need more

  • @philipokiokio3000
    @philipokiokio3000 Год назад

    Thank Marcelo this was top drawer stuff.

  • @alexandrodisla6285
    @alexandrodisla6285 Год назад

    Thanks!!! Come back for more awesome stuff.

    • @fastapiexpert
      @fastapiexpert  8 месяцев назад

      You are welcome! :)
      I'll record some videos today! :)

  • @salaheddineelfarissi101
    @salaheddineelfarissi101 8 месяцев назад

    Thank you for the video.

  • @rodrigocezarluzbrochado7260
    @rodrigocezarluzbrochado7260 Год назад +1

    If I have a big application with multiple files, can I access app.state within the router object? Like router.state or something similar?

  • @thisiscrispin
    @thisiscrispin 7 месяцев назад

    Please create a larger advanced FastAPI tutorial!!

  • @apefu
    @apefu Месяц назад

    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?

  • @adeyemidamilola396
    @adeyemidamilola396 5 месяцев назад

    so you are saying we should always use request.state, does this also apply to a database state being define the lifespan?

  • @KiotoKun1
    @KiotoKun1 Год назад

    Thank you very much!

  • @DKLHensen
    @DKLHensen 2 месяца назад +1

    good content only gets 3.2K in 1 year. We need to filter out YT video's like this

  • @rafalsk99
    @rafalsk99 Год назад

    🔥❤️🙌

  • @hwong557
    @hwong557 Год назад

    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.

  • @shikhar2811
    @shikhar2811 Год назад

    Just a suggestion please turn up the font size, while streaming.

  • @gabrielatrylesinski7849
    @gabrielatrylesinski7849 Год назад

    👋👋👋

  • @abhinasregmi9742
    @abhinasregmi9742 Год назад

    👍👍

  • @ehfoss
    @ehfoss Год назад

    You're deprecating app.state from Starlite!?