Extensions

Administration

SQLAlchemy Admin for Starlette/FastAPI

Flexible admin interface for SQLAlchemy models.

Downloads Contributors Commit activity Licence
Piccolo Admin

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

Downloads Contributors Commit activity Licence
msgpack-asgi

Automatic negotiation of MessagePack content in ASGI applications

Downloads Contributors Commit activity Licence
edgy

ORM where your models are 100% Pydantic

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
AuthTuna

Authentication library for simple authentication up to SSO, RBAC and Passkeys

Downloads Contributors Commit activity Licence

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
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
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
Piccolo

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

Downloads Contributors Commit activity License
ORM

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

Downloads 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.

Downloads Contributors Commit activity Licence

ODMs

MongoEngine

Python Object-Document Mapper for working with MongoDB

Downloads Contributors Commit activity Licence
Beanie

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

Downloads Contributors Commit activity Licence
ODMantic

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

Downloads Contributors Commit activity Licence

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 Licence

Utilities

Caching

fastapi-cache

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

Downloads Contributors Commit activity Licence

E-mail

Fastapi-mail

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

Downloads Contributors Commit activity Licence

GraphQL

Strawberry GraphQL

Python GraphQL library based on data classes

Downloads Contributors Commit activity Licence

Logging

starlette context

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

Downloads Contributors Commit activity Licence

Prometheus

Prometheus FastAPI Instrumentator

Configurable and modular Prometheus instrumentator

Downloads Contributors Commit activity Licence

Templating

fastapi-chameleon

Integration of the template language Chameleon

Downloads Contributors Commit activity Licence

Pagination

FastAPI Pagination

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

Downloads Contributors Commit activity Licence

Websockets

FASTAPI Websocket RPC

Fast and permanent bidirectional JSON RPC channel via websockets

Downloads Contributors Commit activity Licence
FastAPI Websocket Pub/Sub

Fast and permanent pub/sub channel via websockets

Downloads Contributors Commit activity Licence

Other tools

Pydantic-SQLAlchemy

Creating Pydantic models from SQLAlchemy models

Downloads Contributors Commit activity Licence
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 Licence

Dormant projects

FastAPI simple security

API key-based security package focused on ease of use

Downloads Contributors Commit activity Licence
FastAPI Security

Authentication and authorisation

Downloads Contributors Commit activity Licence
FastAPIwee

Easy way to create a REST API based on PeeWee models

Downloads Contributors Commit activity Licence
fastapi-auth

Quickly adds a customisable registration and authentication system

Downloads Contributors Commit activity License
Databases

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

Downloads Contributors Commit activity Licence
FastAPI-SQLAlchemy

Easy integration between FastAPI, SQLAlchemy and application

Downloads Contributors Commit activity Licence
GINO

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

Downloads Contributors Commit activity Licence
asyncpgsa

Python wrapper around asyncpg for use with SQLAlchemy

Downloads Contributors Commit activity Licence
FastAPI-based API Client Generator

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

Downloads Contributors Commit activity Licence
FastAPI Cache

Lightweight cache system

Downloads Contributors Commit activity Licence
fastapi-jinja

Integration of the Jinja template language

Downloads Contributors Commit activity Licence
fastapi-socketio

Easy integration of socket.io in into your FastAPI application

Downloads Contributors Commit activity Licence
fastapi-versioning

API versioning for FastAPI web applications

Downloads Contributors Commit activity Licence
Jupter Notebook REST API

Run Jupyter notebooks as REST API endpoint

Downloads Contributors Commit activity Licence
ASGI Correlation ID middleware

Middleware to load or generate correlation IDs for each incoming request

Downloads Contributors Commit activity Licence
fastapi-serviceutils

Optimised logging, exception handling and configuration

Downloads Contributors Commit activity Licence
starlette_exporter

Prometheus export programme for Starlette and FastAPI

Downloads Contributors Commit activity Licence
Starlette Prometheus

Prometheus integration for Starlette

Downloads Contributors Commit activity Licence
FastAPI Utilities

Utilities to reduce boilerplate and reuse common functionality across projects.

Downloads Contributors Commit activity Licence
Fastapi Camelcase

Provision of a class of request and response bodies for FastAPI

Downloads Contributors Commit activity Licence
fastapi_profiler

FastAPI middleware based on pyinstrument for performance testing

Downloads Contributors Commit activity Licence
manage-fastapi

Project generator and manager for FastAPI

Downloads Contributors Commit activity Licence