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
171 watching
673 forks
last commit: about 2 years ago
Linked from 4 awesome lists

awesomeawesome-listfastapistarlette

Awesome FastAPI | / Third-Party Extensions / Admin

FastAPI Admin2,968about 2 years agoFunctional admin panel that provides a user interface for performing CRUD operations on your data. Currently only works with the Tortoise ORM
FastAPI Amis Admin1,105about 2 years agoA high-performance, efficient and easily extensible FastAPI admin framework
Piccolo Admin324almost 2 years agoA powerful and modern admin GUI, using the Piccolo ORM
SQLAlchemy Admin1,954almost 2 years agoAdmin Panel for FastAPI/Starlette that works with SQLAlchemy models
Starlette Admin645almost 2 years agoAdmin framework for FastAPI/Starlette, supporting SQLAlchemy, SQLModel, MongoDB, and ODMantic

Awesome FastAPI | / Third-Party Extensions / Auth

AuthX838almost 2 years agoCustomizable Authentications and Oauth2 management for FastAPI
FastAPI Auth141over 3 years agoPluggable auth that supports the OAuth2 Password Flow with JWT access and refresh tokens
FastAPI Azure Auth478almost 2 years agoAzure AD authentication for your APIs with single and multi tenant support
FastAPI Cloud Auth338over 3 years agoSimple integration between FastAPI and cloud authentication services (AWS Cognito, Auth0, Firebase Authentication)
FastAPI Login650almost 2 years agoAccount management and authentication (based on )
FastAPI JWT Auth665over 2 years agoJWT auth (based on )
FastAPI Permissions492almost 3 years agoRow-level permissions
FastAPI Security142about 3 years agoImplements authentication and authorization as dependencies in FastAPI
FastAPI Simple Security335almost 3 years agoOut-of-the-box API key security manageable through path operations
FastAPI Users4,748almost 2 years agoAccount management, authentication, authorization

Awesome FastAPI | / Third-Party Extensions / Databases

Edgy ORM213almost 2 years agoComplex databases made simple
FastAPI SQLAlchemy626over 2 years agoSimple integration between FastAPI and
Fastapi-SQLA229almost 2 years agoSQLAlchemy extension for FastAPI with support for pagination, asyncio, and pytest
FastAPIwee18about 5 years agoA simple way to create REST API based on models
GINO2,686over 4 years agoA lightweight asynchronous ORM built on top of SQLAlchemy core for Python asyncio

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

FastAPI Example425almost 4 years ago

Awesome FastAPI | / Third-Party Extensions / Databases

ORM1,785about 4 years agoAn async ORM
ormarOrmar 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 ExampleUsing FastAPI with ormar

Awesome FastAPI | / Third-Party Extensions / Databases

Piccolo1,464almost 2 years agoAn async ORM and query builder, supporting Postgres and SQLite, with batteries (migrations, security, etc)

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

FastAPI Examples20over 3 years agoUsing FastAPI with Piccolo

Awesome FastAPI | / Third-Party Extensions / Databases

Prisma Client Python1,911almost 2 years agoAn 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 Example1,911almost 2 years ago

Awesome FastAPI | / Third-Party Extensions / Databases

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

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

FastAPI ExampleAn example of the Tortoise-ORM FastAPI integration
Tutorial: Setting up Tortoise ORM with FastAPI
Aerich859almost 2 years agoTortoise ORM migrations tools

Awesome FastAPI | / Third-Party Extensions / Databases

Saffier ORM63almost 2 years agoThe only Python ORM you will ever need
SQLModelSQLModel (which is powered by Pydantic and SQLAlchemy) is a library for interacting with SQL databases from Python code, with Python objects
asyncpgsa416over 2 years agoA wrapper around for use with
Databases3,853over 2 years agoAsync SQL query builder that works on top of the expression language
Beanie2,107almost 2 years agoAsynchronous Python ODM for MongoDB, based on and , which supports data and schema migrations out of the box
MongoEngineA Document-Object Mapper (think ORM, but for document databases) for working with MongoDB from Python
MotorAsynchronous Python driver for MongoDB
ODManticAsyncIO MongoDB ODM integrated with
PynamoDB2,464about 2 years agoA pythonic interface to Amazon's DynamoDB
Pydantic-SQLAlchemy1,210almost 2 years agoConvert SQLAlchemy models to models
FastAPI-CamelCaseCamelCase JSON support for FastAPI utilizing

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

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

