Run Postgres Tests with Python Without Docker, Brew, or Apt

Pip install Postgres – no Docker/Brew/apt

Run Postgres Tests with Python Without Docker, Brew, or Apt

I built a lightweight Python library to simplify PostgreSQL testing without relying on Docker, Brew, or system package managers. By bundling binaries directly, you can spin up fresh databases for Pytest instantly, create per-thread instances, or restore from archives with minimal overhead. The tool also includes a local query plan analyzer and supports rapid setup via uvx for throwaway environments.

Simple Postgres helpers for testing with Python - no docker, brew, apt, etc.

More from this day

2026-07-26