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.3.0.tar.gz (94.4 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.3.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bluefox_core-0.3.0.tar.gz
  • Upload date:
  • Size: 94.4 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.3.0.tar.gz
Algorithm Hash digest
SHA256 63d8a50025e8d991b4c799e3e893cd770528adb5896e909a992cfe10123a8ba4
MD5 87f1354da7cd12cb3b7065093a01e669
BLAKE2b-256 249ba9ae3a6a9dc2fba01c7728129dc9ee5a2e8a1fd0c485fa70f84d66eb98d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for bluefox_core-0.3.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: bluefox_core-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6926ebabc201dda4f6f06e73c78193b96ef10b8ac4c11ec70d78dbd7b5e9723
MD5 351292f44bbe9a2fd49d35a1c0f972c5
BLAKE2b-256 bb948de94216bd099f35e781e2bb306d88a1d1c174995293cb13441efa824471

See more details on using hashes here.

Provenance

The following attestation bundles were made for bluefox_core-0.3.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