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.5.tar.gz (380.9 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.5-cp38-cp38-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.8Windows x86-64

psycopg2-2.8.5-cp38-cp38-win32.whl (986.6 kB view details)

Uploaded CPython 3.8Windows x86

psycopg2-2.8.5-cp37-cp37m-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.7mWindows x86-64

psycopg2-2.8.5-cp37-cp37m-win32.whl (984.1 kB view details)

Uploaded CPython 3.7mWindows x86

psycopg2-2.8.5-cp36-cp36m-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.6mWindows x86-64

psycopg2-2.8.5-cp36-cp36m-win32.whl (984.1 kB view details)

Uploaded CPython 3.6mWindows x86

psycopg2-2.8.5-cp35-cp35m-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.5mWindows x86-64

psycopg2-2.8.5-cp35-cp35m-win32.whl (984.1 kB view details)

Uploaded CPython 3.5mWindows x86

psycopg2-2.8.5-cp34-cp34m-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.4mWindows x86-64

psycopg2-2.8.5-cp34-cp34m-win32.whl (1.0 MB view details)

Uploaded CPython 3.4mWindows x86

psycopg2-2.8.5-cp27-cp27m-win_amd64.whl (1.1 MB view details)

Uploaded CPython 2.7mWindows x86-64

psycopg2-2.8.5-cp27-cp27m-win32.whl (994.4 kB view details)

Uploaded CPython 2.7mWindows x86

File details

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

File metadata

  • Download URL: psycopg2-2.8.5.tar.gz
  • Upload date:
  • Size: 380.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8.5.tar.gz
Algorithm Hash digest
SHA256 f7d46240f7a1ae1dd95aab38bd74f7428d46531f69219954266d669da60c0818
MD5 c232ff3e3bfee35e1a0e15bc089cb294
BLAKE2b-256 a88f1c5690eebf148d1d1554fc00ccf9101e134636553dbb75bdfef4f85d7647

See more details on using hashes here.

File details

Details for the file psycopg2-2.8.5-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: psycopg2-2.8.5-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 132efc7ee46a763e68a815f4d26223d9c679953cd190f1f218187cb60decf535
MD5 eece665f5bb9844df6636c9657a75b80
BLAKE2b-256 eeb5119d1ec416f1904129807478e6a20d9f1b45896bd06d1e436c04b5809ab6

See more details on using hashes here.

File details

Details for the file psycopg2-2.8.5-cp38-cp38-win32.whl.

File metadata

  • Download URL: psycopg2-2.8.5-cp38-cp38-win32.whl
  • Upload date:
  • Size: 986.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8.5-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2327bf42c1744a434ed8ed0bbaa9168cac7ee5a22a9001f6fc85c33b8a4a14b7
MD5 b287f864dd5d7d4df96aa65673f01c80
BLAKE2b-256 0cb659c9f4f8e470247776a97cc54fa7c6f34a63b6c32ed13721499b7e79cbcd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.8.5-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8.5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 2c0afb40cfb4d53487ee2ebe128649028c9a78d2476d14a67781e45dc287f080
MD5 1416ea787cc71ff113238060a2eb7855
BLAKE2b-256 838dbbb2ca983f3939066e8d104fe7a7b0fce1fd3d0f706ddb6d8a86bb33f5da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.8.5-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 984.1 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8.5-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 ac5b23d0199c012ad91ed1bbb971b7666da651c6371529b1be8cbe2a7bf3c3a9
MD5 952437f0c79034b28e6df66344d93101
BLAKE2b-256 a1f14698a5c036d2cda46981eb74b36bc6afd3c77e7904b2645a70bd849f99d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.8.5-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8.5-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 2df2bf1b87305bd95eb3ac666ee1f00a9c83d10927b8144e8e39644218f4cf81
MD5 0ff59864e8f1275267f016af45da533c
BLAKE2b-256 fe0297368ac2fb122e576bd815508df4af9c5d6e10b2c92de4753fbfebd6575c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.8.5-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 984.1 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8.5-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 27c633f2d5db0fc27b51f1b08f410715b59fa3802987aec91aeb8f562724e95c
MD5 df05ea41635c596e5bc7d092ca6bdf5b
BLAKE2b-256 5ba8b8278b6481687d08dea10bb743614ecfde1ee8c3afa0d03a4212f69559b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.8.5-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8.5-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 6a471d4d2a6f14c97a882e8d3124869bc623f3df6177eefe02994ea41fd45b52
MD5 0b72194c3262f754ac8b51a9a5669a7b
BLAKE2b-256 31544e0fad4eb8261cea2868d1e939713f41229862b2466c8179253127ba809a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.8.5-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 984.1 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8.5-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 d3b29d717d39d3580efd760a9a46a7418408acebbb784717c90d708c9ed5f055
MD5 5f1d6aa1ffd4b00d00cc338a7a8da912
BLAKE2b-256 c26752d099cf3be9058c3f3221ef2263fff74aa25acf594a19f32186db3baaf2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.8.5-cp34-cp34m-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.4m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8.5-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 6b306dae53ec7f4f67a10942cf8ac85de930ea90e9903e2df4001f69b7833f7e
MD5 a5ff2dba2054253bc9f70a46e4ff574e
BLAKE2b-256 2bdf062c84ce7fd1b3329b9b32dceb871d0972395b574e0f99852c3a95fd040c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.8.5-cp34-cp34m-win32.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.4m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8.5-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 440a3ea2c955e89321a138eb7582aa1d22fe286c7d65e26a2c5411af0a88ae72
MD5 b587fe1ff5562925912754e00c7c43bd
BLAKE2b-256 273cbe3f0aec408f29937f9f5575e58f2fd74cbf20204cdf06fe895a8f7a35f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.8.5-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8.5-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 acf56d564e443e3dea152efe972b1434058244298a94348fc518d6dd6a9fb0bb
MD5 11a4d8130244a605ea313eb11b3060ad
BLAKE2b-256 e254f9f0fcdade949bd08d56f86a4df4aa89fd09c3c865545ceaf9534eca0cfd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.8.5-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 994.4 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

File hashes

Hashes for psycopg2-2.8.5-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 a0984ff49e176062fcdc8a5a2a670c9bb1704a2f69548bce8f8a7bad41c661bf
MD5 98b409355a8f7b46298e2e28a65e4897
BLAKE2b-256 15f27f862048892db0c551b77f229cd9b8f752ac8b1442c646a3ba57bb2dff53

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