Skip to main content

The foundation of every Bluefox app — settings, database, logging, health, and app factory.

Project description

bluefox-core

The foundation of every Bluefox app — settings, database, logging, health endpoints, and app factory for FastAPI.

Quick start

uv init my-app && cd my-app
uv add bluefox-core
# main.py
from bluefox_core import BluefoxSettings, create_bluefox_app

settings = BluefoxSettings()
app = create_bluefox_app(settings)
uv run uvicorn main:app --reload

What you get

  • Settings — Typed configuration via pydantic-settings. Reads from environment variables and .env files.
  • Async database — SQLAlchemy 2.x with asyncpg. Engine lifecycle, session dependency, URL normalization.
  • Structured logging — structlog with JSON in production, colored console in development. Request IDs via contextvars.
  • Health endpoints/health for liveness, /readiness for dependency checks.
  • Request ID middleware — Generates or preserves X-Request-ID headers, bound to log context.
  • App factory — One function wires everything together and returns a standard FastAPI app.

Demo app

Pass demo=True to get a working Todo CRUD app:

app = create_bluefox_app(settings, demo=True)
# Visit /docs to interact with the Todo API

Links

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

bluefox_core-0.4.0.tar.gz (99.3 kB view details)

Uploaded Source

Built Distribution

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

bluefox_core-0.4.0-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file bluefox_core-0.4.0.tar.gz.

File metadata

  • Download URL: bluefox_core-0.4.0.tar.gz
  • Upload date:
  • Size: 99.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bluefox_core-0.4.0.tar.gz
Algorithm Hash digest
SHA256 94dd107c46c849855b6d94462e38762b2f6a310c07c33df3a604f1acddb8d36b
MD5 3229065874385de4c10da35a41ca9c1e
BLAKE2b-256 e831b83537e87663efddd038a6225da4becf0f14ad7c810c895915c3400fb4ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for bluefox_core-0.4.0.tar.gz:

Publisher: publish.yml on blue-fox-software/bluefox-core

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

File details

Details for the file bluefox_core-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: bluefox_core-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bluefox_core-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77d097e44ea8c9fdf49d2be1ec69f56cdd4bf067da1c708c1d5e2ba004f1a42d
MD5 bc43901b8c4bc93b4d48ed147592845b
BLAKE2b-256 8062c4841d21cb3d77520caa2452fec26a72255107d72264fa1b19e9358e5736

See more details on using hashes here.

Provenance

The following attestation bundles were made for bluefox_core-0.4.0-py3-none-any.whl:

Publisher: publish.yml on blue-fox-software/bluefox-core

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