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.9.5.tar.gz (384.3 kB view details)

Uploaded Source

Built Distributions

psycopg2-2.9.5-cp311-cp311-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.11Windows x86-64

psycopg2-2.9.5-cp311-cp311-win32.whl (1.0 MB view details)

Uploaded CPython 3.11Windows x86

psycopg2-2.9.5-cp310-cp310-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.10Windows x86-64

psycopg2-2.9.5-cp310-cp310-win32.whl (1.0 MB view details)

Uploaded CPython 3.10Windows x86

psycopg2-2.9.5-cp39-cp39-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.9Windows x86-64

psycopg2-2.9.5-cp39-cp39-win32.whl (1.0 MB view details)

Uploaded CPython 3.9Windows x86

psycopg2-2.9.5-cp38-cp38-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.8Windows x86-64

psycopg2-2.9.5-cp38-cp38-win32.whl (1.0 MB view details)

Uploaded CPython 3.8Windows x86

psycopg2-2.9.5-cp37-cp37m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.7mWindows x86-64

psycopg2-2.9.5-cp37-cp37m-win32.whl (999.7 kB view details)

Uploaded CPython 3.7mWindows x86

psycopg2-2.9.5-cp36-cp36m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.6mWindows x86-64

psycopg2-2.9.5-cp36-cp36m-win32.whl (999.8 kB view details)

Uploaded CPython 3.6mWindows x86

File details

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

File metadata

  • Download URL: psycopg2-2.9.5.tar.gz
  • Upload date:
  • Size: 384.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for psycopg2-2.9.5.tar.gz
Algorithm Hash digest
SHA256 a5246d2e683a972e2187a8714b5c2cf8156c064629f9a9b1a873c1730d9e245a
MD5 3cec7285f61690633bb070d4bba259c2
BLAKE2b-256 89d6cd8c46417e0f7a16b4b0fc321f4ab676a59250d08fce5b64921897fb07cc

See more details on using hashes here.

File details

Details for the file psycopg2-2.9.5-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: psycopg2-2.9.5-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for psycopg2-2.9.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 920bf418000dd17669d2904472efeab2b20546efd0548139618f8fa305d1d7ad
MD5 4abf11760cef67f3f43f62731ad130f6
BLAKE2b-256 23b2679ba212dd7fc5f726913053756b23344d5520b4fa49c2a93af31d0f4508

See more details on using hashes here.

File details

Details for the file psycopg2-2.9.5-cp311-cp311-win32.whl.

File metadata

  • Download URL: psycopg2-2.9.5-cp311-cp311-win32.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for psycopg2-2.9.5-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 093e3894d2d3c592ab0945d9eba9d139c139664dcf83a1c440b8a7aa9bb21955
MD5 32a5296d44371b5a8443a2467c90b449
BLAKE2b-256 9f1fdf4c9ab12634dc89c71c2184b2524adccd804af2bacc8968a7c831642338

See more details on using hashes here.

File details

Details for the file psycopg2-2.9.5-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: psycopg2-2.9.5-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for psycopg2-2.9.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4cb9936316d88bfab614666eb9e32995e794ed0f8f6b3b718666c22819c1d7ee
MD5 aa364a24603cc8f04ef8233ccddbbb56
BLAKE2b-256 af4f3abf262dc49cb70c2fbb6d38a9a8956a0c79ba2d102e457958bc4f21660f

See more details on using hashes here.

File details

Details for the file psycopg2-2.9.5-cp310-cp310-win32.whl.

File metadata

  • Download URL: psycopg2-2.9.5-cp310-cp310-win32.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for psycopg2-2.9.5-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d3ef67e630b0de0779c42912fe2cbae3805ebaba30cda27fea2a3de650a9414f
MD5 a24c2a82d0a9584a057e72f858033e56
BLAKE2b-256 045100ed720de223485a56c28b404747b96806679e720f4c97a75bdd556a01f4

See more details on using hashes here.

File details

Details for the file psycopg2-2.9.5-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: psycopg2-2.9.5-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for psycopg2-2.9.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 190d51e8c1b25a47484e52a79638a8182451d6f6dff99f26ad9bd81e5359a0fa
MD5 1e63fd08cf7bb2dc0e736c1a74221aca
BLAKE2b-256 10dba34baee6275fcc371ecdb30040042ed2a548f18c29339ea9ca2406a35cba

See more details on using hashes here.

File details

Details for the file psycopg2-2.9.5-cp39-cp39-win32.whl.

File metadata

  • Download URL: psycopg2-2.9.5-cp39-cp39-win32.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for psycopg2-2.9.5-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 322fd5fca0b1113677089d4ebd5222c964b1760e361f151cbb2706c4912112c5
MD5 cf300c6a2d9d30dbbe545e0d63fc13b2
BLAKE2b-256 c8809c4a7f453fbef2acc65a66f79def6b048787f5ff82005682a98252311e68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.5-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for psycopg2-2.9.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1a5c7d7d577e0eabfcf15eb87d1e19314c8c4f0e722a301f98e0e3a65e238b4e
MD5 a748ae0062cf5e5afc0a966c715ad9c7
BLAKE2b-256 7e4898e0d097fc23d772f525f54b3c62becadf839f2f84ee6600e283dde5dfe7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.5-cp38-cp38-win32.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for psycopg2-2.9.5-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f5b6320dbc3cf6cfb9f25308286f9f7ab464e65cfb105b64cc9c52831748ced2
MD5 43f8fbaa8e2ad0fec57fbd0f2db3d2df
BLAKE2b-256 b4f4c45a12b538c1ef9e36681d2ddec7d397961bdd9ba53de01bdce32acdb348

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.5-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for psycopg2-2.9.5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 1e5a38aa85bd660c53947bd28aeaafb6a97d70423606f1ccb044a03a1203fe4a
MD5 1c7b38240a5bcac93b0632fdcf5ceecd
BLAKE2b-256 d1c5ff268400b5fae84d8070e7b7a8c9425c635a24a68eee587f86adcf11bb13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.5-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 999.7 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for psycopg2-2.9.5-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 922cc5f0b98a5f2b1ff481f5551b95cd04580fd6f0c72d9b22e6c0145a4840e0
MD5 8a18fb401f4700605fb1fbc4ba515577
BLAKE2b-256 835cfe9e713ef1d352fbaae0ecdae05a9882ad9466f46100a8aa2962d858e62a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.5-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for psycopg2-2.9.5-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 fc04dd5189b90d825509caa510f20d1d504761e78b8dfb95a0ede180f71d50e5
MD5 f92137f973796435745deff648f8c8b5
BLAKE2b-256 c2e75cf79928c362cd661765a18d7015b2e0b48f01d9a41dad42d7d945c11a93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.5-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 999.8 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for psycopg2-2.9.5-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 b9ac1b0d8ecc49e05e4e182694f418d27f3aedcfca854ebd6c05bb1cffa10d6d
MD5 b57913264e36e66b1969eedde9614b48
BLAKE2b-256 aef4b01b7d33f5456e26b3f41fd13c93aa1c58528e3306d801133ec81dfcd81a

See more details on using hashes here.

Supported by

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