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.8.tar.gz (383.8 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.9.8-cp311-cp311-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

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

Uploaded CPython 3.7mWindows x86-64

psycopg2-2.9.8-cp37-cp37m-win32.whl (1.0 MB view details)

Uploaded CPython 3.7mWindows x86

File details

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

File metadata

  • Download URL: psycopg2-2.9.8.tar.gz
  • Upload date:
  • Size: 383.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for psycopg2-2.9.8.tar.gz
Algorithm Hash digest
SHA256 3da6488042a53b50933244085f3f91803f1b7271f970f3e5536efa69314f6a49
MD5 46eab4701895cd0fa23a65b26cce81e8
BLAKE2b-256 9e783b15ee8bbbf36f8bace9b0e6fe8a7481372650c76bcf1a7de1ed723cce96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.8-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/4.0.2 CPython/3.10.12

File hashes

Hashes for psycopg2-2.9.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f7e62095d749359b7854143843f27edd7dccfcd3e1d833b880562aa5702d92b0
MD5 c978dee8407c83e15a97f7608776c20d
BLAKE2b-256 3afe1c2b6d7a5388e1fcfb407e718f2c4ecc7e4c7dd6693d54ebdf6bc2f3a5a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.8-cp311-cp311-win32.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for psycopg2-2.9.8-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 65f81e72136d8b9ac8abf5206938d60f50da424149a43b6073f1546063c0565e
MD5 ecdcf875cd0dfd78a5642ddb4ff13aa3
BLAKE2b-256 5b61b2df6401ff6ee90b6e5ba4a943de8e6401b6d7e33828f1df32f80b2b001e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.8-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/4.0.2 CPython/3.10.12

File hashes

Hashes for psycopg2-2.9.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f9ecbf504c4eaff90139d5c9b95d47275f2b2651e14eba56392b4041fbf4c2b3
MD5 3a809203d6dbc4eb597158c2a30a91b9
BLAKE2b-256 1b8fec859d2dcfe382f9164138ad0e55ba7555fd4ade31b970a81769d8fc6268

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.8-cp310-cp310-win32.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for psycopg2-2.9.8-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2f8594f92bbb5d8b59ffec04e2686c416401e2d4297de1193f8e75235937e71d
MD5 e2ceb78ba15bd9f6674c096d85496202
BLAKE2b-256 af2c7eb827571547e0612fc5290c23fb39781af3f110b7632e3a8f02a2bdbf4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.8-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/4.0.2 CPython/3.10.12

File hashes

Hashes for psycopg2-2.9.8-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d39bb3959788b2c9d7bf5ff762e29f436172b241cd7b47529baac77746fd7918
MD5 63695cac7a183d77a9ed0aa95ac9649a
BLAKE2b-256 945b534aadd308b99bb9489fb421f3f9097512df7513b34d7ee395673b669d93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.8-cp39-cp39-win32.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for psycopg2-2.9.8-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d4ad050ea50a16731d219c3a85e8f2debf49415a070f0b8331ccc96c81700d9b
MD5 9975cdf54e2e89e82cbc2d9d1f2670ce
BLAKE2b-256 1647407ea859b3f32035a774131ce258a63aeb055a2e01b670419bd6f6765d92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.8-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/4.0.2 CPython/3.10.12

File hashes

Hashes for psycopg2-2.9.8-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dcde3cad4920e29e74bf4e76c072649764914facb2069e6b7fa1ddbebcd49e9f
MD5 23fe65ce7027aa1eb89b051f6058b54d
BLAKE2b-256 1801e8918c0b51201626f161cf8060787f2a3972cb5127d6c69f8e90f365b525

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.8-cp38-cp38-win32.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for psycopg2-2.9.8-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 287a64ef168ef7fb9f382964705ff664b342bfff47e7242bf0a04ef203269dd5
MD5 d0664650ff5f0d2cd88721f4a41c01c9
BLAKE2b-256 1227223a6f8de81054f11898229905f5705616fa6c02fbd28870d8664dc0a1aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.8-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/4.0.2 CPython/3.10.12

File hashes

Hashes for psycopg2-2.9.8-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 67c2f32f3aba79afb15799575e77ee2db6b46b8acf943c21d34d02d4e1041d50
MD5 3550665a44d75ed5f3c90c498c7cccf8
BLAKE2b-256 cf52f6ab8ea4ee159b850ab4f527709de79bcd6b76cfcd9e5532caad5dd41100

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.8-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for psycopg2-2.9.8-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 81b21424023a290a40884c7f8b0093ba6465b59bd785c18f757e76945f65594c
MD5 ec8e06e79af4827058dbfe188aedc9b7
BLAKE2b-256 fd15560a18fe34def14ecde3a1e47afe015a1a96edda6951931e3268b26742ca

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