Skip to main content

psycopg2 - Python-PostgreSQL Database Adapter

Project description

Psycopg is the most popular PostgreSQL database adapter for the Python programming language. Its main features are the complete implementation of the Python DB API 2.0 specification and the thread safety (several threads can share the same connection). It was designed for heavily multi-threaded applications that create and destroy lots of cursors and make a large number of concurrent “INSERT”s or “UPDATE”s.

Psycopg 2 is mostly implemented in C as a libpq wrapper, resulting in being both efficient and secure. It features client-side and server-side cursors, asynchronous communication and notifications, “COPY TO/COPY FROM” support. Many Python types are supported out-of-the-box and adapted to matching PostgreSQL data types; adaptation can be extended and customized thanks to a flexible objects adaptation system.

Psycopg 2 is both Unicode and Python 3 friendly.


Documentation is included in the ‘doc’ directory and is available online.


If all the dependencies are met (i.e. you have the Python and libpq development packages installed in your system) the standard:

python build
sudo python install

should work no problem. In case you have any problem check the ‘install’ and the ‘faq’ documents in the docs or online.

For any other resource (source code repository, bug tracker, mailing list) please check the project homepage.

Download files

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

Files for psycopg2, version 2.6.1
Filename, size & hash File type Python version Upload date
psycopg2-2.6.1-cp26-none-win32.whl (814.5 kB) View hashes Wheel cp26
psycopg2-2.6.1-cp26-none-win_amd64.whl (1.2 MB) View hashes Wheel cp26
psycopg2-2.6.1-cp27-none-win32.whl (814.3 kB) View hashes Wheel cp27
psycopg2-2.6.1-cp27-none-win_amd64.whl (1.2 MB) View hashes Wheel cp27
psycopg2-2.6.1-cp32-none-win32.whl (815.1 kB) View hashes Wheel cp32
psycopg2-2.6.1-cp32-none-win_amd64.whl (1.2 MB) View hashes Wheel cp32
psycopg2-2.6.1-cp33-none-win32.whl (818.5 kB) View hashes Wheel cp33
psycopg2-2.6.1-cp33-none-win_amd64.whl (1.2 MB) View hashes Wheel cp33
psycopg2-2.6.1-cp34-none-win32.whl (818.5 kB) View hashes Wheel cp34
psycopg2-2.6.1-cp34-none-win_amd64.whl (1.2 MB) View hashes Wheel cp34
psycopg2-2.6.1.tar.gz (371.4 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page