Awesome FastAPI | / Third-Party Extensions / Developer Tools

FastAPI Code Generator1,089almost 2 years agoCreate a FastAPI app from an OpenAPI file, enabling schema-driven development
FastAPI Client Generator336about 3 years agoGenerate a mypy- and IDE-friendly API client from an OpenAPI spec
FastAPI Cruddy Framework24almost 2 years agoA companion library to FastAPI designed to bring the development productivity of Ruby on Rails, Ember.js or Sails.js to the FastAPI ecosystem
FastAPI MVC635almost 2 years agoDeveloper productivity tool for making high-quality FastAPI production-ready APIs
FastAPI Profiler239over 2 years agoA FastAPI Middleware of joerick/pyinstrument to check your service performance
FastAPI Versioning662about 3 years agoAPI versioning
Jupyter Notebook REST API80almost 4 years agoRun your Jupyter notebooks as RESTful API endpoints
Manage FastAPI1,701over 2 years agoCLI tool for generating and managing FastAPI projects
msgpack-asgi163over 2 years agoAutomatic content negotiation

Awesome FastAPI | / Third-Party Extensions / Email

FastAPI Mail714almost 2 years agoLightweight mail system for sending emails and attachments (individual and bulk)

Awesome FastAPI | / Third-Party Extensions / Utils

ASGI Correlation ID447almost 2 years agoRequest ID logging middleware
FastAPI Cache220almost 5 years agoA simple lightweight cache system
FastAPI Cache1,393almost 2 years agoA tool to cache FastAPI response and function results, with support for Redis, Memcached, DynamoDB, and in-memory backends
FastAPI Chameleon141almost 2 years agoAdds integration of the Chameleon template language to FastAPI
FastAPI CloudEvents33over 2 years agointegration for FastAPI
FastAPI Contrib623about 4 years agoOpinionated set of utilities: pagination, auth middleware, permissions, custom exception handlers, MongoDB support, and Opentracing middleware
FastAPI CRUDRouter1,425almost 3 years agoA FastAPI router that automatically creates and documents CRUD routes for your models
FastAPI Events453almost 2 years agoAsynchronous event dispatching/handling library for FastAPI and Starlette
FastAPI FeatureFlags58over 2 years agoSimple implementation of feature flags for FastAPI
FastAPI Jinja69almost 2 years agoAdds integration of the Jinja template language to FastAPI
FastAPI Lazy116over 2 years agoLazy package to start your project using FastAPI
FastAPI Limiter518over 2 years agoA request rate limiter for FastAPI
FastAPI MQTT268over 2 years agoAn extension for the MQTT protocol
FastAPI Opentracing24over 3 years agoOpentracing middleware and database tracing support for FastAPI
FastAPI Pagination1,224almost 2 years agoPagination for FastAPI
FastAPI Plugins389over 2 years agoRedis and Scheduler plugins
FastAPI ServiceUtils34about 5 years agoGenerator for creating API services
FastAPI SocketIO333almost 3 years agoEasy integration for FastAPI and SocketIO
FastAPI Utilities1,966almost 2 years agoReusable utilities: class-based views, response inferring router, periodic tasks, timing middleware, SQLAlchemy session, OpenAPI spec simplification
FastAPI Websocket Pub/Sub13almost 5 years agoThe classic pub/sub pattern made easily accessible and scalable over the web and across your cloud in realtime
FastAPI Websocket RPC7almost 5 years agoRPC (bidirectional JSON RPC) over Websockets made easy, robust, and production ready
OpenTelemetry FastAPI Instrumentation750almost 2 years agoLibrary provides automatic and manual instrumentation of FastAPI web frameworks, instrumenting http requests served by applications utilizing the framework
Prerender Python Starlette15about 6 years agoStarlette middleware for Prerender
Prometheus FastAPI Instrumentator997over 2 years agoA configurable and modular Prometheus Instrumentator for your FastAPI application
SlowApi1,276almost 2 years agoRate limiter (based on )
Starlette Context454almost 2 years agoAllows you to store and access the request data anywhere in your project, useful for logging
Starlette Exporter318almost 2 years agoOne more prometheus integration for FastAPI and Starlette
Starlette OpenTracing65almost 5 years agoOpentracing support for Starlette and FastAPI
Starlette Prometheus281over 2 years agoPrometheus integration for FastAPI and Starlette
Strawberry GraphQL4,057almost 2 years agoPython GraphQL library based on dataclasses

