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; rewrites
APIRoute.handlewith a per-route handler cache to skip repeated handler construction on every request; includes Cython-native implementations for Snowflake ID generation and high-speed URL/Content-Type parsing. - Content-Type Aware Body Parsing — A rewritten request handler decodes request bodies by media type: JSON, plain text, and raw bytes out of the box, plus MessagePack (
application/msgpack, requiresmsgpack) and XML (application/xml, requiresxmltodict) for multi-format APIs; unrecognizedapplication/*sub-types return415 Unsupported Media Type. - 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.
Metadata
Release files for fastapi-extra 0.9.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastapi_extra-0.9.4.tar.gz | 28.2 kB | Without provenance | Details for fastapi_extra-0.9.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastapi_extra-0.9.4-cp314-cp314-win_amd64.whl | CPython 3.14 | CPython 3.14 | Windows x86-64 | Details for fastapi_extra-0.9.4-cp314-cp314-win_amd64.whl |
Total release size: 108.8 kB
Release files / fastapi_extra-0.9.4.tar.gz
| Download URL | fastapi_extra-0.9.4.tar.gz |
|---|---|
| Size | 28.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2fc1cd0ee5be6216169cb5748cf4733dd57fc149045db339c03fc22313e5d2c
|
|
BLAKE2b-256 checksum How to use checksums |
6a82a94b790d8ceaf2632d80f8a8cb309d8bb0f8d9179a0b4b7500f6de04c5f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / fastapi_extra-0.9.4-cp314-cp314-win_amd64.whl
| Download URL | fastapi_extra-0.9.4-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 80.7 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3776496b96b6ba5e399a419bb287ad23f2c11ff55cc7b2f992eda1b980af1de5
|
|
BLAKE2b-256 checksum How to use checksums |
81ff481776b89b92a0854946c74bd8f963724a02f166b2c9647055e9f48ee968
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for fastapi-extra 0.9.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.