Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

QuickPiggy - launch a PostgreSQL server, without the hassle.

Project description

by Wicher Minnaard <wicher@gavagai.eu> <http://smorgasbord.gavagai.nl>

Rationale: http://smorgasbord.gavagai.nl/2011/02/postgresql-quickie-server/

This is public domain software.

Prerequisites:

  • 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+.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for quickpiggy, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size quickpiggy-0.2.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page