Skip to content

List of automatically rated Python packages for FastAPI.

License

Notifications You must be signed in to change notification settings

fkromer/best-of-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

best-of-fastapi

πŸ†Β  A ranked list of awesome projects. Updated weekly.

This curated list contains 39 awesome open-source projects with a total of 85K stars grouped into 11 categories. All projects are ranked by a project-quality score, which is calculated based on various metrics automatically collected from GitHub and different package managers. If you like to add or update projects, feel free to open an issue, submit a pull request, or directly edit the projects.yaml. Contributions are very welcome!

πŸ§™β€β™‚οΈ Discover other best-of lists or create your own.

Contents

Explanation

  • πŸ₯‡πŸ₯ˆπŸ₯‰Β  Combined project-quality score
  • ⭐️  Star count from GitHub
  • 🐣  New project (less than 6 months old)
  • πŸ’€Β  Inactive project (12 months no activity)
  • πŸ’€Β  Dead project (60 months no activity)
  • πŸ“ˆπŸ“‰Β  Project is trending up or down
  • βž•Β  Project was recently added
  • ❗️  Warning (e.g. missing/risky license)
  • πŸ‘¨β€πŸ’»Β  Contributors count from GitHub
  • πŸ”€Β  Fork count from GitHub
  • πŸ“‹Β  Issue count from GitHub
  • ⏱️  Last update timestamp on package manager
  • πŸ“₯Β  Download count from package manager
  • πŸ“¦Β  Number of dependent projects

Admin Interface

Back to top

sqladmin (πŸ₯‡31 Β· ⭐ 1.8K) - SQLAlchemy Admin for FastAPI and Starlette. BSD-3
  • GitHub (πŸ‘¨β€πŸ’» 60 Β· πŸ”€ 180 Β· πŸ“¦ 1K Β· πŸ“‹ 220 - 14% open Β· ⏱️ 06.09.2024):

     git clone https://github.com/aminalaee/sqladmin
    
  • PyPi (πŸ“₯ 110K / month):

     pip install sqladmin
    
fastapi-admin (πŸ₯‰25 Β· ⭐ 2.8K) - A fast admin dashboard based on FastAPI and TortoiseORM with.. Apache-2
  • GitHub (πŸ‘¨β€πŸ’» 16 Β· πŸ”€ 360 Β· πŸ“¦ 360 Β· πŸ“‹ 120 - 41% open Β· ⏱️ 05.09.2024):

     git clone https://github.com/fastapi-admin/fastapi-admin
    
  • PyPi (πŸ“₯ 7.2K / month):

     pip install fastapi-admin
    
piccolo-admin (πŸ₯‰19 Β· ⭐ 310) - A powerful web admin for your database. MIT
  • GitHub (πŸ‘¨β€πŸ’» 18 Β· πŸ”€ 36 Β· πŸ“‹ 160 - 21% open Β· ⏱️ 07.08.2024):

     git clone https://github.com/piccolo-orm/piccolo_admin
    
  • PyPi (πŸ“₯ 3K / month):

     pip install piccolo-admin
    

CRUD

Back to top

FastCRUD (πŸ₯‡21 Β· ⭐ 620) - FastCRUD is a Python package for FastAPI, offering robust async CRUD.. MIT
  • GitHub (πŸ‘¨β€πŸ’» 10 Β· πŸ”€ 43 Β· πŸ“¦ 82 Β· πŸ“‹ 67 - 43% open Β· ⏱️ 06.09.2024):

     git clone https://github.com/igorbenav/fastcrud
    

Database - ODMs

Back to top

mongoengine (πŸ₯‡40 Β· ⭐ 4.2K Β· πŸ“ˆ) - A Python Object-Document-Mapper for working with MongoDB. MIT
  • GitHub (πŸ‘¨β€πŸ’» 400 Β· πŸ”€ 1.2K Β· πŸ“¦ 25K Β· πŸ“‹ 1.7K - 19% open Β· ⏱️ 06.09.2024):

     git clone https://github.com/MongoEngine/mongoengine
    
  • PyPi (πŸ“₯ 1.3M / month):

     pip install mongoengine
    
motor (πŸ₯ˆ35 Β· ⭐ 2.4K) - Motor - the async Python driver for MongoDB and Tornado or asyncio. Apache-2
  • GitHub (πŸ‘¨β€πŸ’» 54 Β· πŸ”€ 200 Β· πŸ“₯ 7 Β· πŸ“¦ 99K Β· ⏱️ 03.09.2024):

     git clone https://github.com/mongodb/motor
    
  • PyPi (πŸ“₯ 2M / month):

     pip install motor
    
