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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

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

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

File details

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

File metadata

  • Download URL: psycopg2-2.9.7.tar.gz
  • Upload date:
  • Size: 383.5 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.7.tar.gz
Algorithm Hash digest
SHA256 f00cc35bd7119f1fed17b85bd1007855194dde2cbd8de01ab8ebb17487440ad8
MD5 0ee77f0893a2863394a0bf48c09d4bf1
BLAKE2b-256 f7fa6e6bb7a7bbe4e02b35aa2fc009fb53221663a5e07e333b72cb5a85e4dbb0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.7-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.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 91e81a8333a0037babfc9fe6d11e997a9d4dac0f38c43074886b0d9dead94fe9
MD5 fcccc131bbfd6f885fd6288b6283e5ae
BLAKE2b-256 7b693afcafc622a52bbe90da947411a063a6f33ecc7243bad7b31fe358db92ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.7-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.7-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 44d93a0109dfdf22fe399b419bcd7fa589d86895d3931b01fb321d74dadc68f1
MD5 388ff6b1f727551ba31dd434b08ad9b8
BLAKE2b-256 29cd42c43f7089af898e975d5a12fc567812825dcc1eb2b6d3646dca727e7e94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.7-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.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b22ed9c66da2589a664e0f1ca2465c29b75aaab36fa209d4fb916025fb9119e5
MD5 5b927b31f4ccd6218f7133597d1b37a8
BLAKE2b-256 3802f2a35fcc2ab1adce4523e416926c173d00832abeada8f5c4740c57c45e67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.7-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.7-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1a6a2d609bce44f78af4556bea0c62a5e7f05c23e5ea9c599e07678995609084
MD5 30e4d0912936b4b736fe7be98425e8ca
BLAKE2b-256 fd3e0d5663a2ae5e4ac2e9351edd3198798efbad0ea556f1089864c0b6cc81e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.7-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.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b6bd7d9d3a7a63faae6edf365f0ed0e9b0a1aaf1da3ca146e6b043fb3eb5d723
MD5 e23c6aa53797971a3573ce680fa50cc3
BLAKE2b-256 e40db807180308d543de909fe87e5095e86c5bb58a04cdfcde6267f97da60aff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.7-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.7-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c7949770cafbd2f12cecc97dea410c514368908a103acf519f2a346134caa4d5
MD5 12148ead51a0006f50a758fdc63c06ec
BLAKE2b-256 f2073224321b29c301eb9726b68033217e23256c28198b09dd80db03f4a482bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.7-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.7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8275abf628c6dc7ec834ea63f6f3846bf33518907a2b9b693d41fd063767a866
MD5 53e46f1635ab7f46ab111de6ba67cd87
BLAKE2b-256 7abb854e74dfa04508a4245222a10d283284e6d4d453cd471320c4a8a02f52ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.7-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.7-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d5c5297e2fbc8068d4255f1e606bfc9291f06f91ec31b2a0d4c536210ac5c0a2
MD5 0862da8af8c50d9951c853d9f9580563
BLAKE2b-256 e2a9a6bac02c36dabea26e419ebb8c724eac5606b4bdd34f6c53c1516efe031b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.7-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.7-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e9b04cbef584310a1ac0f0d55bb623ca3244c87c51187645432e342de9ae81a8
MD5 a4c7a4ca457401420468089e88b9a57d
BLAKE2b-256 16429b6bbadda2cea0003bcced811c8ee844d99b0fe8a18b6ae307b86ed71776

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.7-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.7-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 d1210fcf99aae6f728812d1d2240afc1dc44b9e6cba526a06fb8134f969957c2
MD5 275233719867d91367ed818788547979
BLAKE2b-256 6b63be615e8b924e270e92b423eb80fbb02af9afaa79c04f98387c33542a03ca

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