This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A wrapper around psycopg2 to make common things easier.

Project Description

Here are a few of the features:

Query results can be accessed as a dictionary of columns.

Queries return indexable iterators with dictionary syntax, so you can do things like “for row in query”, and “query(cmd)[0]”. Note that indexes can only be larger than or equal to the last index.

Query arguments are passed as discrete arguments, not as a tuple. Passing as a tuple always makes me want to do a “%” and if I accidentally do that it can open up a SQL injection.

There’s an “insert” helper that takes a table name and keyword arguments. Similarly there’s a “dictinsert” helper that takes a dictionary of row:values.

Release History

Release History

This version
History Node

1.05

History Node

1.04

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