pymongo (πŸ₯‰32 Β· ⭐ 4.1K) - PyMongo - the Official MongoDB Python driver. Apache-2
  • GitHub (πŸ‘¨β€πŸ’» 220 Β· πŸ”€ 1.1K Β· πŸ“₯ 23 Β· ⏱️ 06.09.2024):

     git clone https://github.com/mongodb/mongo-python-driver
    
  • PyPi (πŸ“₯ 32M / month):

     pip install pymongo
    
beanie (πŸ₯‰31 Β· ⭐ 2K) - Asynchronous Python ODM for MongoDB. Apache-2
  • GitHub (πŸ‘¨β€πŸ’» 90 Β· πŸ”€ 210 Β· πŸ“¦ 2.7K Β· πŸ“‹ 420 - 19% open Β· ⏱️ 27.08.2024):

     git clone https://github.com/roman-right/beanie
    
  • PyPi (πŸ“₯ 230K / month):

     pip install beanie
    
odmantic (πŸ₯‰25 Β· ⭐ 1K) - Sync and Async ODM (Object Document Mapper) for MongoDB based on python.. ISC
  • GitHub (πŸ‘¨β€πŸ’» 19 Β· πŸ”€ 89 Β· πŸ“¦ 3.4K Β· πŸ“‹ 160 - 46% open Β· ⏱️ 26.04.2024):

     git clone https://github.com/art049/odmantic
    
  • PyPi (πŸ“₯ 28K / month):

     pip install odmantic
    

Database - ORMs

Back to top

sqlalchemy (πŸ₯‡45 Β· ⭐ 9.4K) - The Database Toolkit for Python. MIT
  • GitHub (πŸ‘¨β€πŸ’» 730 Β· πŸ”€ 1.4K Β· πŸ“₯ 48K Β· πŸ“¦ 850K Β· πŸ“‹ 7.9K - 2% open Β· ⏱️ 05.09.2024):

     git clone https://github.com/sqlalchemy/sqlalchemy
    
  • PyPi (πŸ“₯ 150M / month):

     pip install sqlalchemy
    
tortoise-orm (πŸ₯ˆ34 Β· ⭐ 4.5K Β· πŸ“‰) - Familiar asyncio ORM for python, built with relations in.. Apache-2
  • GitHub (πŸ‘¨β€πŸ’» 140 Β· πŸ”€ 370 Β· πŸ“₯ 15 Β· πŸ“¦ 8.2K Β· πŸ“‹ 1.1K - 47% open Β· ⏱️ 27.08.2024):

     git clone https://github.com/tortoise/tortoise-orm
    
  • PyPi (πŸ“₯ 200K / month):

     pip install tortoise-orm
    
ormar (πŸ₯ˆ30 Β· ⭐ 1.6K) - python async orm with fastapi in mind and pydantic validation. MIT
  • GitHub (πŸ‘¨β€πŸ’» 38 Β· πŸ”€ 83 Β· πŸ“¦ 1K Β· πŸ“‹ 260 - 26% open Β· ⏱️ 02.08.2024):

     git clone https://github.com/collerek/ormar
    
  • PyPi (πŸ“₯ 23K / month):

     pip install ormar
    
piccolo (πŸ₯‰29 Β· ⭐ 1.4K) - A fast, user friendly ORM and query builder which supports asyncio. MIT
  • GitHub (πŸ‘¨β€πŸ’» 44 Β· πŸ”€ 88 Β· πŸ“¦ 390 Β· πŸ“‹ 400 - 27% open Β· ⏱️ 20.08.2024):

     git clone https://github.com/piccolo-orm/piccolo
    
  • PyPi (πŸ“₯ 28K / month):

     pip install piccolo
    
prisma (πŸ₯‰26 Β· ⭐ 1.8K) - Prisma Client Python is an auto-generated and fully type-safe.. Apache-2
  • GitHub (πŸ‘¨β€πŸ’» 30 Β· πŸ”€ 77 Β· πŸ“‹ 390 - 48% open Β· ⏱️ 03.09.2024):

     git clone https://github.com/RobertCraigie/prisma-client-py
    
  • PyPi (πŸ“₯ 810K / month):

     pip install prisma
    
gino (πŸ₯‰24 Β· ⭐ 2.7K Β· πŸ’€) - GINO Is Not ORM - a Python asyncio ORM on SQLAlchemy core. ❗Unlicensed
  • GitHub (πŸ‘¨β€πŸ’» 45 Β· πŸ”€ 150 Β· πŸ“¦ 2.4K Β· πŸ“‹ 310 - 14% open Β· ⏱️ 12.02.2022):

     git clone https://github.com/python-gino/gino
    
  • PyPi (πŸ“₯ 25K / month):

     pip install gino
    
orm (πŸ₯‰22 Β· ⭐ 1.8K Β· πŸ’€) - An async ORM. BSD-3
  • GitHub (πŸ‘¨β€πŸ’» 18 Β· πŸ”€ 95 Β· πŸ“¦ 530 Β· πŸ“‹ 81 - 20% open Β· ⏱️ 30.08.2022):

     git clone https://github.com/encode/orm
    
  • PyPi (πŸ“₯ 4.8K / month):

     pip install orm
    

Database - ORM Integrations

Back to top

sqlmodel (πŸ₯‡36 Β· ⭐ 14K Β· πŸ“‰) - SQL databases in Python, designed for simplicity, compatibility, and.. MIT
  • GitHub (πŸ‘¨β€πŸ’» 79 Β· πŸ”€ 580 Β· πŸ“¦ 15K Β· πŸ“‹ 330 - 52% open Β· ⏱️ 03.09.2024):

     git clone https://github.com/tiangolo/sqlmodel
    
  • PyPi (πŸ“₯ 1.7M / month):

     pip install sqlmodel
    
fastapi-sqlalchemy (πŸ₯‰17 Β· ⭐ 610) - Adds simple SQLAlchemy support to FastAPI. MIT
  • GitHub (πŸ‘¨β€πŸ’» 7 Β· πŸ”€ 37 Β· πŸ“¦ 2 Β· πŸ“‹ 23 - 43% open Β· ⏱️ 09.04.2024):

     git clone https://github.com/mfreeborn/fastapi-sqlalchemy
    
  • PyPi (πŸ“₯ 77K / month):

     pip install fastapi-sqlalchemy
    

GraphQL API

Back to top

graphene (πŸ₯‡37 Β· ⭐ 8.1K Β· πŸ“ˆ) - GraphQL framework for Python. MIT
  • GitHub (πŸ‘¨β€πŸ’» 210 Β· πŸ”€ 800 Β· πŸ“¦ 23K Β· πŸ“‹ 1K - 9% open Β· ⏱️ 08.08.2024):

     git clone https://github.com/graphql-python/graphene
    
  • PyPi (πŸ“₯ 10M / month):

     pip install graphene
    
ariadne (πŸ₯ˆ32 Β· ⭐ 2.2K Β· πŸ“‰) - Python library for implementing GraphQL servers using schema-first.. BSD-3
  • GitHub (πŸ‘¨β€πŸ’» 76 Β· πŸ”€ 180 Β· πŸ“¦ 1.7K Β· πŸ“‹ 310 - 9% open Β· ⏱️ 02.08.2024):

     git clone https://github.com/mirumee/ariadne
    
  • PyPi (πŸ“₯ 260K / month):

     pip install ariadne
    
strawberry (πŸ₯‰27 Β· ⭐ 3.9K) - A GraphQL library for Python that leverages type annotations. MIT
  • GitHub (πŸ‘¨β€πŸ’» 260 Β· πŸ”€ 510 Β· πŸ“₯ 420 Β· πŸ“‹ 1K - 39% open Β· ⏱️ 04.09.2024):

     git clone https://github.com/strawberry-graphql/strawberry
    
  • PyPi (πŸ“₯ 500 / month):

     pip install strawberry
    
tartiflette (πŸ₯‰20 Β· ⭐ 860 Β· πŸ’€) - GraphQL Engine built with Python 3.6+ / asyncio. MIT
  • GitHub (πŸ‘¨β€πŸ’» 27 Β· πŸ”€ 36 Β· πŸ“‹ 140 - 8% open Β· ⏱️ 20.01.2022):

     git clone https://github.com/tartiflette/tartiflette
    
  • PyPi (πŸ“₯ 2.7K / month):

     pip install tartiflette
    

RESTful API - Authentication

Back to top

fastapi-users (πŸ₯‡30 Β· ⭐ 4.5K Β· πŸ“‰) - Ready-to-use and customizable users management for.. MIT
  • GitHub (πŸ‘¨β€πŸ’» 66 Β· πŸ”€ 380 Β· πŸ“₯ 260 Β· πŸ“¦ 3.8K Β· πŸ“‹ 270 - 1% open Β· ⏱️ 14.07.2024):

     git clone https://github.com/fastapi-users/fastapi-users
    
  • PyPi (πŸ“₯ 200K / month):

     pip install fastapi-users
    
