Skip to content
THE BUILDING BLOCKS / LIBRARIES

Small pieces.
Strong foundations.

Twelve Python libraries for the infrastructure behind your service. Pick what you need. Keep the conventions that make it all fit together.

Strict typingOpt-in extrasApache 2.0
Find your building blocks
COMPOSE YOUR STACK

The package directory

12 Bedrock libraries + a few useful neighbours
01

Service runtime & transports

4

Run a service; call other services.

clientwright

One resilience and observability core wired under the public API of httpx, aiohttp, requests and urllib3 — you get back the genuine native client.

Python 3.12+zero-dependency core
uv add clientwright

grpc-client-kit

The caller side: a channel pool keyed by full channel identity, load balancing, health monitoring, and retries under a deadline that spans the whole call.

Python 3.12+grpcio only
uv add grpc-client-kit
02

Data & messaging foundations

3

Postgres, Redis, Kafka — the clients every service needs.

03

Reliability patterns

3

Exactly-once effects and bounded latency.

omni-box

Transactional Outbox and Inbox: the event goes in the same transaction as the business row, out to Kafka from a background publisher, in with deduplication.

Python 3.12+
uv add omni-box

deadline-budget

One request deadline budget with per-call caps and a safety margin — the budget that clientwright, grpc-client-kit and servicewright propagate across hops.

Python 3.10+zero dependencies
uv add deadline-budget
04

Database operations & testing

2

Partitions planned, migrations tested.

pg-partsmith

PostgreSQL partition lifecycle management with a plan you can read before it runs: RANGE, LIST and HASH nested to any depth — as a library, a CLI and a container image.

Python 3.11+stable
uv add pg-partsmith
05

Start your own

1

Every library above began here.

PROJECT TEMPLATE

python-library-template

The Copier template: uv, hatchling, ruff, mypy, pytest with unit and integration lanes, Zensical docs, Release Please with PyPI trusted publishing, and the org repo-settings script.

Copier template

Version badges link to PyPI and refresh when the page loads.