Awesome FastAPI | / Resources / Official Resources

DocumentationComprehensive documentation
TutorialOfficial tutorial showing you how to use FastAPI with most of its features, step by step
Source Code78,676almost 2 years agoHosted on GitHub
DiscordChat with other FastAPI users

Awesome FastAPI | / Resources / External Resources

TestDriven.io FastAPIMultiple 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 FastAPIIn this episode of , the creator of FastAPI, , shares his motivations for building FastAPI and how it works under the hood
FastAPI on PythonBytesNice 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 learningIn-depth look at why you may want to move from Flask to FastAPI

Awesome FastAPI | / Resources / Tutorials

Async SQLAlchemy with FastAPILearn how to use SQLAlchemy asynchronously
Build and Secure an API in Python with FastAPISecure and maintain an API based on FastAPI and SQLAlchemy
Deploy a Dockerized FastAPI App to Google Cloud PlatformA 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 DockerDockerizing a FastAPI application
Developing and Testing an Asynchronous API with FastAPI and PytestDevelop and test an asynchronous API with FastAPI, Postgres, Pytest, and Docker using Test-Driven Development
FastAPI for Flask UsersLearn FastAPI with a side-by-side code comparison to Flask
Getting started with GraphQL in Python with FastAPI and AriadneGenerate a FullStack playground using FastAPI, GraphQL and Ariadne
Implementing FastAPI Services – Abstraction and Separation of ConcernsFastAPI application and service structure for a more maintainable codebase
Introducing FARM Stack - FastAPI, React, and MongoDBGetting started with a complete FastAPI web application stack
Multitenancy with FastAPI, SQLAlchemy and PostgreSQLLearn how to make FastAPI applications multi-tenant ready
Porting Flask to FastAPI for ML Model ServingComparison of Flask vs FastAPI
Real-time data streaming using FastAPI and WebSocketsLearn how to stream data from FastAPI directly into a real-time chart
Running FastAPI applications in productionUse Gunicorn with systemd for production deployments
Serving Machine Learning Models with FastAPI in PythonUse FastAPI to quickly and easily deploy and serve machine learning models in Python as a RESTful API
Streaming video with FastAPILearn how to serve video streams
Using Hypothesis and Schemathesis to Test FastAPIApply property-based testing to FastAPI

Awesome FastAPI | / Resources / Talks

PyConBY 2020: Serve ML models easily with FastAPIFrom 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 upThis 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 FastAPIA 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 FastAPIUse FastAPI to build a web application programming interface (RESTful API)
FastAPI - A Web Framework for PythonSee how to do numeric validations with FastAPI
FastAPI vs. Django vs. FlaskWhich framework is best for Python in 2020? Which uses async/await the best? Which is the fastest?
Serving Machine Learning Models As API with FastAPIBuild a machine learning API with FastAPI

Awesome FastAPI | / Resources / Courses

Test-Driven Development with FastAPI and DockerLearn how to build, test, and deploy a text summarization microservice with Python, FastAPI, and Docker
Modern APIs with FastAPI and PythonA course designed to get you creating new APIs running in the cloud with FastAPI quickly
Full Web Apps with FastAPI CourseYou'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 FastAPILearn how to add Celery to a FastAPI application to provide asynchronous task processing

Awesome FastAPI | / Resources / Best Practices

FastAPI Best Practices9,679about 2 years agoCollection 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

