QuickPiggy - launch a PostgreSQL server, without the hassle.
This is public domain software.
- postgresql-server (tested with v9.0), providing ‘postgres’, ‘initdb’, ‘createdb’
- postgresql libraries and clients (tested with v9.0), providing ‘psql’
Test your prerequisites by running ‘quickpiggy.py’ as a program.
A makeshift PostgresSQL instance can be obtained quite easily:
pig = quickpiggy.Piggy(volatile=True, create_db=’somedb’)
conn = psycopg2.connect(pig.dsnstring())
Most other use cases can be accommodated for by passing more parameters.
This version works with Python 2.7 and 3.1+.