fastapi-azure-auth (πŸ₯ˆ26 Β· ⭐ 440) - Easy and secure implementation of Azure Entra ID.. MIT
  • GitHub (πŸ‘¨β€πŸ’» 27 Β· πŸ”€ 64 Β· πŸ“¦ 82 Β· ⏱️ 20.08.2024):

     git clone https://github.com/Intility/fastapi-azure-auth
    
  • PyPi (πŸ“₯ 120K / month):

     pip install fastapi-azure-auth
    
fastapi-login (πŸ₯ˆ25 Β· ⭐ 630) - FastAPI-Login tries to provide similar functionality as.. MIT
  • GitHub (πŸ‘¨β€πŸ’» 14 Β· πŸ”€ 56 Β· πŸ“₯ 7 Β· πŸ“¦ 950 Β· ⏱️ 30.06.2024):

     git clone https://github.com/MushroomMaula/fastapi_login
    
  • PyPi (πŸ“₯ 30K / month):

     pip install fastapi-login
    
authx (πŸ₯ˆ24 Β· ⭐ 770) - Ready-to-use and customizable Authentications and Oauth2 management for.. MIT
  • GitHub (πŸ‘¨β€πŸ’» 17 Β· πŸ”€ 48 Β· πŸ“¦ 33 Β· πŸ“‹ 52 - 9% open Β· ⏱️ 04.09.2024):

     git clone https://github.com/yezz123/AuthX
    
  • PyPi (πŸ“₯ 1.9K / month):

     pip install authx
    
fastapi-cloudauth (πŸ₯‰19 Β· ⭐ 330 Β· πŸ’€) - Simple integration between FastAPI and cloud.. MIT
  • GitHub (πŸ‘¨β€πŸ’» 6 Β· πŸ”€ 34 Β· πŸ“¦ 86 Β· πŸ“‹ 48 - 62% open Β· ⏱️ 12.05.2022):

     git clone https://github.com/tokusumi/fastapi-cloudauth
    
  • PyPi (πŸ“₯ 36K / month):

     pip install fastapi-cloudauth
    
fastapi-jwt-auth (πŸ₯‰18 Β· ⭐ 640 Β· πŸ’€) - FastAPI extension that provides JWT Auth support.. MIT
  • GitHub (πŸ‘¨β€πŸ’» 3 Β· πŸ”€ 110 Β· πŸ“‹ 83 - 56% open Β· ⏱️ 11.11.2020):

     git clone https://github.com/IndominusByte/fastapi-jwt-auth
    
  • PyPi (πŸ“₯ 76K / month):

     pip install fastapi-jwt-auth
    
fastapi-security (πŸ₯‰16 Β· ⭐ 140 Β· πŸ’€) - Implements authentication and authorization as.. MIT
  • GitHub (πŸ‘¨β€πŸ’» 3 Β· πŸ”€ 7 Β· πŸ“₯ 57 Β· πŸ“¦ 71 Β· πŸ“‹ 4 - 25% open Β· ⏱️ 15.05.2022):

     git clone https://github.com/jacobsvante/fastapi-security
    
  • PyPi (πŸ“₯ 8.2K / month):

     pip install fastapi-security
    
fastapi-simple-security (πŸ₯‰14 Β· ⭐ 320 Β· πŸ’€) - Drop-in API-key based security for FastAPI. MIT
  • GitHub (πŸ‘¨β€πŸ’» 7 Β· πŸ”€ 32 Β· πŸ“‹ 11 - 9% open Β· ⏱️ 18.07.2023):

     git clone https://github.com/mrtolkien/fastapi_simple_security
    
  • PyPi (πŸ“₯ 1.3K / month):

     pip install fastapi-simple-security
    
fastapi-auth (πŸ₯‰7 Β· ⭐ 140 Β· πŸ’€) - Auth for use with FastAPI. MIT
  • GitHub (πŸ”€ 8 Β· πŸ“‹ 2 - 50% open Β· ⏱️ 18.12.2019):

     git clone https://github.com/dmontagu/fastapi-auth
    
  • PyPi (πŸ“₯ 250 / month):

     pip install fastapi-auth
    

RESTful API - Rate Limiting

Back to top

SlowApi (πŸ₯‡26 Β· ⭐ 1.1K Β· πŸ“ˆ) - A rate limiter for Starlette and FastAPI. MIT
  • GitHub (πŸ‘¨β€πŸ’» 26 Β· πŸ”€ 73 Β· πŸ“¦ 2.8K Β· πŸ“‹ 92 - 35% open Β· ⏱️ 27.06.2024):

     git clone https://github.com/laurentS/slowapi
    
  • PyPi (πŸ“₯ 530K / month):

     pip install slowapi
    
