Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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.


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')
Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
sprockets.clients.postgresql-2.0.0.tar.gz (4.8 kB) Copy SHA256 Checksum SHA256 Source Oct 7, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting