awesome-fastapi

API toolkit

A curated collection of tools and resources for building FastAPI applications

A curated list of awesome things related to FastAPI

GitHub

9k stars
168 watching
668 forks
last commit: 3 months ago
Linked from 4 awesome lists

awesomeawesome-listfastapistarlette

Awesome FastAPI | / Third-Party Extensions / Admin

FastAPI Admin 2,913 3 months ago 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 1,086 3 months ago A high-performance, efficient and easily extensible FastAPI admin framework
Piccolo Admin 321 6 days ago A powerful and modern admin GUI, using the Piccolo ORM
SQLAlchemy Admin 1,916 17 days ago Admin Panel for FastAPI/Starlette that works with SQLAlchemy models
Starlette Admin 633 10 days ago Admin framework for FastAPI/Starlette, supporting SQLAlchemy, SQLModel, MongoDB, and ODMantic

Awesome FastAPI | / Third-Party Extensions / Auth

AuthX 819 3 days ago Customizable Authentications and Oauth2 management for FastAPI
FastAPI Auth 139 almost 2 years ago Pluggable auth that supports the OAuth2 Password Flow with JWT access and refresh tokens
FastAPI Azure Auth 467 18 days ago Azure AD authentication for your APIs with single and multi tenant support
FastAPI Cloud Auth 338 over 1 year ago Simple integration between FastAPI and cloud authentication services (AWS Cognito, Auth0, Firebase Authentication)
FastAPI Login 645 2 months ago Account management and authentication (based on )
FastAPI JWT Auth 655 7 months ago JWT auth (based on )
FastAPI Permissions 484 about 1 year ago Row-level permissions
FastAPI Security 140 over 1 year ago Implements authentication and authorization as dependencies in FastAPI
FastAPI Simple Security 329 11 months ago Out-of-the-box API key security manageable through path operations
FastAPI Users 4,670 8 days ago Account management, authentication, authorization

Awesome FastAPI | / Third-Party Extensions / Databases

Edgy ORM 198 5 days ago Complex databases made simple
FastAPI SQLAlchemy 620 8 months ago Simple integration between FastAPI and
Fastapi-SQLA 210 5 days ago SQLAlchemy extension for FastAPI with support for pagination, asyncio, and pytest
FastAPIwee 18 over 3 years ago A simple way to create REST API based on models
GINO 2,679 almost 3 years ago A lightweight asynchronous ORM built on top of SQLAlchemy core for Python asyncio

Awesome FastAPI | / Third-Party Extensions / Databases / GINO

FastAPI Example 420 almost 2 years ago

Awesome FastAPI | / Third-Party Extensions / Databases

ORM 1,781 about 2 years ago 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

Awesome FastAPI | / Third-Party Extensions / Databases / ormar

FastAPI Example Using FastAPI with ormar

Awesome FastAPI | / Third-Party Extensions / Databases

Piccolo 1,450 14 days ago An async ORM and query builder, supporting Postgres and SQLite, with batteries (migrations, security, etc)

Awesome FastAPI | / Third-Party Extensions / Databases / Piccolo

FastAPI Examples 20 over 1 year ago Using FastAPI with Piccolo

Awesome FastAPI | / Third-Party Extensions / Databases

Prisma Client Python 1,892 8 days ago An auto-generated, fully type safe ORM powered by Pydantic and tailored specifically for your schema - supports SQLite, PostgreSQL, MySQL, MongoDB, MariaDB and more

Awesome FastAPI | / Third-Party Extensions / Databases / Prisma Client Python

FastAPI Example 1,892 8 days ago

Awesome FastAPI | / Third-Party Extensions / Databases

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

Awesome FastAPI | / Third-Party Extensions / Databases / Tortoise ORM

FastAPI Example An example of the Tortoise-ORM FastAPI integration
Tutorial: Setting up Tortoise ORM with FastAPI
Aerich 852 4 months ago Tortoise ORM migrations tools

Awesome FastAPI | / Third-Party Extensions / Databases

