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
.envfiles. - 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 —
/healthfor liveness,/readinessfor dependency checks. - Request ID middleware — Generates or preserves
X-Request-IDheaders, 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bluefox_core-0.1.1.tar.gz.
File metadata
- Download URL: bluefox_core-0.1.1.tar.gz
- Upload date:
- Size: 82.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b00290af9a40944aece0cca18d547d54bdd9049d15f6e0887f51e76812aef955
|
|
| MD5 |
1aa6d7ccd4ed6973a45fcbd3ace966f0
|
|
| BLAKE2b-256 |
ad98a3b6cb637117342a0e993082d0ade8b5f5b30a680eda28c6c90bcb22a8bf
|
Provenance
The following attestation bundles were made for bluefox_core-0.1.1.tar.gz:
Publisher:
publish.yml on blue-fox-software/bluefox-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bluefox_core-0.1.1.tar.gz -
Subject digest:
b00290af9a40944aece0cca18d547d54bdd9049d15f6e0887f51e76812aef955 - Sigstore transparency entry: 1099505136
- Sigstore integration time:
-
Permalink:
blue-fox-software/bluefox-core@e83fa293c906ee70258a6bd81092ba8d25e5deb4 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/blue-fox-software
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e83fa293c906ee70258a6bd81092ba8d25e5deb4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bluefox_core-0.1.1-py3-none-any.whl.
File metadata
- Download URL: bluefox_core-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca433b72cf028b74adb3dfdafce633940143cc1bebb0f27d1ccee495290ef95d
|
|
| MD5 |
82844407263dda915c57bee880f57810
|
|
| BLAKE2b-256 |
b76e664cdc5c72588bbbd8cce23ebc412d3db84ea3657ef87f368568e7684efe
|
Provenance
The following attestation bundles were made for bluefox_core-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on blue-fox-software/bluefox-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bluefox_core-0.1.1-py3-none-any.whl -
Subject digest:
ca433b72cf028b74adb3dfdafce633940143cc1bebb0f27d1ccee495290ef95d - Sigstore transparency entry: 1099505204
- Sigstore integration time:
-
Permalink:
blue-fox-software/bluefox-core@e83fa293c906ee70258a6bd81092ba8d25e5deb4 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/blue-fox-software
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e83fa293c906ee70258a6bd81092ba8d25e5deb4 -
Trigger Event:
push
-
Statement type: