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

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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 Windows x86

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 Windows x86

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 Windows x86

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

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

Uploaded CPython 3.6m Windows x86-64

psycopg2-2.9.6-cp36-cp36m-win32.whl (1.0 MB view details)

Uploaded CPython 3.6m Windows x86

File details

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

File metadata

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

File hashes

Hashes for psycopg2-2.9.6.tar.gz
Algorithm Hash digest
SHA256 f15158418fd826831b28585e2ab48ed8df2d0d98f502a2b4fe619e7d5ca29011
MD5 c2d95c6ad2f2251861a91d9a24386a74
BLAKE2b-256 afc45726cddb53fe52f0e839eb3da04322364f14493217ebd5818cc5e4c948a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for psycopg2-2.9.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b81fcb9ecfc584f661b71c889edeae70bae30d3ef74fa0ca388ecda50b1222b7
MD5 8439807655f1f715bcb50525ad3bd173
BLAKE2b-256 c937f49a95fb00ca9f4678475284e60cb341aea84201ac45faa9f32ad88c02e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.6-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.6

File hashes

Hashes for psycopg2-2.9.6-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 53f4ad0a3988f983e9b49a5d9765d663bbe84f508ed655affdb810af9d0972ad
MD5 97919b1213a1a69d42d303646c5dd80f
BLAKE2b-256 4b6a450b97eb81f64f4788a6c5c4282ef2f73b023cc1ceab906ca63cab864440

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for psycopg2-2.9.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f75001a1cbbe523e00b0ef896a5a1ada2da93ccd752b7636db5a99bc57c44494
MD5 a4201c28d0fcc23eb6ce4888cdcd57d8
BLAKE2b-256 ca4ab2f2cc9a3384b438961f9953fd82a20514c60a87f378f4a475f1b9de184b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.6-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.6

File hashes

Hashes for psycopg2-2.9.6-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f7a7a5ee78ba7dc74265ba69e010ae89dae635eea0e97b055fb641a01a31d2b1
MD5 6ffe52dee2b851e17f614a173ff7fae4
BLAKE2b-256 9be104d7d48986b123775840fb64bc07642fe186079564744ed9955162891b24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.6-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.6

File hashes

Hashes for psycopg2-2.9.6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ded2faa2e6dfb430af7713d87ab4abbfc764d8d7fb73eafe96a24155f906ebf5
MD5 a484c3ea5e4be4c3b7c429cae5d802c5
BLAKE2b-256 498e52252e78c8fd2cc91dae13d2686b103237900fd05f80adc1efc366b40f65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.6-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.6

File hashes

Hashes for psycopg2-2.9.6-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1861a53a6a0fd248e42ea37c957d36950da00266378746588eab4f4b5649e95f
MD5 34acb75be4fc6a94f3de1096590ca805
BLAKE2b-256 e37608d3297720f2d0636a934aa30bf3343e6c4b869c12ba6294b8c1739af76b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.6-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.6

File hashes

Hashes for psycopg2-2.9.6-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d24ead3716a7d093b90b27b3d73459fe8cd90fd7065cf43b3c40966221d8c394
MD5 f3158352b73d2a521f1b6fdab0db19ad
BLAKE2b-256 4b8e69c0ea73e96afc1efb9f459050a14391fae20db81ff1815bf27c8ddc3160

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.6-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.6

File hashes

Hashes for psycopg2-2.9.6-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2362ee4d07ac85ff0ad93e22c693d0f37ff63e28f0615a16b6635a645f4b9214
MD5 a22c2e2ffefabe35f8a35ea1b165f407
BLAKE2b-256 2fe0f0db22e36faf2b62557ed11e942cc47f3b96d52b686fa838a3ca6b3c90b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.6-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.6

File hashes

Hashes for psycopg2-2.9.6-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a8ad4a47f42aa6aec8d061fdae21eaed8d864d4bb0f0cade5ad32ca16fcd6258
MD5 60eb50ed56d7622ade23ef8aad0b25d8
BLAKE2b-256 e2384a2cc3f697f40f09617697a795c73697eec464009f4c5e47cf4050f45b63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.6-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.6

File hashes

Hashes for psycopg2-2.9.6-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 869776630c04f335d4124f120b7fb377fe44b0a7645ab3c34b4ba42516951889
MD5 631a348b72aa2000fe4955c12318a805
BLAKE2b-256 ad8d88ab18931ee8d7434163671dbc6bbfd8c07ff8777fe6d156fabcb3672927

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for psycopg2-2.9.6-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 36c941a767341d11549c0fbdbb2bf5be2eda4caf87f65dfcd7d146828bd27f39
MD5 73dfeb4852d5a7f53b6c7bc14116bebd
BLAKE2b-256 e1566558cc5b4380dc2ef0ea6c96eeb6fcb26111081ec07f0dade2c3b9bc1f06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psycopg2-2.9.6-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for psycopg2-2.9.6-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 11aca705ec888e4f4cea97289a0bf0f22a067a32614f6ef64fcf7b8bfbc53744
MD5 453d5ecb6f75e6ef34873154cbeee37b
BLAKE2b-256 c247d142314e126c0ea7c8f4c0043cad069e359ce04975fd7d296c4af7f5a5c4

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