Saffier ORM 62 22 days ago 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
asyncpgsa 417 9 months ago A wrapper around for use with
Databases 3,843 6 months ago Async SQL query builder that works on top of the expression language
Beanie 2,072 24 days ago Asynchronous Python ODM for MongoDB, based on and , which supports data and schema migrations out of the box
MongoEngine A Document-Object Mapper (think ORM, but for document databases) for working with MongoDB from Python
Motor Asynchronous Python driver for MongoDB
ODMantic AsyncIO MongoDB ODM integrated with
PynamoDB 2,457 3 months ago A pythonic interface to Amazon's DynamoDB
Pydantic-SQLAlchemy 1,190 3 days ago Convert SQLAlchemy models to models
FastAPI-CamelCase CamelCase JSON support for FastAPI utilizing

Awesome FastAPI | / Third-Party Extensions / Databases / FastAPI-CamelCase

CamelCase Models with FastAPI and Pydantic Accompanying blog post from the author of the extension

Awesome FastAPI | / Third-Party Extensions / Developer Tools

FastAPI Code Generator 1,067 about 1 month ago Create a FastAPI app from an OpenAPI file, enabling schema-driven development
FastAPI Client Generator 335 over 1 year ago Generate a mypy- and IDE-friendly API client from an OpenAPI spec
FastAPI Cruddy Framework 22 22 days ago 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 627 4 days ago Developer productivity tool for making high-quality FastAPI production-ready APIs
FastAPI Profiler 236 6 months ago A FastAPI Middleware of joerick/pyinstrument to check your service performance
FastAPI Versioning 655 over 1 year ago API versioning
Jupyter Notebook REST API 80 almost 2 years ago Run your Jupyter notebooks as RESTful API endpoints
Manage FastAPI 1,685 9 months ago CLI tool for generating and managing FastAPI projects
msgpack-asgi 161 8 months ago Automatic content negotiation

Awesome FastAPI | / Third-Party Extensions / Email

FastAPI Mail 707 6 days ago Lightweight mail system for sending emails and attachments (individual and bulk)

Awesome FastAPI | / Third-Party Extensions / Utils

ASGI Correlation ID 431 about 1 month ago Request ID logging middleware
FastAPI Cache 218 about 3 years ago A simple lightweight cache system
FastAPI Cache 1,366 7 days ago A tool to cache FastAPI response and function results, with support for Redis, Memcached, DynamoDB, and in-memory backends
FastAPI Chameleon 141 11 days ago Adds integration of the Chameleon template language to FastAPI
FastAPI CloudEvents 33 9 months ago integration for FastAPI
FastAPI Contrib 622 about 2 years ago Opinionated set of utilities: pagination, auth middleware, permissions, custom exception handlers, MongoDB support, and Opentracing middleware
FastAPI CRUDRouter 1,417 about 1 year ago A FastAPI router that automatically creates and documents CRUD routes for your models
FastAPI Events 444 20 days ago Asynchronous event dispatching/handling library for FastAPI and Starlette
FastAPI FeatureFlags 57 5 months ago Simple implementation of feature flags for FastAPI
FastAPI Jinja 69 10 months ago Adds integration of the Jinja template language to FastAPI
FastAPI Lazy 116 7 months ago Lazy package to start your project using FastAPI
FastAPI Limiter 510 7 months ago A request rate limiter for FastAPI
FastAPI MQTT 264 6 months ago An extension for the MQTT protocol
FastAPI Opentracing 24 almost 2 years ago Opentracing middleware and database tracing support for FastAPI
FastAPI Pagination 1,200 3 days ago Pagination for FastAPI
FastAPI Plugins 369 6 months ago Redis and Scheduler plugins
FastAPI ServiceUtils 34 over 3 years ago Generator for creating API services
FastAPI SocketIO 331 12 months ago Easy integration for FastAPI and SocketIO
FastAPI Utilities 1,946 6 days ago Reusable utilities: class-based views, response inferring router, periodic tasks, timing middleware, SQLAlchemy session, OpenAPI spec simplification
FastAPI Websocket Pub/Sub 13 almost 3 years ago The classic pub/sub pattern made easily accessible and scalable over the web and across your cloud in realtime
FastAPI Websocket RPC 7 almost 3 years ago RPC (bidirectional JSON RPC) over Websockets made easy, robust, and production ready
OpenTelemetry FastAPI Instrumentation 738 6 days ago Library provides automatic and manual instrumentation of FastAPI web frameworks, instrumenting http requests served by applications utilizing the framework
Prerender Python Starlette 15 over 4 years ago Starlette middleware for Prerender
Prometheus FastAPI Instrumentator 973 5 months ago A configurable and modular Prometheus Instrumentator for your FastAPI application
SlowApi 1,239 18 days ago Rate limiter (based on )
Starlette Context 450 6 days ago Allows you to store and access the request data anywhere in your project, useful for logging
Starlette Exporter 316 about 1 month ago One more prometheus integration for FastAPI and Starlette
Starlette OpenTracing 65 about 3 years ago Opentracing support for Starlette and FastAPI
Starlette Prometheus 277 6 months ago Prometheus integration for FastAPI and Starlette
Strawberry GraphQL 4,012 7 days ago Python GraphQL library based on dataclasses

