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, BYTEA, etc. This module is written in Python, and works with PostgreSQL 7.0 or later, and Python 2.0 or later. Use of Python 2.1 or later, and PostgreSQL 7.1 or later is highly recommended. NB: pyPgSQL was previously released under the name 'PgSQL'.