brek
Orientation: docs/BUSINESS_CONTEXT.md explains what this library means to Harper (DevEx config loader for Python services at boot time) and what must survive a rewrite. docs/ARCHITECTURE.md is the deep technical map. The architecture is annotated with chorograph — render the live map with
npx chorograph render . --no-open(declarations live inchorograph/).
This project is the Python port of the original brek project.
brek keeps the same core principles:
- declarative JSON configuration
- layered config files
- strict environment variable interpolation via
${VAR} - loader-based dynamic values
- a bundled AWS Secrets Manager loader
- strict runtime resolution for required config paths
brek stands for Blocking Resolution of Environment Keys.
Quick Start
Install from PyPI:
python -m pip install brek
Or install from a checkout:
python -m pip install -e .
Create a config/default.json file:
{
"port": 3000,
"postgres": {
"host": "localhost"
},
"secret": {
"[awsSecret]": {
"key": "demo",
"region": "us-west-2"
}
}
}
Generate the resolved cache:
brek load-config
brek load-config always re-resolves config and rewrites the generated cache file.
Within a running Python process, GetConfig() is cached after the first load.
Or use it from Python:
from brek import DefaultLoaders, GetConfig, SetLoaders, require_path
SetLoaders(DefaultLoaders())
conf = GetConfig()
print(require_path(conf, "port"))
Features
- JSON config files with default, environment, deployment, and user overlays.
- CLI and environment overrides through
BREKorOVERRIDE. - Environment variable expansion via
${VAR}syntax. - Loader support for runtime values.
- Bundled
awsSecretloader for AWS Secrets Manager. - Strict access helpers for required and optional paths.
- Standard-library core with no mandatory runtime dependencies.
Docs
Development
make test
Release
Releases are created by AutoRel from conventional commits on main and next.
When GitHub creates a release, the pypi-publish.yml workflow builds an sdist and wheel
and publishes them to PyPI using Trusted Publishing.
To enable publishing, configure Tatch-AI/brek-python as a trusted publisher in the
PyPI project settings for the pypi environment and .github/workflows/pypi-publish.yml.
Support
The original implementation lives at mhweiner/brek.
Releases are automated with autorel from conventional commits on main and next.
Release commits should follow the same conventional-commit format used by the original project.
Metadata
Release files for brek 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| brek-0.1.5.tar.gz | 13.8 kB | With provenance | Details for brek-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| brek-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for brek-0.1.5-py3-none-any.whl |
Total release size: 27.1 kB
Release files / brek-0.1.5.tar.gz
| Download URL | brek-0.1.5.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6261d0c918b0c5b07efa9d661073ff4c45257b70de744ca4174cebb0d7130d0e
|
|
BLAKE2b-256 checksum How to use checksums |
0499da5f4d7ce4270fd2a97000b5a88aedaad11937d5dbe9ac7d8f2aeba5ef5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logRelease files / brek-0.1.5-py3-none-any.whl
| Download URL | brek-0.1.5-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8aefd0fc77bc6c6311a487c2c6bec60989107c47029170d8e29f6aba1de4b03a
|
|
BLAKE2b-256 checksum How to use checksums |
cc460e54429ba847995df87903c809a5ddb934cdeb63bac8a92c2e9eba983cc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logSecurity for brek 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for brek-0.1.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.