Python API for pg0 - embedded PostgreSQL. Version 0.14.2, updated semi-regularly. Provides a PostgreSQL server that starts and stops with your Python process, ideal for testing and ephemeral databases.
pip install pg0-embeddedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Start an embedded PostgreSQL server, connect with psycopg2 or asyncpg, then stop.
Update to using pg0.start() and pg0.stop() directly. Remove old 'with pg0: ...' patterns.
Call pg0.initialize() once at the beginning of your script, especially on Windows.
Set a persistent data directory using pg0.set_data_directory(path) before calling pg0.start() if you need to preserve data between runs.
Install using 'pip install pg0-embedded'. The import is 'import pg0'.
Add 'pg0.initialize()' before calling 'pg0.start()'.
No dependency data recorded yet.