Chalice10,690almost 2 years ago
MangumAdapter 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 Generator28,452almost 2 years agoFull 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 ORM129over 2 years agoPowerful but simple template for web APIs w/ FastAPI (as web framework) and Tortoise-ORM (for working via database without headache)
FastAPI Model Server Skeleton412about 2 years agoSkeleton app to serve machine learning models production-ready
cookiecutter-spacy-fastapi523almost 4 years agoQuick deployments of spaCy models with FastAPI
cookiecutter-fastapi501almost 2 years agoCookiecutter template for FastAPI projects using: Machine Learning, Poetry, Azure Pipelines and pytest
openapi-python-client1,379almost 2 years agoGenerate modern FastAPI Python clients (via FastAPI) from OpenAPI
Pywork11over 3 years agogenerator to scaffold a FastAPI app
fastapi-gino-arq-uvicorn425almost 4 years agoTemplate for a high-performance async REST API, in Python. FastAPI + GINO + Arq + Uvicorn (w/ Redis and PostgreSQL)
FastAPI and React Template2,256almost 3 years agoFull stack cookiecutter boilerplate using FastAPI, TypeScript, Docker, PostgreSQL, and React
FastAPI Nano903almost 2 years agoSimple FastAPI template with factory pattern architecture
FastAPI template2,041about 2 years agoFlexible, lightweight FastAPI project generator. It includes support for SQLAlchemy, multiple databases, CI/CD, Docker, and Kubernetes
FastAPI on Google Cloud Run196almost 2 years agoBoilerplate for API building with FastAPI, SQLModel, and Google Cloud Run
FastAPI with Firestore47almost 2 years agoBoilerplate for API building with FastAPI and Google Cloud Firestore
fastapi-alembic-sqlmodel-async1,022over 2 years agoThis is a project template which uses FastAPI, Alembic, and async SQLModel as ORM
fastapi-starter-project117almost 4 years agoA project template which uses FastAPI, SQLModel, Alembic, Pytest, Docker, GitHub Actions CI
Full Stack FastAPI and MongoDB - Base Project Generator540about 2 years agoFull stack, modern web application generator, which includes FastAPI, MongoDB, Docker, Celery, React frontend, automatic HTTPS and more

Awesome FastAPI | / Projects / Docker Images

inboard192almost 2 years agoDocker images to power your FastAPI apps and help you ship faster
uvicorn-gunicorn-fastapi-docker2,723almost 2 years agoDocker 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-poetry45over 2 years agoThis 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-poetry52about 2 years agoThis 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

Astrobase64over 3 years agoSimple, fast, and secure deployments anywhere
Awesome FastAPI Projects1,382almost 2 years agoOrganized list of projects that use FastAPI
Bitcart565almost 2 years agoPlatform for merchants, users and developers which offers easy setup and use
Bali263about 2 years agoSimplify Cloud Native Microservices development base on FastAPI and gRPC
Bunnybook275over 4 years agoA tiny social network built with FastAPI, React+RxJs, Neo4j, PostgreSQL, and Redis
Coronavirus-tg-api14almost 4 years agoAPI for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak
Dispatch5,188almost 2 years agoManage security incidents

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

Async flavor439over 2 years ago
Sync Flavor79over 2 years ago

Awesome FastAPI | / Projects / Open Source Projects

FastAPI with Observability683almost 2 years agoObserve FastAPI app with three pillars of observability: Traces (Tempo), Metrics (Prometheus), Logs (Loki) on Grafana through OpenTelemetry and OpenMetrics
DogeAPI148over 2 years agoAPI with high performance to create a simple blog and CRUD with OAuth2PasswordBearer
FastAPI Websocket Broadcast135about 2 years agoWebsocket 'broadcast' demo
FastAPI with Celery, RabbitMQ, and Redis531over 2 years agoMinimal example utilizing FastAPI and Celery with RabbitMQ for task queue, Redis for Celery backend, and Flower for monitoring the Celery tasks
JeffQL30over 2 years agoSimple authentication and login API using GraphQL and JWT
JSON-RPC Server293almost 2 years agoJSON-RPC server based on FastAPI
Mailer59almost 2 years agoDead-simple mailer micro-service for static websites
Markdown-Videos82almost 2 years agoAPI for generating thumbnails to embed into your markdown content
Nemo14over 2 years agoBe productive with Nemo
OPAL (Open Policy Administration Layer)13about 2 years agoReal-time authorization updates on top of Open-Policy; built with FastAPI, Typer, and FastAPI WebSocket pub/sub
RealWorld Example App - mongo440almost 4 years ago
RealWorld Example App - postgres2,823about 4 years ago
redis-streams-fastapi-chat217over 2 years agoA simple Redis Streams backed chat app using Websockets, Asyncio and FastAPI/Starlette
Sprites as a service307almost 3 years agoGenerate your personal 8-bit avatars using Cellular Automata
Slackers79about 3 years agoSlack webhooks API
TermPair1,613over 4 years agoView and control terminals from your browser with end-to-end encryption
Universities62over 5 years agoAPI service for obtaining information about +9600 universities worldwide

Backlinks from these awesome lists:

More related projects: