Skip to content

Proving Grounds — Drop-In Python Backends on Live PostgreSQL#

Note

Anyone can pass their own tutorial. The Proving Grounds hold every featured backend to Rung 7: full schema assimilation, upstream's own runtime executing unmodified against live PostgreSQL, and a measurable 1-RTT wire win verified by pool.trace().

🦀 Ferris (smug): Five real Python frameworks. Zero mocks. Every round trip counted on the wire.

1 · 1-RTT Pipelined State & Auth#

Stateful AI agents and authentication backends suffer from multi-RTT chatter: saving blobs then checkpoints, or batching memory writes and reads one statement at a time. pgdorm fuses them into a single PostgreSQL v3 Sync:

AI Agent State · Python · MIT

LangGraph Checkpointer#

Full Assimilation · Rung 7 ✅1-RTT aput · Zero N+1

Real compiled LangGraph StateGraph workflows with composite PKs, 1-RTT fused UNNEST blob + checkpoint aput, and zero-N+1 = ANY($1) history loading.

AI Long-Term Memory · Python · MIT

LangGraph Store#

Full Assimilation · Rung 7 ✅1-RTT Fused abatch

Drop-in PgdormStore(BaseStore) fusing PutOp (UNNEST ... ON CONFLICT DO UPDATE), GetOp, SearchOp, and ListNamespacesOp into 1 wire RTT inside a live StateGraph.

FastAPI Auth · Python · MIT

FastAPI-Users#

Full Assimilation · Rung 7 ✅8/8 BaseUserDatabase · 1-RTT OAuth2

All 8/8 BaseUserDatabase methods, JWT auth endpoints, and 1-RTT pipelined OAuth2 running directly on slot-backed pgdorm tables — zero SQLAlchemy, zero greenlet.

2 · Lock-Free Queues & Event Stores#

Schedulers and event stores demand lock-free concurrency (FOR UPDATE SKIP LOCKED), atomic multi-statement commits, and push notifications (LISTEN/NOTIFY) without dragging in SQLAlchemy + asyncpg + greenlet:

Async Scheduler · Python · MIT

APScheduler 4#

Full Assimilation · Rung 7 ✅1-RTT release_job · SKIP LOCKED

Live AsyncScheduler on PgdormDataStore + PgdormEventBroker: TypeTable enum assimilation, FOR UPDATE SKIP LOCKED leases, native Pool.listen/notify, and 1-RTT tx.pipeline(commit=True) release_job.

Event Sourcing · Python · BSD-3-Clause

Python eventsourcing#

Full Assimilation · Rung 7 ✅1-RTT UNNEST Append · 1-RTT Keyset

Real eventsourcing.application.Application aggregate lifecycle on PgdormApplicationRecorder: 1-RTT UNNEST ... RETURNING atomic append, UniqueViolationError optimistic concurrency, and 1-RTT keyset notification scans.

3 · Zero-Downtime Online Assimilation#

Every backend above starts from upstream's unmodified SQL schema and walks the Adoption Ladder in tests/cases/:

  1. Audit (audit_schema) — classify every table, index, and constraint with zero DDL.
  2. Bind (scaffold_from_db(mode="bind")) — generate typed models matching the live schema with 0 residual ops.
  3. Fresh build (Pool.create_all) — recreate an empty database from the models alone.
  4. Assimilate (plan_adoption) — migrate plural tables, SERIAL PKs, and native PG enums onto idiomatic pgdorm Table & TypeTable models with 0 blockers and 0 residual ops.
  5. Run upstream's own code — execute the real framework unmodified against live PostgreSQL and assert tr.rtts == 1 on the hot path.

Continuous Upstream Conformance (giants.lock.toml)

Every upstream repository and commit SHA is pinned in tests/cases/giants.lock.toml and verified via uv run --no-sync python tools/giants.py sync.