Skip to main content

Production-grade FastAPI modular monolith

Project description

RacerAPI

Production-grade FastAPI modular monolith baseline.

Architecture

  • FastAPI (no framework wrapping)
  • Domain modules in src/racerapi/modules
  • Layering: API -> Service -> Repo -> DB
  • FastAPI Depends for DI
  • No cross-module imports

Quick Start

python -m venv .venv
.venv\Scripts\activate
pip install -e .

Run the application:

python -m racerapi.main

Health check:

curl http://127.0.0.1:8000/health

Release Validation Commands

python -m pytest -q
python -m ruff check src tests
python scripts/check_architecture.py

Environment

Copy .env.example to .env and adjust values for your environment.

Key variables:

  • RACERAPI_ENV=dev|test|prod
  • RACERAPI_DATABASE_URL=...
  • RACERAPI_LOG_LEVEL=INFO
  • RACERAPI_DEBUG=false

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

racerapi-0.0.6.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

racerapi-0.0.6-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file racerapi-0.0.6.tar.gz.

File metadata

  • Download URL: racerapi-0.0.6.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for racerapi-0.0.6.tar.gz
Algorithm Hash digest
SHA256 6d233c6312f0bdc3424fe224e00706ec56e3c2b3d2da04766b4a47e5ee395aad
MD5 97393b20501c40ac2548fb6281b57c1d
BLAKE2b-256 cd8edccd4a570e90b3db77be14d23a24c8991f4cb74acb7f0065beb153f44669

See more details on using hashes here.

Provenance

The following attestation bundles were made for racerapi-0.0.6.tar.gz:

Publisher: python-publish.yml on 23bg/racerapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file racerapi-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: racerapi-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for racerapi-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f8e90f43968cd154b9320c96d8d33b8198746ab86467a4efab1e94aa0235ccf2
MD5 c3c67d5b6cfe6710fd5be9736bc66059
BLAKE2b-256 31043b3679cb6ee6ba5d2b42cd45b3d23a7ea8efd2f6ecbe023258f04e035473

See more details on using hashes here.

Provenance

The following attestation bundles were made for racerapi-0.0.6-py3-none-any.whl:

Publisher: python-publish.yml on 23bg/racerapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page