pyPgSQL is a package of two modules that provide a Python DB-API 2.0 compliant interface to PostgreSQL databases. The first module, libpq, exports the PostgreSQL C API to Python. This module is written in C and can be compiled into Python or can be dynamically loaded on demand. The second module, PgSQL, provides the DB-API 2.0 compliant interface and support for various PostgreSQL data types, such as INT8, NUMERIC, MONEY, BOOL, ARRAYS, etc. This module is written in Python.

Project page

You can use the Sourceforge project page to

New releases are announced on Freshmeat.

Alternative Packaging

Mailing list

There is a mailing list for the users of pyPgSQL to discuss any likes, dislikes, problems and suggestions they have with pyPgSQL. You can subscribe/unsubscribe or browse the mailing list archives of the pyPgSQL users mailing list.


A htmlified version of the README.

Frequently Asked Questions

Here's the FAQ in HTML and PDF.

Products and projects using pyPgSQL

SourceForge Logo