Awesome FastAPI | / Resources / Official Resources

Documentation Comprehensive documentation
Tutorial Official tutorial showing you how to use FastAPI with most of its features, step by step
Source Code 77,670 3 days ago Hosted on GitHub
Discord Chat with other FastAPI users

Awesome FastAPI | / 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

Awesome FastAPI | / Resources / Podcasts

Build The Next Generation Of Python Web Applications With FastAPI In this episode of , the creator of FastAPI, , shares his motivations for building FastAPI and how it works under the hood
FastAPI on PythonBytes Nice overview of the project

Awesome FastAPI | / 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

Awesome FastAPI | / Resources / Tutorials

Async SQLAlchemy with FastAPI Learn how to use SQLAlchemy asynchronously
Build and Secure an API in Python with FastAPI Secure and maintain an API based on FastAPI and SQLAlchemy
Deploy a Dockerized FastAPI App to Google Cloud Platform A short guide to deploying a Dockerized Python app to Google Cloud Platform using Cloud Run and a SQL instance
Deploy Machine Learning Models with Keras, FastAPI, Redis and Docker
Deploying Iris Classifications with FastAPI and Docker Dockerizing a FastAPI application
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
FastAPI for Flask Users Learn FastAPI with a side-by-side code comparison to Flask
Getting started with GraphQL in Python with FastAPI and Ariadne Generate a FullStack playground using FastAPI, GraphQL and Ariadne
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
Porting Flask to FastAPI for ML Model Serving Comparison of Flask vs FastAPI
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

Awesome 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

Awesome 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

Awesome 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

Awesome FastAPI | / Resources / Best Practices

FastAPI Best Practices 9,324 3 months ago Collection of best practices in a GitHub repo

Awesome FastAPI | / Hosting / PaaS

AWS Elastic Beanstalk
Deta ( )
Fly ( , )
Google App Engine
Heroku ( , )
Microsoft Azure App Service

Awesome FastAPI | / Hosting / IaaS

AWS EC2
Google Compute Engine
Digital Ocean
Linode

Awesome FastAPI | / Hosting / Serverless

Chalice 10,665 4 months ago
Mangum Adapter for running ASGI applications with AWS Lambda and API Gateway
Vercel (formerly Zeit) ( )
AWS Lambda ( )
Google Cloud Functions
Azure Functions
Google Cloud Run ( )

Awesome FastAPI | / Projects / Boilerplate

Full Stack FastAPI and PostgreSQL - Base Project Generator 27,737 13 days ago Full Stack FastAPI Template , which includes FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS, and more (developed by the creator of FastAPI, )
FastAPI and Tortoise ORM 127 5 months ago Powerful but simple template for web APIs w/ FastAPI (as web framework) and Tortoise-ORM (for working via database without headache)
FastAPI Model Server Skeleton 394 5 months ago Skeleton app to serve machine learning models production-ready
cookiecutter-spacy-fastapi 518 almost 2 years ago Quick deployments of spaCy models with FastAPI
cookiecutter-fastapi 489 4 months ago Cookiecutter template for FastAPI projects using: Machine Learning, Poetry, Azure Pipelines and pytest
openapi-python-client 1,347 13 days ago Generate modern FastAPI Python clients (via FastAPI) from OpenAPI
Pywork 11 over 1 year ago generator to scaffold a FastAPI app
fastapi-gino-arq-uvicorn 420 almost 2 years ago Template for a high-performance async REST API, in Python. FastAPI + GINO + Arq + Uvicorn (w/ Redis and PostgreSQL)
FastAPI and React Template 2,237 about 1 year ago Full stack cookiecutter boilerplate using FastAPI, TypeScript, Docker, PostgreSQL, and React
FastAPI Nano 896 20 days ago Simple FastAPI template with factory pattern architecture
FastAPI template 2,002 4 months ago Flexible, lightweight FastAPI project generator. It includes support for SQLAlchemy, multiple databases, CI/CD, Docker, and Kubernetes
FastAPI on Google Cloud Run 196 about 1 month ago Boilerplate for API building with FastAPI, SQLModel, and Google Cloud Run
FastAPI with Firestore 47 about 1 month ago Boilerplate for API building with FastAPI and Google Cloud Firestore
fastapi-alembic-sqlmodel-async 1,008 8 months ago This is a project template which uses FastAPI, Alembic, and async SQLModel as ORM
fastapi-starter-project 116 almost 2 years ago A project template which uses FastAPI, SQLModel, Alembic, Pytest, Docker, GitHub Actions CI
Full Stack FastAPI and MongoDB - Base Project Generator 513 2 months ago Full stack, modern web application generator, which includes FastAPI, MongoDB, Docker, Celery, React frontend, automatic HTTPS and more

