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

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

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

Installation

Building Psycopg requires a few prerequisites (a C compiler, some development packages): please check the install and the faq documents in the doc dir or online for the details.

If prerequisites are met, you can install psycopg like any other Python package, using pip to download it from PyPI:

$ pip install psycopg2

or using setup.py if you have downloaded the source package locally:

$ python setup.py build
$ sudo python setup.py install

You can also obtain a stand-alone package, not requiring a compiler or external libraries, by installing the psycopg2-binary package from PyPI:

$ pip install psycopg2-binary

The binary package is a practical choice for development and testing but in production it is advised to use the package built from sources.

Linux/OSX:

Linux and OSX build status

Windows:

Windows build status

Project details


Download files

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

Source Distribution

psycopg2-2.8.tar.gz (367.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

psycopg2-2.8-cp37-cp37m-win_amd64.whl (912.6 kB view details)

Uploaded CPython 3.7mWindows x86-64

psycopg2-2.8-cp37-cp37m-win32.whl (769.1 kB view details)

Uploaded CPython 3.7mWindows x86

psycopg2-2.8-cp36-cp36m-win_amd64.whl (912.6 kB view details)

Uploaded CPython 3.6mWindows x86-64

psycopg2-2.8-cp36-cp36m-win32.whl (769.1 kB view details)

Uploaded CPython 3.6mWindows x86

psycopg2-2.8-cp35-cp35m-win_amd64.whl (912.6 kB view details)

Uploaded CPython 3.5mWindows x86-64

psycopg2-2.8-cp35-cp35m-win32.whl (769.1 kB view details)

Uploaded CPython 3.5mWindows x86

psycopg2-2.8-cp34-cp34m-win_amd64.whl (902.4 kB view details)

Uploaded CPython 3.4mWindows x86-64

psycopg2-2.8-cp34-cp34m-win32.whl (779.9 kB view details)

Uploaded CPython 3.4mWindows x86

psycopg2-2.8-cp27-cp27m-win_amd64.whl (905.0 kB view details)

Uploaded CPython 2.7mWindows x86-64

psycopg2-2.8-cp27-cp27m-win32.whl (775.6 kB view details)

Uploaded CPython 2.7mWindows x86

File details

Details for the file psycopg2-2.8.tar.gz.

File metadata

  • Download URL: psycopg2-2.8.tar.gz
  • Upload date:
  • Size: 367.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8.tar.gz
Algorithm Hash digest
SHA256 49c5838d90e83217909db3789d30a105385b5e696ec5168cda645546c542f35a
MD5 e33ea858014a5410d347f476ea13d7e7
BLAKE2b-256 c7ca75236b17f1b951950ffc55d657c5aa408d3d0327a1b6c4c0f7cb16ef7e7b

See more details on using hashes here.

File details

Details for the file psycopg2-2.8-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: psycopg2-2.8-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 912.6 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 bc7ec9ab1f33edd5db40edfb407aabdc92e573c4fcacd9093a9a6f3dd93c7af2
MD5 1627758295d6d04f10c8c9840134ca7e
BLAKE2b-256 58aa57a5c0dbc12fdd6c8b1059c2bf504ac1d7db7c517c41352e14c32149be10

See more details on using hashes here.

File details

Details for the file psycopg2-2.8-cp37-cp37m-win32.whl.

File metadata

  • Download URL: psycopg2-2.8-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 769.1 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 e9836455931ac3d91b71312fa3bb2b9db8c42720a53b7de7db082406e4828585
MD5 3a8910f6b8265c91733ba6c9114cf2df
BLAKE2b-256 0761d67e55269fba553efd6af89c7c2eea7fd97a472aa1708751108e3419715d

See more details on using hashes here.

File details

Details for the file psycopg2-2.8-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: psycopg2-2.8-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 912.6 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 6d849117337afd1aa0a74ab9a6c9d2160228d25d5babfa4d9a98bf4a4dad8062
MD5 fd4b491f1cc24af09d1a0f7702934cb7
BLAKE2b-256 d4116c1ed50a1ea955d7c42a673b7f658459a76f4e58b96c6984ab4b2a5e5111

See more details on using hashes here.

File details

Details for the file psycopg2-2.8-cp36-cp36m-win32.whl.

File metadata

  • Download URL: psycopg2-2.8-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 769.1 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 453c5bc0563c9b9601ef9243c095da9e327f24da6917b7c3ede8e0cd9dd9477d
MD5 6be0e0201648c4509678f83550dcfebd
BLAKE2b-256 e81a05b47086fefbfc9b26358eec40468177082e7dcd793aed7aa8b2df7707b6

See more details on using hashes here.

File details

Details for the file psycopg2-2.8-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: psycopg2-2.8-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 912.6 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 8980dbabfb2ed0866b6bd5687d1407c3bccaac1f2f496f1206472108be69b92d
MD5 c99b8de1ced4011b1750a7950427af7f
BLAKE2b-256 f9a3ea368ba5ff69fddf6a056fd2bdc1fb604c7787c865d888194f178a8040ea

See more details on using hashes here.

File details

Details for the file psycopg2-2.8-cp35-cp35m-win32.whl.

File metadata

  • Download URL: psycopg2-2.8-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 769.1 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 d303d9f88ec839a51b430bbec0f4a8314d0d2a53f760e67e95e25e39f6d6fb5f
MD5 0dc38ec83c0dd54b5bdaaa51494b45e9
BLAKE2b-256 ef04255084b61a96e312101770378a68c63f664b68f65e8285d02a40f653d318

See more details on using hashes here.

File details

Details for the file psycopg2-2.8-cp34-cp34m-win_amd64.whl.

File metadata

  • Download URL: psycopg2-2.8-cp34-cp34m-win_amd64.whl
  • Upload date:
  • Size: 902.4 kB
  • Tags: CPython 3.4m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 2433931723bf6be4bd342e003ffa9a1cef2cb4de7735d5b063fd554fd64a744c
MD5 6aa8d565699ab67e76987b5c98f1a56b
BLAKE2b-256 9769e639cb67fe97f88c1dd7cb04b2baf1c97d0ad3df27eb8b3427168dcb1235

See more details on using hashes here.

File details

Details for the file psycopg2-2.8-cp34-cp34m-win32.whl.

File metadata

  • Download URL: psycopg2-2.8-cp34-cp34m-win32.whl
  • Upload date:
  • Size: 779.9 kB
  • Tags: CPython 3.4m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 3ad3cf4732ff7d87dc12031836e5097fc42be767193771da90b8b5038cdca412
MD5 7f1414bf191eddb79e23f21994b8cb0d
BLAKE2b-256 4cadc6acf5a2594397b9817034dd35d01a7aebb3cd3863c73a08c862b2c4d08f

See more details on using hashes here.

File details

Details for the file psycopg2-2.8-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: psycopg2-2.8-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 905.0 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 a286480430af972be9c30333c48883890dc8d87eab0d591e24975dcf99abff6c
MD5 5cf35d864ee4ee0c4032bffda0d2c35f
BLAKE2b-256 ad4f01dadaf523a044e80e51b3876e5a54e2a8dec293d1d80dd12279a11cc726

See more details on using hashes here.

File details

Details for the file psycopg2-2.8-cp27-cp27m-win32.whl.

File metadata

  • Download URL: psycopg2-2.8-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 775.6 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 2a0497c8ade1a5a0dc3d62b7f1a4fbcbccfa15d9ef69cce064119cd723566392
MD5 1e729d76849b4af495b3346a42dd78a2
BLAKE2b-256 494c720abc4b5eb1ea049bc296fcad63de3ca0e612be54e82ea7a6c0850f3181

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page