Skip to main content

QuickPiggy - launch an impromptu PostgreSQL server, hassle free.

Project description

QuickPiggy

Launch an impromptu PostgreSQL server, hassle free.

Prerequisites:

  • postgresql-server (tested with v9.0 - v13.2), providing postgres, initdb and createdb on your $PATH
  • postgresql libraries and clients (tested with v9.0 - v13.2), providing psql on your $PATH

This is mainly a library module, but you can take it for a for a demo spin by running quickpiggy.py as a program (python quickpiggy.py).

When used as a library, an ephemeral PostgresSQL instance can be obtained quite easily:

pig = quickpiggy.Piggy(volatile=True, create_db='somedb')
conn = psycopg2.connect(pig.dsnstring())

Many use cases can be accommodated for by supplying appropriate parameters to the constructor of Piggy.

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.

Source Distribution

quickpiggy-0.3.0.tar.gz (6.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page