krepis
krepis (Greek κρηπίς — the foundation course a structure stands on) is a small, typed library of general-purpose Python primitives for building production data and LLM pipelines on AWS.
Install
pip install krepis
What's inside
| Module | Purpose |
|---|---|
logging |
Structured logging + the flow-doctor secret-seeding chokepoint |
secrets |
SSM-backed secret resolution |
alerts |
Telegram / SNS alert routing with S3-marker dedup (incl. CLI) |
telegram |
Telegram transport |
webpush |
Web Push (VAPID) transport — reaches an installed PWA/site regardless of tab state (webpush extra) |
email_sender |
SES / SMTP email transport |
http_retry |
Bounded-backoff HTTP retry with jitter |
locks |
S3 conditional-PUT writer locks |
cost |
LLM cost telemetry (token counts × price card → USD) |
model_metadata |
ModelMetadata value object (per-invocation model + token cost) |
anthropic_payload |
Anthropic request-payload construction + validation |
metrics |
Typed metric records |
trading_calendar |
NYSE trading-day calendar (pure stdlib) |
dates |
Calendar / trading-day dual-track date helpers |
ec2_spot |
EC2 spot-instance resilience helpers |
ssm_dispatcher |
SSM command dispatch |
ssm_log_capture |
SSM run-command log capture |
usage_pacing |
Linear-pace short-circuit against a rolling reset-window quota |
Development
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
Run the test suite:
python -m pytest -q
A healthy result is all tests passing with coverage ≥ 90%. The CI matrix
tests Python 3.9 through 3.13 on every PR and push to main.
License
MIT — see LICENSE and NOTICE. Contributions accepted
under the DCO (git commit -s).
Part of the Nous Ergon project.
Release files for krepis 0.59.52
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| krepis-0.59.52.tar.gz | 655.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| krepis-0.59.52-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / krepis-0.59.52.tar.gz
| Download URL | krepis-0.59.52.tar.gz |
|---|---|
| Size | 655.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3270f895d424d12c03d925f960aaca5cc36aca4ccc362697afc6f0378e2169b6
|
|
BLAKE2b-256 checksum How to use checksums |
091cb9f1ffe42172922677f353babcfa19a7247053461a5a65d1e8bdbe42da09
|
| 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 Sep 7, 2026.
Transparency logRelease files / krepis-0.59.52-py3-none-any.whl
| Download URL | krepis-0.59.52-py3-none-any.whl |
|---|---|
| Size | 412.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65e9bd7d1d973c8aa218d4f495b8e3599fb52554f0e1260243c836e0163fceb0
|
|
BLAKE2b-256 checksum How to use checksums |
76c7db783c0ea504636c00c408ab99294b0023896356cef719c8c3be6df178c6
|
| 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 Sep 7, 2026.
Transparency log