FastAPI Extension Suite
Project Overview
fastapi_extra is a feature-rich enhancement extension library for FastAPI (Python >= 3.12, BSD-3-Clause license) designed to provide an out-of-the-box, enterprise-grade framework on top of FastAPI. [Documentation]
Key Features
- Performance Optimization — Uses monkey-patching on FastAPI's internal argument parsing and router matching logic with built-in caching; includes Cython-native implementations for Snowflake ID generation and high-speed URL parsing.
- Complete ORM Layer — Built on top of SQLModel (SQLAlchemy + Pydantic) with a
SQLBasebase class that incorporates Snowflake IDs, optimistic locking (versioning), soft deletes, and automatic timestamps. - Unified API Responses — Features an Alibaba Cloud-style
ResultEnum(120+ pre-defined status codes) and genericAPIResult[T]response models for standardized API outputs. - SQL Template Engine — Supports external
.sqlfiles with an@Mappeddecorator for annotation-driven query execution (execute,fetch_all,fetch_one). - Dependency Injection Architecture — Provides
AbstractComponentandAbstractServiceabstractions with singleton management andContextVarcontext passing, seamlessly integrating with FastAPI'sDepends. - Redis Cache Integration — Async connection pool management with ready-to-use Redis dependency injection.
- Scheduled Tasks — Integrated async task runner built on APScheduler, supporting decorator-based job registration with full dependency injection support inside task functions.
- TOML-Driven Configuration — Multi-layered settings loading (TOML > Env > Defaults > Secrets) powered by
pydantic-settings.
Tech Stack
- Python >= 3.12
- FastAPI >= 0.141.0
- SQLModel >= 0.0.39
- Pydantic Settings >= 2.15.0
- Cython (for performance-critical modules)
Target Use Case
Ideal for building high-performance RESTful API services in enterprise environments, offering a complete end-to-end toolkit covering database connection pooling, ORM operations, caching, scheduled jobs, and standardized API responses.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastapi_extra-0.9.2.tar.gz.
File metadata
- Download URL: fastapi_extra-0.9.2.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b350bcf85bb1f0dd4982bdafd60ab3db3347069b62550c55a919738b172e2a54
|
|
| MD5 |
ef0b391c900dc8cdef5f8d1666b6fac8
|
|
| BLAKE2b-256 |
ec95c60a1e164dabffd26721d367f3d5ad33716a6b9afae8c97972ebbe92f236
|
File details
Details for the file fastapi_extra-0.9.2-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: fastapi_extra-0.9.2-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 71.9 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b6272c552aa6c680e32a3026b6bb64bbff7a8615ef6286f07d6c5cc9d9fb76d
|
|
| MD5 |
154320d6e92b0924b706323e33b77c02
|
|
| BLAKE2b-256 |
2ced3b297b84c455f8facce4f7e3970ea7e5a1753206fbb2f7e2f0c791d20698
|