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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 Windows x86

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 Windows x86

psycopg2-2.9.2-cp38-cp38-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.8 Windows x86-64

psycopg2-2.9.2-cp38-cp38-win32.whl (995.6 kB view details)

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.7m Windows x86-64

psycopg2-2.9.2-cp37-cp37m-win32.whl (994.0 kB view details)

Uploaded CPython 3.7m Windows x86

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

Uploaded CPython 3.6m Windows x86-64

psycopg2-2.9.2-cp36-cp36m-win32.whl (994.1 kB view details)

Uploaded CPython 3.6m Windows x86

File details

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

File metadata

  • Download URL: psycopg2-2.9.2.tar.gz
  • Upload date:
  • Size: 380.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.2.tar.gz
Algorithm Hash digest
SHA256 a84da9fa891848e0270e8e04dcca073bc9046441eeb47069f5c0e36783debbea
MD5 e2241da81bdfd6be01c2117f359e12fd
BLAKE2b-256 33ed79434011d773e5ea4c51262f6ebfb86680c2908d7677f31ebccd5aa9f1b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.2-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.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dfc32db6ce9ecc35a131320888b547199f79822b028934bb5b332f4169393e15
MD5 2dcbe5f9bd85123c0fbc07c2391e8879
BLAKE2b-256 0cef118fa3db352a1fe05b66b2ffda041817caa258a1af223a8cb8a2bf51d565

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.2-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.2-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6796ac614412ce374587147150e56d03b7845c9e031b88aacdcadc880e81bb38
MD5 5c3b6d2fb96425c8e1573033678f1354
BLAKE2b-256 6f47a4c4f503a0b74e80747cdf769cc5df1d147eb945c6072c9359b8fdd7efa7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.2-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.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fd7ddab7d6afee4e21c03c648c8b667b197104713e57ec404d5b74097af21e31
MD5 91fe5c101878844ce11d6ec573e1ec7d
BLAKE2b-256 39c734b02adbcae31de7cc1540f93cf9d795833d87546ca937afd7dfc94f2579

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.2-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.2-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a761b60da0ecaf6a9866985bcde26327883ac3cdb90535ab68b8d784f02b05ef
MD5 c4f10df35daec2bc8cb912c0e9a02b03
BLAKE2b-256 ed69beb6a64cf5f11209a950efa957427e6ca85e6e7b7308a6af4287f8fcc23d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.2-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/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.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 91c7fd0fe9e6c118e8ff5b665bc3445781d3615fa78e131d0b4f8c85e8ca9ec8
MD5 86f5d84672a83b1b5be12533ce652171
BLAKE2b-256 b94401b2c2503607ad4e2885aa817e8b492aa7e538a4d33ea250504fae30f9aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.2-cp38-cp38-win32.whl
  • Upload date:
  • Size: 995.6 kB
  • 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.2-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 77b9105ef37bc005b8ffbcb1ed6d8685bb0e8ce84773738aa56421a007ec5a7a
MD5 e0882f9373dc7e58f0a13f517e9bc601
BLAKE2b-256 1d83cc07e4c889449bc385828bf0c540557bccf61554b31950d441b4ba902214

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.2-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/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.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 26322c3f114de1f60c1b0febf8fdd595c221b4f624524178f515d07350a71bd1
MD5 a857203ea93a7f369389e231e667c964
BLAKE2b-256 37243a05a64817bf33b333eed564d96e272a005e0e019d6287a38e6938b358e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.2-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 994.0 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.2-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 b8816c6410fa08d2a022e4e38d128bae97c1855e176a00493d6ec62ccd606d57
MD5 5ef26d69ae19ba0d685c194616f1b790
BLAKE2b-256 85c318898553fcd5a31aa38f3b8797d6697774a9913934ae49665cc9ecf0821f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.2-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/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.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 f65cba7924363e0d2f416041b48ff69d559548f2cb168ff972c54e09e1e64db8
MD5 52d002af5ec3d2f3d0cc355bf7b4313b
BLAKE2b-256 04bea3e919cf8ccf6258d70d8999acf178a980c3cd2cfa896f5466c9746ca441

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.2-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 994.1 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.2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 77d09a79f9739b97099d2952bbbf18eaa4eaf825362387acbb9552ec1b3fa228
MD5 762557933cf8b3cb06b2e7b9fd9c8fda
BLAKE2b-256 58a24755d91ab657502ff4e2393ebc4a07ed2dbe15ead90ead4a1af2adc9a0d4

See more details on using hashes here.

Supported by

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