FastAPI

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2021 Aug 4 11:24
Editor
Edited
Edited
2024 May 23 7:30
Refs
스택오버플로우 만족도가 높은 프레임워크
 
 
 
 
 
 
lifespan context manager
yield dictionary will be in app state dictionary
What you need to know about Startup and Shutdown Events in FastAPI and ASGI Applications
Get started in FastAPI, Starlette, and ASGI! How do startup and shutdown events work in FastAPI, Starlette, and other ASGI applications? ASGI defines startup and shutdown events through the "lifespan" of an application, which it models as a connection between the server and the app. In this video we see the right way to do it in FastAPI, Starlette, and then understand the lifespan connection type in general, which we use to build our own lifespan handler from scratch that mimics what FastAPI does. ― mCoding with James Murphy (https://mcoding.io) Source code: https://github.com/mCodingLLC/VideosSampleCode ASGI Spec: https://asgi.readthedocs.io/ App class video: https://youtu.be/ai7y--6ElAE SUPPORT ME ⭐ --------------------------------------------------- Sign up on Patreon to get your donor role and early access to videos! https://patreon.com/mCoding Feeling generous but don't have a Patreon? Donate via PayPal! (No sign up needed.) https://www.paypal.com/donate/?hosted_button_id=VJY5SLZ8BJHEE Want to donate crypto? Check out the rest of my supported donations on my website! https://mcoding.io/donate Top patrons and donors: Laura M, Jameson, Dragos C, Vahnekie, Neel R, Matt R, Johan A, Casey G, Mark M, Mutual Information, Pi BE ACTIVE IN MY COMMUNITY 😄 --------------------------------------------------- Discord: https://discord.gg/Ye9yJtZQuN Github: https://github.com/mCodingLLC/ Reddit: https://www.reddit.com/r/mCoding/ Facebook: https://www.facebook.com/james.mcoding CHAPTERS --------------------------------------------------- 0:00 Intro 0:32 Startup in FastAPI 2:38 What to do at startup? 4:00 Lifespan connections in ASGI 8:10 Comparing against FastAPI 12:30 An important pro-tip
What you need to know about Startup and Shutdown Events in FastAPI and ASGI Applications
FastAPI 톺아보기 - 부제: python 백엔드 봄은 온다
파이썬은 인공지능, 빅데이터 분석/처리 트렌드와 함께 엄청난 인기를 얻었다. 전부터 마니아층이 두꺼웠지만, 본격적인 인기는 두 개의 트렌드와 함께했다. 파이썬이 없었다면 이 모든게 가능했을까 싶은 정도니까. 하지만 백엔드 개발 분야는 Spring Framework의 아성에 도전할 수 없을 정도로 레퍼런스가 밀리는 게 현실이고 Node.js, Go는 뛰어난 성능을 무기로 파이썬을 위협한다. "파이썬? 인공지능이나 데이터 분석할 때 적합하지! 백엔드? 글쎄....?" 그렇게 파이썬의 백엔드 겨울이 계속되던 중에 FastAPI가 등장했다. FastAPI는 파이썬으로 API를 빌드하기 위한 web framework이다. 공식 블로그에 안내된 fastapi의 장점 중에 현실로 와닿는 부분은 아래와 같다. - No..
FastAPI 톺아보기 - 부제: python 백엔드 봄은 온다
FastAPI
FastAPI 프레임워크, 고성능, 간편한 학습, 빠른 코드 작성, 준비된 프로덕션 문서: https://fastapi.tiangolo.com 소스 코드: https://github.com/tiangolo/fastapi FastAPI는 현대적이고, 빠르며(고성능), 파이썬 표준 타입 힌트에 기초한 Python3.6+의 API를 빌드하기 위한 웹 프레임워크입니다. 주요 특징으로: * 내부 개발팀의 프로덕션 애플리케이션을 빌드한 테스트에 근거한 측정 "[...] 저는 요즘 FastAPI를 많이 사용하고 있습니다. [...]
FastAPI
 
 

Recommendations