Extensions

Administration

SQLAlchemy Admin for Starlette/FastAPI

Flexible admin interface for SQLAlchemy models.

Downloads Contributors Commit activity License
edgy

Edgy is an ORM where your models are 100% Pydantic.

Downloads Contributors Commit activity License
Piccolo Admin

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

Downloads Contributors Commit activity License

Authentication

FastAPI Users

Quickly adds a customisable registration and authentication system

Downloads Contributors Commit activity License
AuthX

Ready-to-use and customisable authentication and Oauth2 management

Downloads Contributors Commit activity License
FastAPI simple security

API key-based security package focused on ease of use

Downloads Contributors Commit activity License
fastapi-auth

Quickly adds a customisable registration and authentication system

Downloads Contributors Commit activity License

ORMs

SQLModel

Library for the interaction of SQL databases with Python objects

Downloads Contributors Commit activity License
Tortoise ORM

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

Downloads Contributors Commit activity License
FastAPI-SQLAlchemy

Easy integration between FastAPI, SQLAlchemy and application

Downloads 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

Downloads Contributors Commit activity License
ORM

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

Downloads Contributors Commit activity License
Piccolo

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

Downloads Contributors Commit activity License
Prisma Client Python

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

Downloads Contributors Commit activity License

SQL Query Builders

Databases

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

Downloads Contributors Commit activity License
FastAPI Filter

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

Downloads Contributors Commit activity Lizenz

ODMs

MongoEngine

Python Object-Document Mapper for working with MongoDB

Downloads Contributors Commit activity License
Beanie

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

Downloads Contributors Commit activity License
ODMantic

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

Downloads 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

Downloads Contributors Commit activity License

Utilities

Caching

fastapi-cache

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

Downloads Contributors Commit activity License

E-mail

Fastapi-mail

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

Downloads Contributors Commit activity License

GraphQL

Strawberry GraphQL

Python GraphQL library based on data classes

Downloads Contributors Commit activity License

Logging

ASGI Correlation ID middleware

Middleware to load or generate correlation IDs for each incoming request

Downloads Contributors Commit activity License
starlette context

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

Downloads Contributors Commit activity License

Prometheus

starlette_exporter

Prometheus export programme for Starlette and FastAPI

Downloads Contributors Commit activity License
Prometheus FastAPI Instrumentator

Configurable and modular Prometheus instrumentator

Downloads Contributors Commit activity License
Starlette Prometheus

Prometheus integration for Starlette

Downloads Contributors Commit activity License

Templating

fastapi-chameleon

Integration of the template language Chameleon

Downloads Contributors Commit activity License

Pagination

FastAPI Pagination

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

Downloads Contributors Commit activity License

Websockets

FASTAPI Websocket RPC

Fast and permanent bidirectional JSON RPC channel via websockets

Downloads Contributors Commit activity License
FastAPI Websocket Pub/Sub

Fast and permanent pub/sub channel via websockets

Downloads Contributors Commit activity License

Other tools

FastAPI Utilities

Utilities to reduce boilerplate and reuse common functionality across projects.

Downloads Contributors Commit activity License
Fastapi Camelcase

Provision of a class of request and response bodies for FastAPI

Downloads Contributors Commit activity License
Pydantic-SQLAlchemy

Creating Pydantic models from SQLAlchemy models

Downloads 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

Downloads Contributors Commit activity License
fastapi_profiler

FastAPI middleware based on pyinstrument for performance testing

Downloads Contributors Commit activity License
manage-fastapi

Project generator and manager for FastAPI

Downloads Contributors Commit activity License

Dormant projects

FastAPI Security

Authentication and authorisation

Downloads Contributors Commit activity License
FastAPIwee

Easy way to create a REST API based on PeeWee models

Downloads Contributors Commit activity License
GINO

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

Downloads Contributors Commit activity License
asyncpgsa

Python wrapper around asyncpg for use with SQLAlchemy

Downloads Contributors Commit activity License
FastAPI-based API Client Generator

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

Downloads Contributors Commit activity License
FastAPI Cache

Lightweight cache system

Downloads Contributors Commit activity License
fastapi-jinja

Integration of the Jinja template language

Downloads Contributors Commit activity License
fastapi-socketio

Easy integration of socket.io in into your FastAPI application

Downloads Contributors Commit activity License
fastapi-versioning

API versioning for FastAPI web applications

Downloads Contributors Commit activity License
Jupter Notebook REST API

Run Jupyter notebooks as REST API endpoint

Downloads Contributors Commit activity License
msgpack-asgi

Automatic negotiation of MessagePack content in ASGI applications

Downloads Contributors Commit activity License
fastapi-serviceutils

Optimised logging, exception handling and configuration

Downloads Contributors Commit activity License