Skip to content

quick-sort/fastapi-simple-template

Repository files navigation

Simple FastAPI Project Template

This is a backend api service template based on python stack.

Key Features Ready

Authentication

There are several authentication methods supported:

  • session
  • api_key
  • jwt token
  • oauth

Async

Async from top to bottom.

  • using AsyncSession from SQLAlchemy
  • using AsyncOAuth from authlib

Document serving

use mkdocs serving documentation

Key Libraries:

  • FastAPI base service framework.
  • SQLAlchemy for the Python SQL database interactions (ORM).
  • PostgreSQL as the SQL database.
  • Poetry for managing Python project dependencies.
  • PyTest for unit test.
  • PyLint for static code analysis.
  • Mkdocs Material generates clean and good looking document like FastAPI documents.
  • Authlib for oauth protocol.