Skip to main content

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.


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 SQLBase base 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 generic APIResult[T] response models for standardized API outputs.
  • SQL Template Engine — Supports external .sql files with an @Mapped decorator for annotation-driven query execution (execute, fetch_all, fetch_one).
  • Dependency Injection Architecture — Provides AbstractComponent and AbstractService abstractions with singleton management and ContextVar context passing, seamlessly integrating with FastAPI's Depends.
  • 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

fastapi_extra-0.9.1.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastapi_extra-0.9.1-cp312-cp312-win_amd64.whl (73.1 kB view details)

Uploaded CPython 3.12Windows x86-64

File details

Details for the file fastapi_extra-0.9.1.tar.gz.

File metadata

  • Download URL: fastapi_extra-0.9.1.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for fastapi_extra-0.9.1.tar.gz
Algorithm Hash digest
SHA256 ea7256b5e94158dc1014246008460b3eefa9bd4c9745002a0268c56d25372b64
MD5 bf4872a8eccf95782a85b8fb061bbf91
BLAKE2b-256 6c5c9b1fc9282e2541adb0cb629e18ec662fcd0bb6cbaecb43bd7d76671effdc

See more details on using hashes here.

File details

Details for the file fastapi_extra-0.9.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for fastapi_extra-0.9.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 057ea0fa39b0ce5151523771b2c62ab320a8f4df8c4c7b5054f0aa60fdb21ffa
MD5 f8d6168226a290c78101decf69788a6e
BLAKE2b-256 8caa491be143f39f6f9ee570476fd52d5d6882d21a412bbd1ccb5844b97064ca

See more details on using hashes here.

Release history Release notifications | RSS feed

0.9.4

2 files

0.9.3

2 files

0.9.2

2 files

This release

0.9.1 This release

2 files

0.9.0

2 files

0.8.2

2 files

0.8.1

2 files

0.8.0

2 files

0.7.4

2 files

0.7.3

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.0

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page