Skip to content
87

Awesome FastAPI |

A curated list of awesome things related to FastAPI

12k stars898 forks200 entriesLast push Aug 24, 2026 (1 month ago)License CC0-1.0

This page lists names, links and short descriptions. The original list on GitHub is the source and belongs to its authors.

Third-Party Extensions >Admin

FastAdmin

Easy-to-use admin dashboard for FastAPI (also Flask and Django), inspired by Django Admin.

FastAPI Admin

Functional admin panel that provides a user interface for performing CRUD operations on your data. Currently only works with the Tortoise ORM.

FastAPI Amis Admin

A high-performance, efficient and easily extensible FastAPI admin framework.

Piccolo Admin

A powerful and modern admin GUI, using the Piccolo ORM.

SQLAlchemy Admin

Admin Panel for FastAPI/Starlette that works with SQLAlchemy models.

Starlette Admin

Admin framework for FastAPI/Starlette, supporting SQLAlchemy, SQLModel, MongoDB, and ODMantic.

Third-Party Extensions >Auth

AuthX

Customizable Authentications and Oauth2 management for FastAPI.

FastAPI Auth

Pluggable auth that supports the OAuth2 Password Flow with JWT access and refresh tokens.

FastAPI Azure Auth

Azure AD authentication for your APIs with single and multi tenant support.

FastAPI Casbin Auth

Authorization which supports various access control models like RBAC, ReBAC and ABAC through Casbin.

FastAPI Cloud Auth

Simple integration between FastAPI and cloud authentication services (AWS Cognito, Auth0, Firebase Authentication).

FastAPI Login

Account management and authentication (based on Flask-Login).

FastAPI JWT Auth

JWT auth (based on Flask-JWT-Extended).

FastAPI Permissions

Row-level permissions.

FastAPI Security

Implements authentication and authorization as dependencies in FastAPI.

FastAPI Simple Security

Out-of-the-box API key security manageable through path operations.

FastAPI Users

Account management, authentication, authorization.

In 2 lists

FastAPI Zitadel Auth

OAuth2 using the IAM platform Zitadel.

Third-Party Extensions >CyberSecurity

FastAPI Guard

Rate Limiting, Automatically Ban IPs, Penetration Attack Detection, Whitelist/blacklist (countries, IPs, Cloud Providers), User Agent Filtering, Geolocation, Redis integration for persistence, and more.

secure

Define and apply HTTP security headers consistently in FastAPI apps using ASGI middleware and a single configuration object.

In 3 lists

Third-Party Extensions >Databases

Edgy ORM

Complex databases made simple.

FastAPI SQLAlchemy

Simple integration between FastAPI and SQLAlchemy.

Fastapi-SQLA

SQLAlchemy extension for FastAPI with support for pagination, asyncio, and pytest.

FastAPIwee

A simple way to create REST API based on PeeWee models.

FastSQLA

Async SQLAlchemy 2.0+ extension for FastAPI with SQLModel support, built-in pagination & more.

GINO

A lightweight asynchronous ORM built on top of SQLAlchemy core for Python asyncio.

In 2 lists

FastAPI Example

ORM

An async ORM.

ormar

Ormar is an async ORM that uses Pydantic validation and can be used directly in FastAPI requests and responses so you are left with only one set of models to maintain. Alembic migrations included.

FastAPI Example

Using FastAPI with ormar.

Piccolo

An async ORM and query builder, supporting Postgres and SQLite, with batteries (migrations, security, etc).

In 3 lists

FastAPI Examples

Using FastAPI with Piccolo.

Tortoise ORM

An easy-to-use asyncio ORM (Object Relational Mapper) inspired by Django.

FastAPI Example

An example of the Tortoise-ORM FastAPI integration.

Tutorial: Setting up Tortoise ORM with FastAPI

Aerich

Tortoise ORM migrations tools.

Saffier ORM

The only Python ORM you will ever need.

SQLModel

SQLModel (which is powered by Pydantic and SQLAlchemy) is a library for interacting with SQL databases from Python code, with Python objects.

In 2 lists

asyncpgsa

A wrapper around asyncpg for use with SQLAlchemy Core.

In 2 lists

Databases

Async SQL query builder that works on top of the SQLAlchemy Core expression language.

In 3 lists

PyPika

A SQL query builder that exposes the full richness of the SQL language.

In 2 lists

Beanie

Asynchronous Python ODM for MongoDB, based on Motor and Pydantic, which supports data and schema migrations out of the box.

In 2 lists

MongoEngine

