Skip to main content

PostgreSQL client library wrapper providing environment variable based configuration

Project description

The sprockets.clients.postgresql package wraps the queries package providing environment variable based configuration for connecting to PostgreSQL.

Version Downloads Status Coverage License


sprockets.clients.postgresql is available on the Python Package Index and can be installed via pip or easy_install:

pip install sprockets.clients.postgresql



The following example sets the environment variable for connecting to PostgreSQL on localhost to the production database and issues a query.

import os

from sprockets.clients import postgresql

os.environ['PGSQL_PROD'] = 'postgresql://postgres@localhost:5432/production'

session = postgresql.Session('prod')
result = session.query('SELECT 1')

Download files

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

Files for sprockets.clients.postgresql, version 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size sprockets.clients.postgresql-2.0.0.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page