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.
Installation
If your pip version supports wheel packages it should be possible to install a binary version of Psycopg including all the dependencies. Just run:
pip install psycopg2
If you want to build Psycopg from source you will need some prerequisite (a C compiler, Python and libpq development packages). If you have what you need the standard:
python setup.py build sudo python setup.py install
should work no problem. In case you have any problem check the ‘install’ and the ‘faq’ documents in the docs or online.
For any other resource (source code repository, bug tracker, mailing list) please check the project homepage.
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-2.7.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 911af115bb526b3a5d2f50e05096afc05e3867f55f24532b4a70811e63deab57 |
|
MD5 | 121aa8ccd28e3dc93993f5667660478d |
|
BLAKE2b-256 | 1012dd2d3bd7bd9e2a728b709d19e4546ea258fa6bb4ed301c5d33ae0fb1323e |
Hashes for psycopg2-2.7.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f57535a377c23a78d5a8bbe929ec6977adb3e137fa42500436c784c60141613 |
|
MD5 | b3e906c66b41b1544393f95d38bc6b85 |
|
BLAKE2b-256 | c977cbe20f0ac2527b879a63eab1f9027e5236b4db76ca83321c00e8d4c8d669 |
Hashes for psycopg2-2.7.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cae3856e9b41a4861ad32fd8a4aabc7669a0b828776bb3ce0ca29333dabf40c |
|
MD5 | 887f0dbd8790b45c5be154a5d328e17c |
|
BLAKE2b-256 | 90bbfd1a81e1a51b2df2d825e778fd58d508a4fc9ab360684348222bda3ff704 |
Hashes for psycopg2-2.7.1-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba6f4786262b4999f9cca420827469c88a79e1f65dabf6bb8a300518f7e11472 |
|
MD5 | aa617b525dd7a17200269f91d18ba542 |
|
BLAKE2b-256 | da009c3b3940594f303595182942b707f67968898e9e21202108dfa78d5165e1 |
Hashes for psycopg2-2.7.1-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 | 74ee532d6068a1456d5eda254513656c716cdee0a7389c91c094c7ce3500a9c9 |
|
MD5 | 8fa956a0c52aacb3e2761680aafbd91b |
|
BLAKE2b-256 | f44f668d3afcb216a1bf639e95067342a89176a91f20672a5684f281a9ca0292 |
Hashes for psycopg2-2.7.1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4f24faa25232073092d246fc6118c29130c8a5bcc8fd4239edeba20fb12b24a |
|
MD5 | 859349f203ccc66316050493f87251d5 |
|
BLAKE2b-256 | 1c0f0a5887a288d58b5bcb01e611b9a8f37376f5db3b4eff5766724266a9ad06 |
Hashes for psycopg2-2.7.1-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32184c60b445ac9eb4a0058d54f7a5dddae6928f94dfa3683157dc5e70321212 |
|
MD5 | 27faa478671d78a5ca5521a39d722396 |
|
BLAKE2b-256 | 33b6d1d0cb56bd7fd41f6fe6192afdf27111fade5afb65b6e762ca7f3545b6cf |
Hashes for psycopg2-2.7.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c9fe11f87c44e83620b2273f40338e3c25fdbfd34986dddc77e840e0acd25bc |
|
MD5 | f183544a6ba2839ee1930f57c1e7cba2 |
|
BLAKE2b-256 | f6402c46b72b4d78e7e9241426e6f60302ae1b38acac805f4c93346db64f6b70 |
Hashes for psycopg2-2.7.1-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f64897312a08928e71343fedc2a3812a1c46f03025fe327e5d41e0a7be53ee9 |
|
MD5 | 9580d08ef9af83422bf30ae3c39383e2 |
|
BLAKE2b-256 | d9bb72cdfb15d4b06b5ff58f111f583e8c4cfabb1d37065737c49a36147ac342 |
Hashes for psycopg2-2.7.1-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 | 38ff8f65deb947a7499f24ceb5b40db24540027fdf7d927f4d2aab35fbbdd6b0 |
|
MD5 | 3e1899515f5de3a35726b577ff5b0f7a |
|
BLAKE2b-256 | d2cb40d392e1855b7a1806433d3ee675f343c6542419e38618412131d25028fa |
Hashes for psycopg2-2.7.1-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccd55766033411206d700bcd11e064081f784f256c4d4f6883dca4c3bde21ae2 |
|
MD5 | c4794336494847032881dbcf114bc8c1 |
|
BLAKE2b-256 | 8243361c634d721e186903106cf48f4e2e591d0484dafbc44ae772c718cc1ec5 |
Hashes for psycopg2-2.7.1-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a11a757e61e3eb5dfa334cf0ce86f9fa1919efadbb98af833eaf3bcb90d7e58 |
|
MD5 | e868ad07c08a80f7b0788e8117914851 |
|
BLAKE2b-256 | 7475baf91610360ca92582042ab1c48e6ec762aa757fa7e99f35081864d80eb2 |
Hashes for psycopg2-2.7.1-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f04d56f664108af9571d278c0ed942ecef0dd3e072fe21ac8c7497a51bfcdfba |
|
MD5 | d33d90ce3c1deda04ee208f075212bda |
|
BLAKE2b-256 | 1363b24b449c28bceafad7fbbcee6dddf9ab30c297173b9a36f8ca36ad261ca3 |
Hashes for psycopg2-2.7.1-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 905764e8d1557e536c9fac35d412a21ad87b558e794104437bf4012a83438ed2 |
|
MD5 | ba76864138251fdab8aa3ce1749ed700 |
|
BLAKE2b-256 | ca8fc817b9c9871fb853ecf0b12aea2a0382d0f6ad4441b913818aa6b7e24bba |
Hashes for psycopg2-2.7.1-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 | ad0e145952e2e91aa1d80c4b9bd8ba9059f39b3538da7b1133b2ed84eb132ed3 |
|
MD5 | 3c0f4ef6ef58066e311dcbda6bc07bde |
|
BLAKE2b-256 | 4799345a33bd66d301fc37fd5503a4622251f458d980e023e840355d44a75f9b |
Hashes for psycopg2-2.7.1-cp33-cp33m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a14bd664f4db452612688e8031fdf74da489cb042d78d49f2bbfcfa97aae135d |
|
MD5 | 48336f667a1faab37300a3b18820631a |
|
BLAKE2b-256 | 2c9e486e5b2abd4609d474bd5deb9a0206c067a4944fbf988e9147fadb70ddb8 |
Hashes for psycopg2-2.7.1-cp33-cp33m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b26f9ec7a0c5ca1b3528918caeb3c73bfceaced3fdea59d045c886cc2c43344 |
|
MD5 | 9a8f6397921c6c3a0dd697231729c579 |
|
BLAKE2b-256 | 33c7bbdcbf936e802189c1d18f46640f04ea50ff246af136bd3eb6d65abb82df |
Hashes for psycopg2-2.7.1-cp33-cp33m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 304304e8efce4077621f9a14cb7e53cdacb4a14ec92f5628204bc4254d4840fb |
|
MD5 | 46b715cab3f506a8894b5c6dc28eeed8 |
|
BLAKE2b-256 | 426fc3ebc383a336d635989ce8d0e7bba76085bb55155559dd63b41cc4727c3c |
Hashes for psycopg2-2.7.1-cp33-cp33m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26551d8873130b9558628c5f0288bd07b00c3f82f7dbfe0acf3cd7cd45746672 |
|
MD5 | 03de34a8abb2cc030bc001ccaacc80c5 |
|
BLAKE2b-256 | 450aa06d1b2228ad805986e7e09d5f2e5b970ad84f98f79109669e5918d0f1db |
Hashes for psycopg2-2.7.1-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf48be2d01f6e34e5fbd8976f7b66158a83a33b92739acd13fc1934c60b71cfb |
|
MD5 | ad013c850f8f7dbb86fff3e878f36c6a |
|
BLAKE2b-256 | 6a847289d6c2b26943b5d1e2e67dde3961babd62df8c742b243bc7c6bfc35230 |
Hashes for psycopg2-2.7.1-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18c2294c2a0a0df6bb5adfbcae50922b0e75909df8642c9286bf6b867866d181 |
|
MD5 | 2368280b0f3346d4d58a6f98c5601a9b |
|
BLAKE2b-256 | 8ecd242dc89d9ec7d067f55281b36bf0b63e5fc50dcfe2a85facca6c58808dc9 |
Hashes for psycopg2-2.7.1-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4004e84c2846badfa1e14ba3cf5b9d7471071c872c1dd6290013c89fa2cc63b1 |
|
MD5 | d3ca48f64d8746e48a75d6aaa57b720f |
|
BLAKE2b-256 | 5642373df2223b2c9c8a88b370c95ffc45f199b2cf7dcf02658ee2228a4de0ad |
Hashes for psycopg2-2.7.1-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2e98ff1546c632c29f740a938ba6e29d327ef55f3e816dd43c1e4e7d8cd369a |
|
MD5 | 99a699dd9c2c35eacf188d37c5d82880 |
|
BLAKE2b-256 | 900548eec5d86bf58f89eaea5c01cbf4c90e7bd953d423aa906981ba0490911b |
Hashes for psycopg2-2.7.1-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1f6d1b0ab40e8d43e294c7a1cc6fe6d47a88225583e581c15e8bfcff04b3863 |
|
MD5 | c26092b85c2710b6cd66f3cc3ef03994 |
|
BLAKE2b-256 | d4a5a6948a4a294818780333561096cd7196f48ce0760ef1464c251bf873892d |
Hashes for psycopg2-2.7.1-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0147e990cef0332e239de711f165b2a5e6feb7c5f8583985d4a3dcac1680a782 |
|
MD5 | 651db5b3002fe2d1fd1325d455c233db |
|
BLAKE2b-256 | f71296191443eb506d6c644a509eee3ca7ac5d32f16d89f0a01a3497df30e9aa |
Hashes for psycopg2-2.7.1-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 | 0c68fb507415ce022402244cffe740018c9506367fe2d6323f0b47e2544b6b36 |
|
MD5 | a9e0f47807e66d6284594b68ac263977 |
|
BLAKE2b-256 | e464f44c2b3e044412e6f3f6db2e4bf5300411168408c19a2cef62f49445ba5f |
Hashes for psycopg2-2.7.1-cp26-cp26mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f9de8b5e1b0b648bf4535b721a58eaccf92f747cd8d94380171a36f18553601 |
|
MD5 | 58182587d37cd3946bb8c79915181b33 |
|
BLAKE2b-256 | 63a2926bbda404f4135bc999ecbe03097bcf40cabdb04ae0421085a6796268f4 |
Hashes for psycopg2-2.7.1-cp26-cp26mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a9c4bc78922be9d34a11fc38b75bef122d44f465eaf5f2a44021f7cbda3dfd6 |
|
MD5 | 22906ab4d12016a8930bd4736682c3f6 |
|
BLAKE2b-256 | 657f41d0dabcd7b28d92790963b29b48bd4651843007e64d1b93bf221d83565c |
Hashes for psycopg2-2.7.1-cp26-cp26m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34b7e41d1747b26df3baf5397949cc938261c547f3bce208ffc7826c3897d5ac |
|
MD5 | 551fae86c339f35ccee52ddd84871855 |
|
BLAKE2b-256 | 65ad9bad99ef84a3c87511526aa8f9e372b9d60921b255939e645401c85b2c33 |
Hashes for psycopg2-2.7.1-cp26-cp26m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4cc27830081147ebca6eb729329c64b7f8e92e415733aa26705dd9f03303038 |
|
MD5 | f7f8ab40f64fd1b24518bb603c958b32 |
|
BLAKE2b-256 | 5bfea2baea84fd2c8fbc889648b7875625f46cecab1cbd5fad2aaa7d192a37c1 |