FastAPI-Production-Boilerplate
A scalable and production ready boilerplate for FastAPI (by iam-abbas)
fastapi-boilerplate
FastAPI boilerplate for real world production (by teamhide)
FastAPI-Production-Boilerplate | fastapi-boilerplate | |
---|---|---|
4 | 1 | |
320 | 908 | |
14.7% | - | |
3.6 | 6.7 | |
8 months ago | about 1 month ago | |
Python | Python | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
FastAPI-Production-Boilerplate
Posts with mentions or reviews of FastAPI-Production-Boilerplate.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-18.
fastapi-boilerplate
Posts with mentions or reviews of fastapi-boilerplate.
We have used some of these posts to build our list of alternatives
and similar projects.
-
[Python] How to implement a transactional decorator in FastAPI + SQLAlchemy - with reviewing other approaches
from 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()
What are some alternatives?
When comparing FastAPI-Production-Boilerplate and fastapi-boilerplate you can also consider the following projects:
python-rest-template - A clean, scalable, i18n ready FastAPI template
FastAPI-boilerplate - An extendable async API using FastAPI, Pydantic V2, SQLAlchemy 2.0, PostgreSQL and Redis.
fastapi-mvc - Developer productivity tool for making high-quality FastAPI production-ready APIs.
fastapi-template - FastAPI template
fastapi-layered-architecture - FastAPI Layered Architecture
warp_fastapi - Create FastAPI app with warp speed.
FastAPI-template - Feature rich robust FastAPI template.
nepali-ukhaan-apis - This APIs provides the list of nepali ukhaan(idoms) along with their meaning and examples
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
FastAPI-Production-Boilerplate vs python-rest-template
fastapi-boilerplate vs FastAPI-boilerplate
FastAPI-Production-Boilerplate vs fastapi-mvc
fastapi-boilerplate vs fastapi-template
FastAPI-Production-Boilerplate vs fastapi-layered-architecture
fastapi-boilerplate vs warp_fastapi
FastAPI-Production-Boilerplate vs fastapi-template
fastapi-boilerplate vs FastAPI-template
FastAPI-Production-Boilerplate vs warp_fastapi
fastapi-boilerplate vs fastapi-layered-architecture
FastAPI-Production-Boilerplate vs nepali-ukhaan-apis
FastAPI-Production-Boilerplate vs Prisma