Awesome FastAPI | 
A curated list of awesome things related to FastAPI.
FastAPI is a modern, high-performance, batteries-included Python web framework that's perfect for building RESTful APIs.
A curated list of awesome things related to FastAPI.
FastAPI is a modern, high-performance, batteries-included Python web framework that's perfect for building RESTful APIs.
Functional admin panel that provides a user interface for performing CRUD operations on your data. Currently only works with the Tortoise ORM.
A high-performance, efficient and easily extensible FastAPI admin framework.
A powerful and modern admin GUI, using the Piccolo ORM.
Admin Panel for FastAPI/Starlette that works with SQLAlchemy models.
Admin framework for FastAPI/Starlette, supporting SQLAlchemy, SQLModel, MongoDB, and ODMantic.
Customizable Authentications and Oauth2 management for FastAPI.
Pluggable auth that supports the OAuth2 Password Flow with JWT access and refresh tokens.
Azure AD authentication for your APIs with single and multi tenant support.
Authorization which supports various access control models like RBAC, ReBAC and ABAC through Casbin.
Simple integration between FastAPI and cloud authentication services (AWS Cognito, Auth0, Firebase Authentication).
Account management and authentication (based on [Flask-Login](https://github.com/maxcountryman/flask-login)).
JWT auth (based on [Flask-JWT-Extended](https://github.com/vimalloc/flask-jwt-extended)).
Row-level permissions.
Implements authentication and authorization as dependencies in FastAPI.
Out-of-the-box API key security manageable through path operations.
Account management, authentication, authorization.
OAuth2 using the IAM platform [Zitadel](https://github.com/zitadel/zitadel).
Rate Limiting, Automatically Ban IPs, Penetration Attack Detection, Whitelist/blacklist (countries, IPs, Cloud Providers), User Agent Filtering, Geolocation, Redis integration for persistence, and more.
Define and apply HTTP security headers consistently in FastAPI apps using ASGI middleware and a single configuration object.
Complex databases made simple.
Simple integration between FastAPI and [SQLAlchemy](https://www.sqlalchemy.org/).
SQLAlchemy extension for FastAPI with support for pagination, asyncio, and pytest.
A simple way to create REST API based on [PeeWee](https://github.com/coleifer/peewee) models.
Async SQLAlchemy 2.0+ extension for FastAPI with SQLModel support, built-in pagination & more.
A lightweight asynchronous ORM built on top of SQLAlchemy core for Python asyncio.
An async ORM.
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.
An async ORM and query builder, supporting Postgres and SQLite, with batteries (migrations, security, etc).
An easy-to-use asyncio ORM (Object Relational Mapper) inspired by Django.
The only Python ORM you will ever need.
SQLModel (which is powered by Pydantic and SQLAlchemy) is a library for interacting with SQL databases from Python code, with Python objects.
A wrapper around [asyncpg](https://github.com/MagicStack/asyncpg) for use with [SQLAlchemy Core](https://docs.sqlalchemy.org/en/latest/core/).
Async SQL query builder that works on top of the [SQLAlchemy Core](https://docs.sqlalchemy.org/en/latest/core/) expression language.
A SQL query builder that exposes the full richness of the SQL language.
Asynchronous Python ODM for MongoDB, based on [Motor](https://motor.readthedocs.io/en/stable/) and [Pydantic](https://pydantic.dev/docs/), which supports data and schema migrations out of the box.
A Document-Object Mapper (think ORM, but for document databases) for working with MongoDB from Python.
Asynchronous Python driver for MongoDB.
AsyncIO MongoDB ODM integrated with [Pydantic](https://pydantic.dev/docs/).
A pythonic interface to Amazon's DynamoDB.
Convert SQLAlchemy models to [Pydantic](https://pydantic.dev/docs/) models.
CamelCase JSON support for FastAPI utilizing [Pydantic](https://pydantic.dev/docs/).
Dependency injection framework with IoC container and scopes, with a [FastAPI integration](https://github.com/modern-python/modern-di-fastapi).
Inject dependencies with zero runtime overhead in FastAPI; Share dependencies across web, cli or other interfaces.
Create a FastAPI app from an OpenAPI file, enabling schema-driven development.
Generate a mypy- and IDE-friendly API client from an OpenAPI spec.
A companion library to FastAPI designed to bring the development productivity of Ruby on Rails, Ember.js or Sails.js to the FastAPI ecosystem.
Developer productivity tool for making high-quality FastAPI production-ready APIs.
A FastAPI Middleware of joerick/pyinstrument to check your service performance.
API versioning.
Run your Jupyter notebooks as RESTful API endpoints.
CLI tool for generating and managing FastAPI projects.
Automatic [MessagePack](https://msgpack.org/) content negotiation.
Event-Driven Architecture Framework with CQRS, Transaction Outbox, Saga orchestration, seamless FastAPI/FastStream integration.
Lightweight mail system for sending emails and attachments (individual and bulk).
API analytics, monitoring, and request logging for FastAPI.
Request ID logging middleware.
A simple lightweight cache system.
A tool to cache FastAPI response and function results, with support for Redis, Memcached, DynamoDB, and in-memory backends.
Adds integration of the Chameleon template language to FastAPI.
[CloudEvents](https://cloudevents.io/) integration for FastAPI.
Opinionated set of utilities: pagination, auth middleware, permissions, custom exception handlers, MongoDB support, and Opentracing middleware.
Asynchronous event dispatching/handling library for FastAPI and Starlette.
Simple implementation of feature flags for FastAPI.
Use FastAPI's dependency injection outside route handlers in CLI tools, background tasks, workers, and more.
Adds integration of the Jinja template language to FastAPI.
Lazy package to start your project using FastAPI.
A request rate limiter for FastAPI.
A library to design/build listing APIs using component-based architecture, inbuilt query paginator, sorter, django-admin like filters & much more.
An extension for the MQTT protocol.
Opentracing middleware and database tracing support for FastAPI.
Pagination for FastAPI.
Redis and Scheduler plugins.
Generator for creating API services.
General FastAPI library for writing any generic endpoint decorators capable of lazy dependencies injection.
Easy integration for FastAPI and SocketIO.
Reusable utilities: class-based views, response inferring router, periodic tasks, timing middleware, SQLAlchemy session, OpenAPI spec simplification.
Django REST Framework-inspired ViewSets for FastAPI, enabling class-based CRUD endpoint organization with automatic route registration.
The classic pub/sub pattern made easily accessible and scalable over the web and across your cloud in realtime.
RPC (bidirectional JSON RPC) over Websockets made easy, robust, and production ready.
Library provides automatic and manual instrumentation of FastAPI web frameworks, instrumenting http requests served by applications utilizing the framework.
Starlette middleware for Prerender.
A configurable and modular Prometheus Instrumentator for your FastAPI application.
Rate limiter (based on [Flask-Limiter](https://flask-limiter.readthedocs.io)).
Allows you to store and access the request data anywhere in your project, useful for logging.
One more prometheus integration for FastAPI and Starlette.
Opentracing support for Starlette and FastAPI.
Prometheus integration for FastAPI and Starlette.
Python GraphQL library based on dataclasses.
Turns pydantic class into a powerful composable computing container by introducing resolve and post-process hooks.
Comprehensive documentation.
Official tutorial showing you how to use FastAPI with most of its features, step by step.
Hosted on GitHub.
Chat with other FastAPI users.
Multiple FastAPI-specific articles that focus on developing and testing production-ready RESTful APIs, serving up machine learning models, and more.
In this episode of [Podcast Init](https://www.pythonpodcast.com/), the creator of FastAPI, [Sebastián Ramirez](https://tiangolo.com/), shares his motivations for building FastAPI and how it works under the hood.
Nice overview of the project.
In-depth look at why you may want to move from Flask to FastAPI.
Learn how to use SQLAlchemy asynchronously.
Develop and test an asynchronous API with FastAPI, Postgres, Pytest, and Docker using Test-Driven Development.
Learn FastAPI with a side-by-side code comparison to Flask.
FastAPI application and service structure for a more maintainable codebase.
Getting started with a complete FastAPI web application stack.
Learn how to make FastAPI applications multi-tenant ready.
Learn how to stream data from FastAPI directly into a real-time chart.
Use Gunicorn with systemd for production deployments.
Use FastAPI to quickly and easily deploy and serve machine learning models in Python as a RESTful API.
Learn how to serve video streams.
Apply property-based testing to 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.
This talk shows how to build a simple REST API for a database from the ground up using 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.
Use FastAPI to build a web application programming interface (RESTful API).
See how to do numeric validations with FastAPI.
Which framework is best for Python in 2020? Which uses async/await the best? Which is the fastest?
Build a machine learning API with FastAPI.
Learn how to build, test, and deploy a text summarization microservice with Python, FastAPI, and Docker.
A course designed to get you creating new APIs running in the cloud with FastAPI quickly.
You'll learn to build full web apps with FastAPI, equivalent to what you can do with Flask or Django.
Learn how to add Celery to a FastAPI application to provide asynchronous task processing.
Collection of best practices in a GitHub repo.
Combines FastAPI, dishka, faststream, sqlalchemy, pydantic.
Clean Architecture backend example built with FastAPI.
(Platforms-as-a-Service)
(Infrastructure-as-a-Service)
Adapter for running ASGI applications with AWS Lambda and API Gateway.
(formerly Zeit) ([example](https://github.com/Snailedlt/Markdown-Videos)).
Frameworks:
Compute:
Full Stack FastAPI Template
Powerful but simple template for web APIs w/ FastAPI (as web framework) and Tortoise-ORM (for working via database without headache).
Dockerized starter with dependency injection (modern-di), Alembic migrations, and a justfile workflow.
Skeleton app to serve machine learning models production-ready.
Quick deployments of spaCy models with FastAPI.
Cookiecutter template for FastAPI projects using: Machine Learning, Poetry, Azure Pipelines and pytest.
Generate modern FastAPI Python clients (via FastAPI) from OpenAPI.
[Yeoman](https://yeoman.io/) generator to scaffold a FastAPI app.
Template for a high-performance async REST API, in Python. FastAPI + GINO + Arq + Uvicorn (w/ Redis and PostgreSQL).
Full stack cookiecutter boilerplate using FastAPI, TypeScript, Docker, PostgreSQL, and React.
Simple FastAPI template with factory pattern architecture.
Flexible, lightweight FastAPI project generator. It includes support for SQLAlchemy, multiple databases, CI/CD, Docker, and Kubernetes.
Boilerplate for API building with FastAPI, SQLModel, and Google Cloud Run.
Boilerplate for API building with FastAPI and Google Cloud Firestore.
This is a project template which uses FastAPI, Alembic, and async SQLModel as ORM.
A project template which uses FastAPI, SQLModel, Alembic, Pytest, Docker, GitHub Actions CI.
Full stack, modern web application generator, which includes FastAPI, MongoDB, Docker, Celery, React frontend, automatic HTTPS and more.
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.
, which includes FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS, and more (developed by the creator of FastAPI, Sebastián Ramírez).
Docker images to power your FastAPI apps and help you ship faster.
Docker image with Uvicorn managed by Gunicorn for high-performance FastAPI web applications in Python 3.7 and 3.6 with performance auto-tuning.
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.
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.
Simple, fast, and secure deployments anywhere.
Organized list of projects that use FastAPI.
Platform for merchants, users and developers which offers easy setup and use.
Simplify Cloud Native Microservices development base on FastAPI and gRPC.
A tiny social network built with FastAPI, React+RxJs, Neo4j, PostgreSQL, and Redis.
API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak.
Manage security incidents.
Observe FastAPI app with three pillars of observability: Traces (Tempo), Metrics (Prometheus), Logs (Loki) on Grafana through OpenTelemetry and OpenMetrics.
Websocket 'broadcast' demo.
Minimal example utilizing FastAPI and Celery with RabbitMQ for task queue, Redis for Celery backend, and Flower for monitoring the Celery tasks.
A REST and GraphQL playground built with best practices, providing WebSockets, SSE, callbacks, secret messages, and more.
Simple authentication and login API using GraphQL and JWT.
JSON-RPC server based on FastAPI.
Dead-simple mailer micro-service for static websites.
API for generating thumbnails to embed into your markdown content.
Be productive with Nemo.
Real-time authorization updates on top of Open-Policy; built with FastAPI, Typer, and FastAPI WebSocket pub/sub.
Type-safe FastAPI wrapper that provides middleware, HTTP event tracking, AWS Lambda integration, test utilities, and auto-conversion between Type_Safe, Pydantic, and dataclasses.
A funding and monetization platform for developers, built with FastAPI, SQLAlchemy, Alembic, and Arq.
A simple Redis Streams backed chat app using Websockets, Asyncio and FastAPI/Starlette.
Generate your personal 8-bit avatars using Cellular Automata.
Slack webhooks API.
View and control terminals from your browser with end-to-end encryption.
API service for obtaining information about +9600 universities worldwide.