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.

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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page