The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 14 Python fastapi-boilerplate Projects
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
fastapi-alembic-sqlmodel-async
This is a project template which uses FastAPI, Pydantic 2.0, Alembic and async SQLModel as ORM. It shows a complete async CRUD using authentication and role base access control.
-
FastAPI-boilerplate
An extendable async API using FastAPI, Pydantic V2, SQLAlchemy 2.0, PostgreSQL and Redis. (by igorbenav)
-
fastapi-template
A FastAPI project template using Make, Docker Compose and Github Actions. This includes a SQLAlchemy integration and an integration test setup. (by BiteStreams)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
fastapi-motor-mongo-template
High-performance FastAPI backend boilerplate for real-world production, with mongo and pytest. Suitable for microservices.
-
example
Example project created by fastapi-mvc from fastapi-mvc/copier-project template (by fastapi-mvc)
-
gcp-fastapi-poetry
Template repo for a GCP-hosted REST API with automatic API versioning and custom domain mapping
-
cookiecutter-fastapi-mongo
High-performance FastAPI backend boilerplate for real-world production, with mongo and pytest. Suitable for microservices.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
I'm pretty partial to s3rius's template boiler plate. Used it while contracting a while back and it just tackled everything I'd want for the first few months leaving me time to focus on CRUD / business logic instead of Devops stuff. Do wish it used ruff but that was an ultra easy swap.
Project mention: [Python] How to implement a transactional decorator in FastAPI + SQLAlchemy - with reviewing other approaches | dev.to | 2023-05-29from typing import Optional from contextvars import ContextVar from sqlalchemy.ext.asyncio import ( create_async_engine, async_scoped_session, async_sessionmaker, AsyncSession, ) from ..config import config # some hints from: https://github.com/teamhide/fastapi-boilerplate/blob/master/core/db/session.py db_session_context: ContextVar[Optional[int]] = ContextVar( "db_session_context", default=None ) engine = create_async_engine(url=config.DB_URL) def get_db_session_context() -> int: session_id = db_session_context.get() if not session_id: raise ValueError("Currently no session is available") return session_id def set_db_session_context(*, session_id: int) -> None: db_session_context.set(session_id) AsyncScopedSession = async_scoped_session( session_factory=async_sessionmaker(bind=engine, autoflush=False, autocommit=False), scopefunc=get_db_session_context, ) def get_current_session() -> AsyncSession: return AsyncScopedSession()
Yet another FastAPI Boilerplate (starter project) to help you productizing Machine Learning or just creating an API 🚀 https://github.com/igorbenav/FastAPI-boilerplate
Project mention: Show HN: Clean architecture template repository for building FastAPI apps | news.ycombinator.com | 2023-06-19
Project mention: Python library for generating FastAPI code - Feedback welcome | /r/FastAPI | 2023-10-22Here is the link to the GitHub repository: https://github.com/frenki123/warp_fastapi
Python fastapi-boilerplate related posts
- âš¡FastGen v0.3.5, What's new !?
- âš¡FastGen 0.2.5, Poetry and ORMs are now supported!
- Show HN: Generate customizable production grade FastAPI projects
- Generate customizable FastAPI projects for high-performance applications. Based on MVC, WSGI + ASGI with tests, pipeline, utilities, helm, and more.
- Show HN: Fastapi-MVC – generate customizable FastAPI projects
-
A note from our sponsor - WorkOS
workos.com | 27 Apr 2024
Index
What are some of the best open-source fastapi-boilerplate projects in Python? This list will help you:
Project | Stars | |
---|---|---|
1 | FastAPI-template | 1,659 |
2 | fastapi-boilerplate | 873 |
3 | fastapi-alembic-sqlmodel-async | 794 |
4 | fastapi-mvc | 562 |
5 | FastAPI-boilerplate | 346 |
6 | FastAPI-Production-Boilerplate | 303 |
7 | fastapi-template | 103 |
8 | fastapi-motor-mongo-template | 50 |
9 | example | 44 |
10 | fastgen | 18 |
11 | gcp-fastapi-poetry | 16 |
12 | fastapi-template | 13 |
13 | cookiecutter-fastapi-mongo | 11 |
14 | warp_fastapi | 1 |
Sponsored