QuickPiggy - launch a PostgreSQL server, without the hassle.
This is public domain software.
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+.