Skip to main content

krepis

License: MIT Python Typed Tests

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.

Metadata

Release files for krepis 0.59.93

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for krepis 0.59.93
File Size Uploaded Provenance Actions
krepis-0.59.93.tar.gz 830.5 kB With provenance Details for krepis-0.59.93.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for krepis 0.59.93
File Interpreter ABI Platform Actions
krepis-0.59.93-py3-none-any.whl Python 3 none any Details for krepis-0.59.93-py3-none-any.whl

Total release size: 1.3 MB

Release files / krepis-0.59.93.tar.gz

Download URL krepis-0.59.93.tar.gz
Size 830.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7d9cf1a4f9b3402bc83de3deb5961395a844f68289c2d8925ab337e41b945c55
BLAKE2b-256 checksum
How to use checksums
f9394ba12e1e2d6eafee52be5091c11ed6345d0e503a9a3e55cd1b8072f984db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Release files / krepis-0.59.93-py3-none-any.whl

Download URL krepis-0.59.93-py3-none-any.whl
Size 514.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3aa23465a97a9f935f76ecd1c1c1b99710d2f7ed6d004660a94200de372d8ac
BLAKE2b-256 checksum
How to use checksums
ce50d5ed0032327cb9917944492141b725099f2fca75c2b30083f940c2fce23f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Security for krepis 0.59.93

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.

Select from 2 files

Attestation for krepis-0.59.93.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 Nov 4, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.59.93 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page