What is the Lifespan State on FastAPI?

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024

ความคิดเห็น • 29

  • @syedazeemjaved
    @syedazeemjaved 5 หลายเดือนก่อน +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,

  • @plankton383
    @plankton383 ปีที่แล้ว +2

    I love FastAPI, keep up the good work!

  • @alexandrodisla6285
    @alexandrodisla6285 ปีที่แล้ว

    Thanks!!! Come back for more awesome stuff.

    • @fastapiexpert
      @fastapiexpert  9 หลายเดือนก่อน

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

  • @2cyclone493
    @2cyclone493 ปีที่แล้ว +1

    welcome back and thanks to video

  • @philipokiokio3000
    @philipokiokio3000 ปีที่แล้ว

    Thank Marcelo this was top drawer stuff.

  • @salaheddineelfarissi101
    @salaheddineelfarissi101 9 หลายเดือนก่อน

    Thank you for the video.

  • @dx30-ln3blank7
    @dx30-ln3blank7 ปีที่แล้ว

    we need more

    • @fastapiexpert
      @fastapiexpert  ปีที่แล้ว

      I'm setting up a schedule. 😁

  • @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.

  • @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?

  • @apefu
    @apefu 2 หลายเดือนก่อน

    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 6 หลายเดือนก่อน

    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!

    • @fastapiexpert
      @fastapiexpert  9 หลายเดือนก่อน

      You are welcome! :)

  • @rafalsk99
    @rafalsk99 ปีที่แล้ว

    🔥❤️🙌

  • @shikhar2811
    @shikhar2811 ปีที่แล้ว

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

  • @DKLHensen
    @DKLHensen 4 หลายเดือนก่อน +1

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

  • @abhinasregmi9742
    @abhinasregmi9742 ปีที่แล้ว

    👍👍

  • @thisiscrispin
    @thisiscrispin 9 หลายเดือนก่อน

    Please create a larger advanced FastAPI tutorial!!

  • @gabrielatrylesinski7849
    @gabrielatrylesinski7849 ปีที่แล้ว

    👋👋👋

  • @ehfoss
    @ehfoss ปีที่แล้ว

    You're deprecating app.state from Starlite!?