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

Original title: Pip install Postgres – no Docker/Brew/apt

> Hacker News story 49028169 · language: en · submitted 2026-07-23
> Web version: https://zeli.app/story/49028169
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 29 · by [leontrolski](<https://news.ycombinator.com/user?id=leontrolski>) · 💬 8
[original](<https://github.com/leontrolski/postgresql-testing>) · [HN discussion](<https://news.ycombinator.com/item?id=49028169>)

## Summary

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.

## Key quote

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

## HN discussion (8 comments)

### [leontrolski](<https://news.ycombinator.com/item?id=49028195>)

> Some discussion on (ab?)using pypi to distribute binaries - https://discuss.python.org/t/use-of-pypi-as-a-generic-storag...

### [PunchyHamster](<https://news.ycombinator.com/item?id=49058770>)

> why would you use the worst package manager instead of the better ones?

### [hmokiguess](<https://news.ycombinator.com/item?id=49058627>)

> Ewww

---

## Cite

- Page: https://zeli.app/story/49028169
- Date: 2026-07-23
- Source: github.com (https://github.com/leontrolski/postgresql-testing)
- Hacker News: https://news.ycombinator.com/item?id=49028169

## Other languages

- zh: https://zeli.app/zh/story/49028169 · markdown: https://zeli.app/zh/story/49028169.md
- ja: https://zeli.app/ja/story/49028169 · markdown: https://zeli.app/ja/story/49028169.md
- ko: https://zeli.app/ko/story/49028169 · markdown: https://zeli.app/ko/story/49028169.md
- de: https://zeli.app/de/story/49028169 · markdown: https://zeli.app/de/story/49028169.md
- es: https://zeli.app/es/story/49028169 · markdown: https://zeli.app/es/story/49028169.md
