/tifa

Yet another opinionated fastapi-start-kit with best practice

Primary LanguagePythonMIT LicenseMIT

Tifa

Yet another opinionated fastapi-start-kit with best practice

tifa

for my goddess -- Tifa

Feature

  1. Async! Async! Async!
    • async web framework by fastapi
    • socket.io by python-socketio
    • async and sync orm supported by sqlalchemy/alembic migration, use async when io bound need
  2. Much Less History Burden
    • newer sdk
    • newer python (3.9+)
    • newer docker compose way for developing experience
  3. Best Practice
    • try automate every boring stuff with makefile/docker
    • embeded ipython repl for fast debugging and code prototype
    • type hint
    • build with poetry

Quick Setup

poetry install
# build local docker image
make build-tifa
# make start
make debug

Credits

  1. saleor
  2. https://github.com/ryanwang520/create-flask-skeleton
  3. https://github.com/tiangolo/full-stack-fastapi-postgresql