Awesome FastAPI | / Projects / Docker Images

inboard 189 8 days ago Docker images to power your FastAPI apps and help you ship faster
uvicorn-gunicorn-fastapi-docker 2,716 8 days ago 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 44 7 months ago This Docker image provides a platform to run FastAPI using Gunicorn with Uvicorn workers. It provides Poetry for managing dependencies and setting up a virtual environment in the container
uvicorn-poetry 51 5 months ago This Docker image provides a platform to run FastAPI with Uvicorn on Kubernetes container orchestration system. It provides Poetry for managing dependencies and setting up a virtual environment in the container

Awesome FastAPI | / Projects / Open Source Projects

Astrobase 64 almost 2 years ago Simple, fast, and secure deployments anywhere
Awesome FastAPI Projects 1,369 26 days ago Organized list of projects that use FastAPI
Bitcart 551 about 2 months ago Platform for merchants, users and developers which offers easy setup and use
Bali 262 4 months ago Simplify Cloud Native Microservices development base on FastAPI and gRPC
Bunnybook 278 over 2 years ago A tiny social network built with FastAPI, React+RxJs, Neo4j, PostgreSQL, and Redis
Coronavirus-tg-api 14 almost 2 years ago API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak
Dispatch 5,112 6 days ago Manage security incidents

Awesome FastAPI | / Projects / Open Source Projects / FastAPI CRUD Example:

Async flavor 437 10 months ago
Sync Flavor 79 10 months ago

Awesome FastAPI | / Projects / Open Source Projects

FastAPI with Observability 655 25 days ago Observe FastAPI app with three pillars of observability: Traces (Tempo), Metrics (Prometheus), Logs (Loki) on Grafana through OpenTelemetry and OpenMetrics
DogeAPI 147 6 months ago API with high performance to create a simple blog and CRUD with OAuth2PasswordBearer
FastAPI Websocket Broadcast 133 3 months ago Websocket 'broadcast' demo
FastAPI with Celery, RabbitMQ, and Redis 527 10 months ago Minimal example utilizing FastAPI and Celery with RabbitMQ for task queue, Redis for Celery backend, and Flower for monitoring the Celery tasks
JeffQL 30 7 months ago Simple authentication and login API using GraphQL and JWT
JSON-RPC Server 294 21 days ago JSON-RPC server based on FastAPI
Mailer 59 16 days ago Dead-simple mailer micro-service for static websites
Markdown-Videos 80 6 days ago API for generating thumbnails to embed into your markdown content
Nemo 14 9 months ago Be productive with Nemo
OPAL (Open Policy Administration Layer) 13 3 months ago Real-time authorization updates on top of Open-Policy; built with FastAPI, Typer, and FastAPI WebSocket pub/sub
RealWorld Example App - mongo 438 about 2 years ago
RealWorld Example App - postgres 2,811 over 2 years ago
redis-streams-fastapi-chat 217 10 months ago A simple Redis Streams backed chat app using Websockets, Asyncio and FastAPI/Starlette
Sprites as a service 305 about 1 year ago Generate your personal 8-bit avatars using Cellular Automata
Slackers 79 about 1 year ago Slack webhooks API
TermPair 1,609 over 2 years ago View and control terminals from your browser with end-to-end encryption
Universities 62 over 3 years ago API service for obtaining information about +9600 universities worldwide

Backlinks from these awesome lists:

More related projects: