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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for psycopg2_binary-2.7.4-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 465ff1d427ed42c31e456dbbd9edab3552be18a0edaef7450c5b3e6fee745052 |
|
MD5 | b54cb2f5508f5e16b1a2f8c3417171a5 |
|
BLAKE2b-256 | 720d9b9356fe9622aa76681ad9604672714995e323fbf558581675f71db7409a |
Hashes for psycopg2_binary-2.7.4-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8220c521a408b41c4f14036004a621ed0d965941286b978cd2ea2623fabd755 |
|
MD5 | e903ff5e909aacd5bc731052bf2a23cb |
|
BLAKE2b-256 | dc411824205f559cb8e1d341a6bc204396c616552e682249eff52a8e2c740f16 |
Hashes for psycopg2_binary-2.7.4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a4f23a08fbccbe40ecdb5384d807bcb469ea71dd87e6be2e80b036b8e6d47df |
|
MD5 | b812978f2c61335dde63c3f8db7398fb |
|
BLAKE2b-256 | 5f0baa7078d3f6d27d951c38b6a1f4b99b71b2caecebb2921b2d808b5bf0e2e0 |
Hashes for psycopg2_binary-2.7.4-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77a2fc622a1f2d08a707673c9be5769d521f03d867d305f172bb417fa7882754 |
|
MD5 | 2c001ddc67a7caa243ff81ad599ebca2 |
|
BLAKE2b-256 | 24c31ccb5768279831d6cb335428710a0b76e9be8038444af534f0efc103d4d0 |
Hashes for psycopg2_binary-2.7.4-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86c0d2587f56776f25d52cca8e275adf495c8e01933fbfc2ca23b124610ab761 |
|
MD5 | fe1472b2ae8ad5cd80d44311cfb25595 |
|
BLAKE2b-256 | ca794c0d9ee391e35901f7089637767fb25149dee07b89f6989f06247db97e26 |
Hashes for psycopg2_binary-2.7.4-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3d2cc0cb0b988dbfd0d11f7fac34058b25a6ce533ed5b8e88d6cb315e77d54a |
|
MD5 | 1ab72a91de47a948b5144c67d192e771 |
|
BLAKE2b-256 | e006e7135c362ddc872cde0666ef9801af57c1c381b5c4490976af7afcbd1b1d |
Hashes for psycopg2_binary-2.7.4-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a1a5ea2fa4b53191637b162873a82822d92a85a08beefe28296b8eb5cf2fea5 |
|
MD5 | 5f67d0f6a66e057524a1f33ffca90ac3 |
|
BLAKE2b-256 | e3bff82a72b6984846aae018a3710f32f1ca7af95ea4e9ef98a182a18b317c12 |
Hashes for psycopg2_binary-2.7.4-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9305d7cbc802aaefac5c75a3df725f2654797369f32b18d4d0adb382dfab6c09 |
|
MD5 | b75f182a0bc823baa8bfe39be4ea0a07 |
|
BLAKE2b-256 | 02bc067c0769eda3a3361f41fcf709758b52e4627046e47442baf6aa05940926 |
Hashes for psycopg2_binary-2.7.4-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c606bff0978ee4858d86d40f6b6ab0c4cac4474f627bd054683dc03a4fc1a366 |
|
MD5 | e9765e68e3b271a308d540fe813b3fa8 |
|
BLAKE2b-256 | 9c72af246cf05af967f46e537d47e3e72e1be852992e2b987bbf0b093ecc374f |
Hashes for psycopg2_binary-2.7.4-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8940b5104588d6313315e037f0f5ed68d2e5f62ccc1c429d3cff11d2ba6de3f |
|
MD5 | 7a178232e55a55d79b4ce04068ab266e |
|
BLAKE2b-256 | 549b8d497ffdc251e45d5e4f1360d111a8988ab2f9939ca6a35a41b12095019b |
Hashes for psycopg2_binary-2.7.4-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4c6004d410c77bfa5389ae9485498ce32805447a67afbfe8db0d247a5c88fa1 |
|
MD5 | cc0518d843a0b2332f5957e91aa2571c |
|
BLAKE2b-256 | 2789dca017a0f6d931c71cb4999d1b95579ffd7d5df4f880759edd084e9afc29 |
Hashes for psycopg2_binary-2.7.4-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8014c06a9ed7b78ba81beff3ae71acd78c212390f8ed839e9ce22735880bd5b4 |
|
MD5 | 6f563e0909a54513a822763468b1ea11 |
|
BLAKE2b-256 | 44eafdda681a82971d067cd8141c283527882b0c1cb3f9be703b4ebb5b1936a5 |
Hashes for psycopg2_binary-2.7.4-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 436a503eda41f6adb08f292f40a3784fce0a5f351b6ae7b19a911904db53af93 |
|
MD5 | b1755da9a8254e82e767492ebf7d7c40 |
|
BLAKE2b-256 | 1b7d548197032492575d9b19159550cde29dc96d747cc67498395e59c7813340 |
Hashes for psycopg2_binary-2.7.4-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02eb674e3d5810e19b4d5d00720b17130e182da1ba259dda608aaf33d787347d |
|
MD5 | b02856d3b29169e5d566d82f603f0118 |
|
BLAKE2b-256 | 5f77b3ba50812a6e1c11b0020565671ef1d21f625a6695a23d51c43827069fb0 |
Hashes for psycopg2_binary-2.7.4-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b5ddbed85ec73293695d7116589d956ef0dd3fcf7bf3b2a3bc1e8e54c1d543a |
|
MD5 | 7bdfb57f54980459e96f6e04200f493d |
|
BLAKE2b-256 | 37bed8d0364bf659a0895b7c3588bd966019560856e059ace93d2eeef8daae95 |
Hashes for psycopg2_binary-2.7.4-cp33-cp33m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6b2b26590304d97ef2af28d153ee99ace6fe0806934f4618edfc87216c77f91 |
|
MD5 | 316ca2db92887608bdcd982b039417ef |
|
BLAKE2b-256 | f3ef88c144644e4ecfeb9d2d7fa2b750fe42ad951e9e1659da08bf5777dd36a9 |
Hashes for psycopg2_binary-2.7.4-cp33-cp33m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d51c7ed810fce1e50464088c37cc8da05534de8afb12a732500827ebcc480081 |
|
MD5 | aa80e71ff79ae704359124f81811f567 |
|
BLAKE2b-256 | aa9b461a6e0363a2f4753f37a44ae5b5d940c9dd2d613791b8a49e2426e83d23 |
Hashes for psycopg2_binary-2.7.4-cp33-cp33m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab1db8f3e96570d9f7ebc45133ce2574804b2280499baade178e163d022107b5 |
|
MD5 | 02bdc128cc004610db8c75b5ac69ec5b |
|
BLAKE2b-256 | 7100521c37547745dd7472c3748b156f2fb76b7f516b6dab9cab41a42682df56 |
Hashes for psycopg2_binary-2.7.4-cp33-cp33m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0972f062c73956332e9681dfdb133168618f0abfecc96e89f0205ac89cd454b |
|
MD5 | 22d25d4ef6048d4108da377c7ad512d7 |
|
BLAKE2b-256 | e0e4a55d250313d20907a2c5b3c3fc942a986c099c2e3f00e34e57af73e736d1 |
Hashes for psycopg2_binary-2.7.4-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83af04029bcb4b56c852e5876fef71340dcb465fa44fc99f80bac72e10fb0b74 |
|
MD5 | 5846d6d2693db8c521f70440be1266cc |
|
BLAKE2b-256 | 9a4beb776a9d59026115ef2901d1c040b2124f85b8ca27db77ba0938f756d226 |
Hashes for psycopg2_binary-2.7.4-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b039f51bca1ddd70234cc3f84f94f42ad43861b931bdfb497f887c60c39a6565 |
|
MD5 | 824938a590f3f4511ab21210ad9baa4b |
|
BLAKE2b-256 | ec8fb2612b7dee65d03a6dffb0fc6f7fd08c1729960c01471865bbec98eb47ef |
Hashes for psycopg2_binary-2.7.4-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb07184a4bfad304831f0a88b1c13fbd8cf9fcdf1f11e71c477dd6d7b1b078a0 |
|
MD5 | 1c580a8e327946b4f310c75e507b9bea |
|
BLAKE2b-256 | 78cf333a24478118c3b55c7099f8994fabe90613ca8947776405038eaf534caf |
Hashes for psycopg2_binary-2.7.4-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a14baeabcebd4662f12f4bff03e0574a2369a2e41baf829e6fb4a24c95cf88b |
|
MD5 | 7b7798d8447ab887b44edb33b7a23c78 |
|
BLAKE2b-256 | 305da6ca4c8b360bb1683604c23372ce105adb07853039a1c33eb1c10cec475f |
Hashes for psycopg2_binary-2.7.4-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf3911fba0c47fc1313b5783183cda301032b14637a0b7a336766ae46998c7ee |
|
MD5 | 51986ae5a60b9a2b81b11ff5bbee1be0 |
|
BLAKE2b-256 | 89fd62acb08e4a0fb4332d28c29dfaf0f49023a35f4df39eaa16f9a10f42397d |
Hashes for psycopg2_binary-2.7.4-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1dd3eb8edd354083f5d27b968c5a17854c41347ba5a480b520be85ec1a8495c |
|
MD5 | b9fa9605f3d9030417fa791200652f36 |
|
BLAKE2b-256 | 1de3558c67d17bcec370204883050284f778a5219f06d72ded5443e232619a9a |
Hashes for psycopg2_binary-2.7.4-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b287ddf4cafcfb632974907d1e7862119e36bb758228bdb07dd247553e4cdfc0 |
|
MD5 | d03a755ae8ec6ad5d2805673fd7aa962 |
|
BLAKE2b-256 | 25817242b023dc4d9593bcda760e6e89cf3c7ca02162e15801221c95469cf64b |