A Document-Object Mapper (think ORM, but for document databases) for working with MongoDB from Python.

In 5 listsDetails

Motor

Asynchronous Python driver for MongoDB.

ODMantic

AsyncIO MongoDB ODM integrated with Pydantic.

PynamoDB

A pythonic interface to Amazon's DynamoDB.

In 3 lists

Pydantic-SQLAlchemy

Convert SQLAlchemy models to Pydantic models.

FastAPI-CamelCase

CamelCase JSON support for FastAPI utilizing Pydantic.

CamelCase Models with FastAPI and Pydantic

Accompanying blog post from the author of the extension.

Third-Party Extensions >Dependency Injection

modern-di

Dependency injection framework with IoC container and scopes, with a FastAPI integration.

Wireup

Inject dependencies with zero runtime overhead in FastAPI; Share dependencies across web, cli or other interfaces.

In 2 lists

Third-Party Extensions >Developer Tools

FastAPI Code Generator

Create a FastAPI app from an OpenAPI file, enabling schema-driven development.

FastAPI Client Generator

Generate a mypy- and IDE-friendly API client from an OpenAPI spec.

FastAPI Cruddy Framework

A companion library to FastAPI designed to bring the development productivity of Ruby on Rails, Ember.js or Sails.js to the FastAPI ecosystem.

FastAPI MVC

Developer productivity tool for making high-quality FastAPI production-ready APIs.

FastAPI Profiler

A FastAPI Middleware of joerick/pyinstrument to check your service performance.

FastAPI Versioning

API versioning.

Jupyter Notebook REST API

Run your Jupyter notebooks as RESTful API endpoints.

Manage FastAPI

CLI tool for generating and managing FastAPI projects.

msgpack-asgi

Automatic MessagePack content negotiation.

In 2 lists

python-cqrs

Event-Driven Architecture Framework with CQRS, Transaction Outbox, Saga orchestration, seamless FastAPI/FastStream integration.

Third-Party Extensions >Email

FastAPI Mail

Lightweight mail system for sending emails and attachments (individual and bulk).

Third-Party Extensions >Utils

Apitally

API analytics, monitoring, and request logging for FastAPI.

In 4 listsDetails

ASGI Correlation ID

Request ID logging middleware.

In 2 lists

FastAPI Cache

A simple lightweight cache system.

FastAPI Cache

A tool to cache FastAPI response and function results, with support for Redis, Memcached, DynamoDB, and in-memory backends.

FastAPI Chameleon

Adds integration of the Chameleon template language to FastAPI.

FastAPI CloudEvents

CloudEvents integration for FastAPI.

FastAPI Contrib

Opinionated set of utilities: pagination, auth middleware, permissions, custom exception handlers, MongoDB support, and Opentracing middleware.

FastAPI FastCRUD

) - Robust async CRUD operations and flexible endpoint creation utilities.

FastAPI Events

Asynchronous event dispatching/handling library for FastAPI and Starlette.

FastAPI FeatureFlags

Simple implementation of feature flags for FastAPI.

FastAPI Injectable

Use FastAPI's dependency injection outside route handlers in CLI tools, background tasks, workers, and more.

FastAPI Jinja

Adds integration of the Jinja template language to FastAPI.

FastAPI Lazy

Lazy package to start your project using FastAPI.

FastAPI Limiter

A request rate limiter for FastAPI.

FastAPI Listing

A library to design/build listing APIs using component-based architecture, inbuilt query paginator, sorter, django-admin like filters & much more.

FastAPI MQTT

An extension for the MQTT protocol.

FastAPI Opentracing

Opentracing middleware and database tracing support for FastAPI.

FastAPI Pagination

Pagination for FastAPI.

FastAPI Plugins

Redis and Scheduler plugins.

FastAPI ServiceUtils

Generator for creating API services.

FastAPI Shield

General FastAPI library for writing any generic endpoint decorators capable of lazy dependencies injection.

FastAPI SocketIO

Easy integration for FastAPI and SocketIO.

FastAPI Utilities

Reusable utilities: class-based views, response inferring router, periodic tasks, timing middleware, SQLAlchemy session, OpenAPI spec simplification.

FastAPI Viewsets

Django REST Framework-inspired ViewSets for FastAPI, enabling class-based CRUD endpoint organization with automatic route registration.

FastAPI Websocket Pub/Sub

The classic pub/sub pattern made easily accessible and scalable over the web and across your cloud in realtime.

FastAPI Websocket RPC

RPC (bidirectional JSON RPC) over Websockets made easy, robust, and production ready.

