Skip to main content
PyPepper

PyPepper

Composable building blocks for Python microservices.
Build faster. Live more.

PyPI Docs CI Coverage Python License

In memory of my father, who passed away in 2023 from COVID-19.


PyPepper is a small toolkit—not a full framework—for wiring services: HTTP / SSE, FSM, a workflow scheduler, signed events, thin DB helpers, and optional OpenTelemetry tracing. Supports Python 3.103.14.

pip install pypepper

Documentation

Getting Started · Tutorial · Architecture · Guides · API Reference

Source under docs/. Local preview: make docs-serve.

Domains

Package Role
Common pypepper.common Config, logging, context, cache, crypto, utilities
Event pypepper.event Signed domain events with JSON marshal
FSM pypepper.fsm Event-triggered state machine with rollback
Scheduler pypepper.scheduler Job → Channel → Worker → Workflow + pluggable job stores
Network pypepper.network FastAPI HTTP server and SSE subsystem
Helper pypepper.helper MySQL / PostgreSQL / MongoDB connectors

Highlights

Network FastAPI HTTP + SSE; header API-key auth and rate limits (auth-off needs PYPEPPER_SSE_ALLOW_AUTH_OFF) → guide
FSM & events Rollback on handler failure; signed JSON payloads → guide
Scheduler Rounds, soft timeouts, and retries; durable job-store fail-fast → guide
Tracing Opt-in OpenTelemetry (console / local Jaeger) → guide
Quality PEP 561 py.typed · ruff + mypy CI · line + branch coverage ≥ 90%
Data Thin DB helpers → guide

Quick start

Requires Python 3.103.14. uv ≥ 0.10.7 is recommended for local installs.

make build-prepare

SSE example (set a key; default config enables authentication):

export PYPEPPER_SSE_API_KEY=your-local-key
python example/sse/app.py

HTTP example:

python example/server/app.py --config ./conf/app.config.yaml

Scheduler end-to-end example: python example/scheduler/app.py.

Full walkthrough: Getting Started · First service tutorial.

Developer commands
make lint     # ruff + mypy
make check    # lint + mutable class-attr guard
make test     # check + pytest (coverage ≥ 90%, branch on)
make docs     # mkdocs build --strict
make audit    # pip-audit on production requirements
make docker   # local image
make clean

Contributing

See CONTRIBUTING.md for setup, Conventional Commits, and PR expectations. Release tags: docs/guides/release.md.

Security

See SECURITY.md for supported versions and private reporting. Leaving SSE authentication off without PYPEPPER_SSE_ALLOW_AUTH_OFF is rejected by the library (HTTP 503).

Download files

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

Source Distribution

pypepper-0.6.5.tar.gz (276.7 kB view details)

Uploaded Source

Built Distribution

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

pypepper-0.6.5-py3-none-any.whl (68.8 kB view details)

Uploaded Python 3

File details

Details for the file pypepper-0.6.5.tar.gz.

File metadata

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

File hashes

Hashes for pypepper-0.6.5.tar.gz
Algorithm Hash digest
SHA256 e5f91da26eae65624a20dc6d3602d6c9df2f401c65d8c969e049f3ea43aed0a5
MD5 c5383520b700dd1f1f120a02bd5979e2
BLAKE2b-256 b680049bb9896973d370fcbfcff1baec62848a1cfe28cb8b835439f6c30b8189

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypepper-0.6.5.tar.gz:

Publisher: publish.yml on jovijovi/pypepper

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

File details

Details for the file pypepper-0.6.5-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pypepper-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 19bd76f9cae46c24aabe14b039ad717126b208c7f1280c7d0c19348058e0a172
MD5 e3fbb10c487d858defaf3c5e4be23fc4
BLAKE2b-256 73d799edd308503eab7703d7a312f5be1291e4f0243398f4f761fb8e49e8d644

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypepper-0.6.5-py3-none-any.whl:

Publisher: publish.yml on jovijovi/pypepper

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

Release history Release notifications | RSS feed

This release

0.6.5 This release

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.1

2 files

0.4.0

2 files

0.3.8

2 files

0.3.7

2 files

0.3.6

2 files

0.3.5

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

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