Extensions

Administration

SQLAlchemy Admin for Starlette/FastAPI

Flexible admin interface for SQLAlchemy models.

Stars Contributors Commit activity License
Piccolo Admin

Simple but powerful admin interface over Piccolo tables that lets you easily add, edit and filter your data

Stars Contributors Commit activity License

Authentication

AuthX

Ready-to-use and customisable authentication and Oauth2 management

Stars Contributors Commit activity License
FastAPI Security

Authentication and authorisation

Stars Contributors Commit activity License
FastAPI simple security

API key-based security package focused on ease of use

Stars Contributors Commit activity License
FastAPI Users

Quickly adds a customisable registration and authentication system

Stars Contributors Commit activity License

ORMs

FastAPI-SQLAlchemy

Easy integration between FastAPI, SQLAlchemy and application

Stars Contributors Commit activity License
FastAPIwee

Easy way to create a REST API based on PeeWee models

Stars Contributors Commit activity License
GINO

Lightweight asynchronous ORM built on SQLAlchemy Core for Python asyncio, supporting PostgreSQL with asyncpg, and MySQL with aiomysql (→ example)

Stars Contributors Commit activity License
ORM

async ORM, which builds on SQLAlchemy Core, Databases and TypeSystem

Stars Contributors Commit activity License
ormar

Asynchronous mini-ORM, with which you only need to maintain one set of models and migrate them with Alembic if necessary (→ example); it is also supported by fastapi-users, fastapi-crudrouter and fastapi-pagination

Stars Contributors Commit activity License
Piccolo

Fast, user-friendly ORM and query builder that supports Asyncio (→ examples)

Stars Contributors Commit activity License
Prisma Client Python

Building on the TypeScript ORM Prisma with support for PostgreSQL, MySQL, SQLite, MongoDB and SQL Server (→ Example)

Stars Contributors Commit activity License
Tortoise ORM

Easy-to-use asyncio ORM inspired by Django (→ examples); Aerich is a database migration tool for Tortoise ORM.

Stars Contributors Commit activity License
SQLModel

Library for the interaction of SQL databases with Python objects

Stars Contributors Commit activity License

SQL Query Builders

FastAPI Filter

Querystring filters for the Api endpoints and the Swagger user interface. The supported backends are SQLAlchemy and MongoEngine.

Stars Contributors Commit activity Lizenz
asyncpgsa

Python wrapper around asyncpg for use with SQLAlchemy

Stars Contributors Commit activity License
Databases

Simple asyncio support for the database drivers asyncpg, aiopg, aiomysql, asyncmy and aiosqlite

Stars Contributors Commit activity License

ODMs

Beanie

Asynchronous Python object document mapper (ODM) for MongoDB, based on Motor and Pydantic

Stars Contributors Commit activity License
MongoEngine

Python Object-Document Mapper for working with MongoDB

Stars Contributors Commit activity License
ODMantic

Asynchronous ODM (Object Document Mapper) for MongoDB based on Python type hints and pydantic

Stars Contributors Commit activity License

Code generators

fastapi-code-generator

Code generator creates a FastAPI application from an openapi file, using datamodel-code-generator to generate the pydantic model

Stars Contributors Commit activity License
FastAPI-based API Client Generator

mypy- and IDE-friendly API client from an OpenAPI specification using the OpenAPI Generator

Stars Contributors Commit activity License

Utilities

Caching

FastAPI Cache

Lightweight cache system

Stars Contributors Commit activity License
fastapi-cache

Caching of fastapi responses and function results, with backends supporting redis, memcache and dynamodb

Stars Contributors Commit activity License

E-mail

Fastapi-mail

Easy mail system for sending e-mails and attachments, individually or in large quantities

Stars Contributors Commit activity License

GraphQL

Strawberry GraphQL

Python GraphQL library based on data classes

Stars Contributors Commit activity License

Logging

ASGI Correlation ID middleware

Middleware to load or generate correlation IDs for each incoming request

Stars Contributors Commit activity License
starlette context

Middleware for Starlette that allows you to store and access the contextual data of a request

Stars Contributors Commit activity License

Prometheus

Prometheus FastAPI Instrumentator

Configurable and modular Prometheus instrumentator

Stars Contributors Commit activity License
starlette_exporter

Prometheus export programme for Starlette and FastAPI

Stars Contributors Commit activity License
Starlette Prometheus

Prometheus integration for Starlette

Stars Contributors Commit activity License

Templating

fastapi-jinja

Integration of the Jinja template language

Stars Contributors Commit activity License
fastapi-chameleon

Integration of the template language Chameleon

Stars Contributors Commit activity License

Pagination

FastAPI Pagination

Easy-to-use pagination for FastAPI with integration in sqlalchemy, gino, databases and ormar, among others

Stars Contributors Commit activity License

Websockets

fastapi-socketio

Easy integration of socket.io in into your FastAPI application

Stars Contributors Commit activity License
FastAPI Websocket Pub/Sub

Fast and permanent pub/sub channel via websockets

Stars Contributors Commit activity License
FASTAPI Websocket RPC

Fast and permanent bidirectional JSON RPC channel via websockets

Stars Contributors Commit activity License

Other tools

Pydantic-SQLAlchemy

Creating Pydantic models from SQLAlchemy models

Stars Contributors Commit activity License
Fastapi Camelcase

Provision of a class of request and response bodies for FastAPI

Stars Contributors Commit activity License
fastapi_profiler

FastAPI middleware based on pyinstrument for performance testing

Stars Contributors Commit activity License
fastapi-versioning

API versioning for FastAPI web applications

Stars Contributors Commit activity License
Jupter Notebook REST API

Run Jupyter notebooks as REST API endpoint

Stars Contributors Commit activity License
manage-fastapi

Project generator and manager for FastAPI

Stars Contributors Commit activity License
msgpack-asgi

Automatic negotiation of MessagePack content in ASGI applications

Stars Contributors Commit activity License
fastapi-plugins

Production-ready plug-ins for the FastAPI framework, including for caching with memcached or Redis, scheduler, configuration and logging

Stars Contributors Commit activity License
fastapi-serviceutils

Optimised logging, exception handling and configuration

Stars Contributors Commit activity License