OpenTelemetry FastAPI Instrumentation

Library provides automatic and manual instrumentation of FastAPI web frameworks, instrumenting http requests served by applications utilizing the framework.

In 2 lists

Prerender Python Starlette

Starlette middleware for Prerender.

Prometheus FastAPI Instrumentator

A configurable and modular Prometheus Instrumentator for your FastAPI application.

SlowApi

Rate limiter (based on Flask-Limiter).

Starlette Context

Allows you to store and access the request data anywhere in your project, useful for logging.

Starlette Exporter

One more prometheus integration for FastAPI and Starlette.

Starlette OpenTracing

Opentracing support for Starlette and FastAPI.

Starlette Prometheus

Prometheus integration for FastAPI and Starlette.

Strawberry GraphQL

Python GraphQL library based on dataclasses.

In 4 listsDetails

Pydantic Resolve

Turns pydantic class into a powerful composable computing container by introducing resolve and post-process hooks.

Resources >Official Resources

Documentation

Comprehensive documentation.

In 6 listsDetails

Tutorial

Official tutorial showing you how to use FastAPI with most of its features, step by step.

Source Code

Hosted on GitHub.

In 4 listsDetails

Discord

Chat with other FastAPI users.

In 2 lists

Resources >External Resources

TestDriven.io FastAPI

Multiple FastAPI-specific articles that focus on developing and testing production-ready RESTful APIs, serving up machine learning models, and more.

Resources >Podcasts

Build The Next Generation Of Python Web Applications With FastAPI

In this episode of Podcast Init, the creator of FastAPI, Sebastián Ramirez, shares his motivations for building FastAPI and how it works under the hood.

FastAPI on PythonBytes

Nice overview of the project.

Resources >Articles

FastAPI has Ruined Flask Forever for Me

Why we switched from Flask to FastAPI for production machine learning

In-depth look at why you may want to move from Flask to FastAPI.

Resources >Tutorials

Async SQLAlchemy with FastAPI

Learn how to use SQLAlchemy asynchronously.

Deploy Machine Learning Models with Keras, FastAPI, Redis and Docker

Developing and Testing an Asynchronous API with FastAPI and Pytest

Develop and test an asynchronous API with FastAPI, Postgres, Pytest, and Docker using Test-Driven Development.

In 2 lists

FastAPI for Flask Users

Learn FastAPI with a side-by-side code comparison to Flask.

FastAPI Session Leak Detection

Diagnose and fix long-running SQLAlchemy sessions and connection pool exhaustion in production.

Implementing FastAPI Services – Abstraction and Separation of Concerns

FastAPI application and service structure for a more maintainable codebase.

Introducing FARM Stack - FastAPI, React, and MongoDB

Getting started with a complete FastAPI web application stack.

Multitenancy with FastAPI, SQLAlchemy and PostgreSQL

Learn how to make FastAPI applications multi-tenant ready.

Real-time data streaming using FastAPI and WebSockets

Learn how to stream data from FastAPI directly into a real-time chart.

Running FastAPI applications in production

Use Gunicorn with systemd for production deployments.

Serving Machine Learning Models with FastAPI in Python

Use FastAPI to quickly and easily deploy and serve machine learning models in Python as a RESTful API.

Streaming video with FastAPI

Learn how to serve video streams.

Using Hypothesis and Schemathesis to Test FastAPI

Apply property-based testing to FastAPI.

Resources >Talks

PyConBY 2020: Serve ML models easily with FastAPI

From the talk by Sebastian Ramirez you will learn how to easily build a production-ready web (JSON) API for your ML models with FastAPI, including best practices by default.

PyCon UK 2019: FastAPI from the ground up

This talk shows how to build a simple REST API for a database from the ground up using FastAPI.

Resources >Videos

Building a Stock Screener with FastAPI

A you build a web-based stock screener with FastAPI, you'll be introduced to many of FastAPI's features, including Pydantic models, dependency injection, background tasks, and SQLAlchemy integration.

Building Web APIs Using FastAPI

Use FastAPI to build a web application programming interface (RESTful API).

FastAPI - A Web Framework for Python

See how to do numeric validations with FastAPI.

FastAPI vs. Django vs. Flask

Which framework is best for Python in 2020? Which uses async/await the best? Which is the fastest?

Serving Machine Learning Models As API with FastAPI

Build a machine learning API with FastAPI.

Resources >Courses

Test-Driven Development with FastAPI and Docker

Learn how to build, test, and deploy a text summarization microservice with Python, FastAPI, and Docker.