fastapi-limiter (πŸ₯‰22 Β· ⭐ 480) - A request rate limiter for fastapi. Apache-2
  • GitHub (πŸ‘¨β€πŸ’» 12 Β· πŸ”€ 48 Β· πŸ“¦ 1.6K Β· πŸ“‹ 38 - 63% open Β· ⏱️ 05.01.2024):

     git clone https://github.com/long2ice/fastapi-limiter
    
  • PyPi (πŸ“₯ 69K / month):

     pip install fastapi-limiter
    

RESTful API - Pagination

Back to top

fastapi-pagination (πŸ₯‡33 Β· ⭐ 1.1K Β· πŸ“ˆ) - FastAPI pagination. MIT
  • GitHub (πŸ‘¨β€πŸ’» 46 Β· πŸ”€ 130 Β· πŸ“¦ 2.7K Β· πŸ“‹ 220 - 7% open Β· ⏱️ 06.09.2024):

     git clone https://github.com/uriyyo/fastapi-pagination
    
  • PyPi (πŸ“₯ 1M / month):

     pip install fastapi-pagination
    

RESTful API - Observability

Back to top

opentelemetry-instrumentation-fastapi (πŸ₯‡35 Β· ⭐ 700 Β· πŸ“ˆ) - OpenTelemetry instrumentation for Python modules. Apache-2
  • GitHub (πŸ‘¨β€πŸ’» 300 Β· πŸ”€ 570 Β· πŸ“¦ 2K Β· πŸ“‹ 1.2K - 34% open Β· ⏱️ 04.09.2024):

     git clone https://github.com/open-telemetry/opentelemetry-python-contrib
    
  • PyPi (πŸ“₯ 5.6M / month):

     pip install opentelemetry-instrumentation-fastapi
    
prometheus-fastapi-instrumentator (πŸ₯‰26 Β· ⭐ 930 Β· πŸ“‰) - Instrument your FastAPI with Prometheus metrics. ISC
  • GitHub (πŸ‘¨β€πŸ’» 28 Β· πŸ”€ 80 Β· πŸ“¦ 2.2K Β· πŸ“‹ 97 - 37% open Β· ⏱️ 13.03.2024):

     git clone https://github.com/trallnag/prometheus-fastapi-instrumentator
    
  • PyPi (πŸ“₯ 1.4M / month):

     pip install prometheus-fastapi-instrumentator
    
fastapi-opentracing (πŸ₯‰9 Β· ⭐ 23 Β· πŸ’€) - fastapi opentracing middleware works on k8s. MIT
  • GitHub (πŸ‘¨β€πŸ’» 5 Β· πŸ”€ 8 Β· πŸ“‹ 6 - 83% open Β· ⏱️ 19.01.2022):

     git clone https://github.com/wesdu/fastapi-opentracing
    
  • PyPi (πŸ“₯ 170 / month):

     pip install fastapi-opentracing
    

RESTful API - Templating

Back to top

fastapi-chameleon (πŸ₯‡11 Β· ⭐ 140) - Adds integration of the Chameleon template language to.. MIT
  • GitHub (πŸ‘¨β€πŸ’» 7 Β· πŸ”€ 26 Β· πŸ“‹ 13 - 7% open Β· ⏱️ 21.01.2024):

     git clone https://github.com/mikeckennedy/fastapi-chameleon
    
  • PyPi (πŸ“₯ 370 / month):

     pip install fastapi-chameleon
    
fastapi-jinja (πŸ₯‰9 Β· ⭐ 68 Β· πŸ’€) - Adds integration of the Jinja template language to FastAPI. MIT
  • GitHub (πŸ‘¨β€πŸ’» 5 Β· πŸ”€ 11 Β· ⏱️ 29.03.2021):

     git clone https://github.com/AGeekInside/fastapi-jinja
    
  • PyPi (πŸ“₯ 190 / month):

     pip install fastapi-jinja
    

Related Resources

  • Best-of lists: Discover other best-of lists with awesome open-source projects on all kinds of topics.

Contribution

Contributions are encouraged and always welcome! If you like to add or update projects, choose one of the following ways:

  • Open an issue by selecting one of the provided categories from the issue page and fill in the requested information.
  • Modify the projects.yaml with your additions or changes, and submit a pull request. This can also be done directly via the Github UI.

If you like to contribute to or share suggestions regarding the project metadata collection or markdown generation, please refer to the best-of-generator repository. If you like to create your own best-of list, we recommend to follow this guide.

For more information on how to add or update projects, please read the contribution guidelines. By participating in this project, you agree to abide by its Code of Conduct.

License

CC0