/realworld-fastapi

https://github.com/nsidnev/fastapi-realworld-example-app 의 실습

Primary LanguagePython

realworld-fastapi

https://github.com/nsidnev/fastapi-realworld-example-app 의 실습

Django Rest Framework 와 비교

  • Starllette : FastAPI가 의존하는 ASGI 서버 프레임워크
  • Uvicorn : Starllette이 의존하는 ASGI 서버 프레임워크

views.py

urls.py, router

exception_handler

serializer, renderer

  • Pydantic : json parse, dump

ORM, models.py

  • Aiosqlite : async SQLite3 SQL DB connection
  • Asyncpg : async Postegral SQL DB connection
  • Asyncio : 위 두 프레임워크가 의존하는 async highlevel api
  • Tortoise : Async ORM for python

Auth

  • Bcrypt : password hash
  • PyJwt : Json Web Token 보안 제공

APIClient for Test

  • requests : TestClient 를 제공
  • httpx : async client

그 외 기타

  • slugify : title등을 slug로 변환