Modern APIs with FastAPI and Python

A course designed to get you creating new APIs running in the cloud with FastAPI quickly.

Full Web Apps with FastAPI Course

You'll learn to build full web apps with FastAPI, equivalent to what you can do with Flask or Django.

The Definitive Guide to Celery and FastAPI

Learn how to add Celery to a FastAPI application to provide asynchronous task processing.

Resources >Best Practices

FastAPI Best Practices

Collection of best practices in a GitHub repo.

FastAPI-Dishka-FastStream

Combines FastAPI, dishka, faststream, sqlalchemy, pydantic.

FastAPI Clean Example

Clean Architecture backend example built with FastAPI.

Hosting >PaaS

AWS Elastic Beanstalk

Provides quick deployment and management of applications in the cloud.

In 6 listsDetails

Fly

(tutorial, Deploy from a Git repo)

In 7 listsDetails

Google App Engine

Serverless application that completely abstracts away infrastructure so you focus only on code.

In 3 lists

Heroku

(Step-by-step tutorial, ML model on Heroku tutorial)

In 10 listsDetails

Microsoft Azure App Service

In 2 lists

Hosting >IaaS

AWS EC2

In 2 lists

Google Compute Engine

In 2 lists

Digital Ocean

is a cloud infrastructure provider that provides developers cloud services that help to deploy and scale applications that run simultaneously on multiple computers with data centers worldwide.

In 13 listsDetails

Linode

Accelerate innovation in the cloud, virtual computing must be more accessible, affordable, and simple.

In 8 listsDetails

Hosting >Serverless

Chalice

is a framework for writing serverless apps in python. It allows you to quickly create and deploy applications that use AWS Lambda.

In 5 listsDetails

Mangum

Adapter for running ASGI applications with AWS Lambda and API Gateway.

Vercel

(formerly Zeit) (example).

In 12 listsDetails

AWS Lambda

(example)

In 7 listsDetails

Google Cloud Functions

Create single-purpose, stand-alone functions that respond to Cloud events without the need to manage a server or runtime environment

In 4 listsDetails

Azure Functions

In 2 lists

Google Cloud Run

(example)

Projects >Boilerplate

Full Stack FastAPI and PostgreSQL - Base Project Generator

Full Stack FastAPI Template , which includes FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS, and more (developed by the creator of FastAPI, Sebastián Ramírez).

In 3 lists

FastAPI and Tortoise ORM

Powerful but simple template for web APIs w/ FastAPI (as web framework) and Tortoise-ORM (for working via database without headache).

FastAPI + SQLAlchemy 2 + PostgreSQL Template

Dockerized starter with dependency injection (modern-di), Alembic migrations, and a justfile workflow.

FastAPI Model Server Skeleton

Skeleton app to serve machine learning models production-ready.

cookiecutter-spacy-fastapi

Quick deployments of spaCy models with FastAPI.

cookiecutter-fastapi

Cookiecutter template for FastAPI projects using: Machine Learning, Poetry, Azure Pipelines and pytest.

In 3 lists

openapi-python-client

Generate modern FastAPI Python clients (via FastAPI) from OpenAPI.

Pywork

Yeoman generator to scaffold a FastAPI app.

FastAPI Example

FastAPI and React Template

Full stack cookiecutter boilerplate using FastAPI, TypeScript, Docker, PostgreSQL, and React.

FastAPI Nano

Simple FastAPI template with factory pattern architecture.

FastAPI template

Flexible, lightweight FastAPI project generator. It includes support for SQLAlchemy, multiple databases, CI/CD, Docker, and Kubernetes.

FastAPI on Google Cloud Run

Boilerplate for API building with FastAPI, SQLModel, and Google Cloud Run.

FastAPI with Firestore

Boilerplate for API building with FastAPI and Google Cloud Firestore.

fastapi-alembic-sqlmodel-async

This is a project template which uses FastAPI, Alembic, and async SQLModel as ORM.

fastapi-starter-project

A project template which uses FastAPI, SQLModel, Alembic, Pytest, Docker, GitHub Actions CI.

Full Stack FastAPI and MongoDB - Base Project Generator

Full stack, modern web application generator, which includes FastAPI, MongoDB, Docker, Celery, React frontend, automatic HTTPS and more.

Uvicorn Poetry FastAPI Project Template

Cookiecutter project template for starting a FastAPI application. Runs in a Docker container with Uvicorn ASGI server on Kubernetes. Supports AMD64 and ARM64 CPU architectures.

FastAPI Agent Blueprint

DDD layered template where generic base classes give async CRUD with no boilerplate, domains self-register on discovery, and pre-commit hooks block cross-layer imports at commit time.

Projects >Docker Images

inboard

Docker images to power your FastAPI apps and help you ship faster.

uvicorn-gunicorn-fastapi-docker

Docker image with Uvicorn managed by Gunicorn for high-performance FastAPI web applications in Python 3.7 and 3.6 with performance auto-tuning.

uvicorn-gunicorn-poetry

Docker image with Gunicorn using Uvicorn workers for running Python web applications. Uses Poetry for managing dependencies and setting up a virtual environment. Supports AMD64 and ARM64 CPU architectures.

uvicorn-poetry

Docker image with Uvicorn ASGI server for running Python web applications on Kubernetes. Uses Poetry for managing dependencies and setting up a virtual environment. Supports AMD64 and ARM64 CPU architectures.

Projects >Open Source Projects

Astrobase

Simple, fast, and secure deployments anywhere.

Awesome FastAPI Projects

Organized list of projects that use FastAPI.

Bitcart

Platform for merchants, users and developers which offers easy setup and use.

Bali

Simplify Cloud Native Microservices development base on FastAPI and gRPC.

In 2 lists

Bunnybook

A tiny social network built with FastAPI, React+RxJs, Neo4j, PostgreSQL, and Redis.

Coronavirus-tg-api

API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak.

Dispatch

Manage security incidents.

In 2 lists

Async flavor

Sync Flavor

FastAPI with Observability

Observe FastAPI app with three pillars of observability: Traces (Tempo), Metrics (Prometheus), Logs (Loki) on Grafana through OpenTelemetry and OpenMetrics.

FastAPI Websocket Broadcast

Websocket 'broadcast' demo.

FastAPI with Celery, RabbitMQ, and Redis

Minimal example utilizing FastAPI and Celery with RabbitMQ for task queue, Redis for Celery backend, and Flower for monitoring the Celery tasks.

FuturamaAPI

A REST and GraphQL playground built with best practices, providing WebSockets, SSE, callbacks, secret messages, and more.

JeffQL

Simple authentication and login API using GraphQL and JWT.

JSON-RPC Server

JSON-RPC server based on FastAPI.

Mailer

Dead-simple mailer micro-service for static websites.

Markdown-Videos

API for generating thumbnails to embed into your markdown content.

Nemo

Be productive with Nemo.

OPAL (Open Policy Administration Layer)

Real-time authorization updates on top of Open-Policy; built with FastAPI, Typer, and FastAPI WebSocket pub/sub.

OSBot-Fast-API

Type-safe FastAPI wrapper that provides middleware, HTTP event tracking, AWS Lambda integration, test utilities, and auto-conversion between Type_Safe, Pydantic, and dataclasses.

Polar

A funding and monetization platform for developers, built with FastAPI, SQLAlchemy, Alembic, and Arq.

In 3 lists

RealWorld Example App - mongo

RealWorld Example App - postgres

Backend logic implementation for https://github.com/gothinkster/realworld with awesome FastAPI (archived)

In 2 lists

redis-streams-fastapi-chat

A simple Redis Streams backed chat app using Websockets, Asyncio and FastAPI/Starlette.

Sprites as a service

Generate your personal 8-bit avatars using Cellular Automata.

Slackers

Slack webhooks API.

TermPair

View and control terminals from your browser with end-to-end encryption.

Universities

API service for obtaining information about +9600 universities worldwide.

See category
92

Awesome Docker

veggiemonk/awesome-docker

:whale: A curated list of Docker resources and projects

Fresh★ 37k389 entriesPushed 18 days ago
92

Awesome GraphQL

chentsulin/awesome-graphql

Awesome list of GraphQL

Fresh★ 15k483 entriesPushed yesterday
91

Awesome-Kubernetes

ramitsurana/awesome-kubernetes

A curated list for awesome kubernetes sources :ship::tada:

Fresh★ 16k47 entriesPushed 8 days ago
91

Awesome Quant

wilsonfreitas/awesome-quant

A curated list of insanely awesome libraries, packages and resources for Quants (Quantitative Finance)

Fresh★ 30k678 entriesPushed today
89

Awesome Django

wsvincent/awesome-django

A curated list of awesome things related to Django

Fresh★ 11k326 entriesPushed 13 days ago
89

Awesome Terraform

shuaibiyy/awesome-tf

Curated list of resources on HashiCorp's Terraform and OpenTofu

Fresh★ 6.6k472 entriesPushed 2 days ago