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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

krepis-0.59.21.tar.gz (528.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

krepis-0.59.21-py3-none-any.whl (339.2 kB view details)

Uploaded Python 3

File details

Details for the file krepis-0.59.21.tar.gz.

File metadata

  • Download URL: krepis-0.59.21.tar.gz
  • Upload date:
  • Size: 528.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for krepis-0.59.21.tar.gz
Algorithm Hash digest
SHA256 cb6210bc2c1f23473bddbd6f6470277462ab26d14ed2a747006519436cb25aac
MD5 2a0ce9a6dca61925ae3f55a76b62bd9a
BLAKE2b-256 c59da6a206e194766459a90c9fa34c2217f6621b3353f9b9759443276c2571c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for krepis-0.59.21.tar.gz:

Publisher: publish.yml on nousergon/krepis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file krepis-0.59.21-py3-none-any.whl.

File metadata

  • Download URL: krepis-0.59.21-py3-none-any.whl
  • Upload date:
  • Size: 339.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for krepis-0.59.21-py3-none-any.whl
Algorithm Hash digest
SHA256 b9fd38487c2ccb295ce73ce83c9b4a93933e8eb3a7aca421d0e877852adafedb
MD5 34539b24f79b730ae44b17556ae58e1e
BLAKE2b-256 d489a30f434274e6f08568bef09d9be2272c54a3585798fa2060a91ad7046d4b

See more details on using hashes here.

Provenance

The following attestation bundles were made for krepis-0.59.21-py3-none-any.whl:

Publisher: publish.yml on nousergon/krepis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.59.26

2 files

0.59.25

2 files

0.59.24

2 files

0.59.23

2 files

0.59.22

2 files

This release

0.59.21 This release

2 files

0.59.20

2 files

0.59.19

2 files

0.59.18

2 files

0.59.17

2 files

0.59.16

2 files

0.59.15

2 files

0.59.14

2 files

0.59.13

2 files

0.59.12

2 files

0.59.11

2 files

0.59.10

2 files

0.59.9

2 files

0.59.8

2 files

0.59.7

2 files

0.59.6

2 files

0.59.5

2 files

0.59.4

2 files

0.59.3

2 files

0.59.2

2 files

0.59.1

2 files

0.59.0

2 files

0.58.0

2 files

0.57.0

2 files

0.56.0

2 files

0.55.0

2 files

0.54.0

2 files

0.53.0

2 files

0.52.0

2 files

0.51.0

2 files

0.50.0

2 files

0.49.0

2 files

0.48.0

2 files

0.47.0

2 files

0.46.0

2 files

0.45.0

2 files

0.44.0

2 files

0.43.0

2 files

0.42.0

2 files

0.41.1

2 files

0.41.0

2 files

0.40.0

2 files

0.39.0

2 files

0.38.0

2 files

0.37.0

2 files

0.36.0

2 files

0.35.0

2 files

0.34.0

2 files

0.33.0

2 files

0.32.0

2 files

0.31.2

2 files

0.31.1

2 files

0.31.0

2 files

0.30.0

2 files

0.29.0

2 files

0.28.0

2 files

0.27.0

2 files

0.26.2

2 files

0.26.1

2 files

0.26.0

2 files

0.25.5

2 files

0.25.4

2 files

0.25.3

2 files

0.25.2

2 files

0.25.0

2 files

0.24.2

2 files

0.24.1

2 files

0.24.0

2 files

0.23.0

2 files

0.22.0

2 files

0.21.1

2 files

0.21.0

2 files

0.20.0

2 files

0.19.2

2 files

0.19.1

2 files

0.19.0

2 files

0.18.16

2 files

0.18.15

2 files

0.18.14

2 files

0.18.13

2 files

0.18.12

2 files

0.18.11

2 files

0.18.10

2 files

0.18.9

2 files

0.18.8

2 files

0.18.7

2 files

0.18.6

2 files

0.18.5

2 files

0.18.4

2 files

0.18.3

2 files

0.18.2

2 files

0.18.1

2 files

0.18.0

2 files

0.17.0

2 files

0.16.3

2 files

0.16.2

2 files

0.16.1

2 files

0.16.0

2 files

0.15.0

2 files

0.14.0

2 files

0.13.0

2 files

0.12.2

2 files

0.12.1

2 files

0.12.0

2 files

0.11.2

2 files

0.11.1

2 files

0.11.0

2 files

0.10.3

2 files

0.10.2

2 files

0.10.1

2 files

0.10.0

2 files

0.9.1

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page