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-2.9.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3ca6421b942f60c008f81a3541e8faf6865a28d5a9b48544b0ee4f40cac7fca |
|
MD5 | 308803040dfbeb872d0694ec95ee745b |
|
BLAKE2b-256 | 6427941e9b03814eb56345d5ea5f254752959418c4e2537853910e24b4def4a1 |
Hashes for psycopg2-2.9.3-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 083707a696e5e1c330af2508d8fab36f9700b26621ccbcb538abe22e15485362 |
|
MD5 | ac6899892be6a5fa5334156cc1354e4b |
|
BLAKE2b-256 | 007fa1e886c894385c731dd063dfc4bcc6b252c502222b8dbd58ca40bc970691 |
Hashes for psycopg2-2.9.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06f32425949bd5fe8f625c49f17ebb9784e1e4fe928b7cce72edc36fb68e4c0c |
|
MD5 | b8980aa546210e354bf811fde1745d84 |
|
BLAKE2b-256 | 36a6e6ad8bbbecc6b8171fe4321377b8f74c0843720df99c868e63e4a6343e99 |
Hashes for psycopg2-2.9.3-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cf3878353cc04b053822896bc4922b194792df9df2f1ad8da01fb3043602126 |
|
MD5 | d2c0b648e4b96924755686a9f6ee9211 |
|
BLAKE2b-256 | 51d18026ce0069a4dea8bcc4ce3ddc88daa7fb1c7a1520e096a831982126e40e |
Hashes for psycopg2-2.9.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0762c27d018edbcb2d34d51596e4346c983bd27c330218c56c4dc25ef7e819bf |
|
MD5 | 7c3d8ea58952e3b2b3931e0849414703 |
|
BLAKE2b-256 | 570fb17f51d21ece594452a70c50d5c153dd25aab182c88497f493b5afbf5820 |
Hashes for psycopg2-2.9.3-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34b33e0162cfcaad151f249c2649fd1030010c16f4bbc40a604c1cb77173dcf7 |
|
MD5 | da9da832b6338a42f5bc2df6da2ac6a7 |
|
BLAKE2b-256 | 580221acdeb9f69afd04006fd542383b5a47b886e7f2ec2ccd409c7a8a243b6d |
Hashes for psycopg2-2.9.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4295093a6ae3434d33ec6baab4ca5512a5082cc43c0505293087b8a46d108461 |
|
MD5 | 37ef2bb3aa28adc591b2a9318c623213 |
|
BLAKE2b-256 | ce0e7eb38164a100be0ddef6082b29f25d2e9ec84d695d13b6d85e9b99c6eeb1 |
Hashes for psycopg2-2.9.3-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb10d44e6694d763fa1078a26f7f6137d69f555a78ec85dc2ef716c37447e4b2 |
|
MD5 | 7f34642c49494d53969aa451f44ef0ce |
|
BLAKE2b-256 | 2ad96366ce51fcd963b1edb9f2420a645ee2664f2e0237a96ca20566cca67123 |
Hashes for psycopg2-2.9.3-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a81e3866f99382dfe8c15a151f1ca5fde5815fde879348fe5a9884a7c092a305 |
|
MD5 | 4dbc0bc979b3ccc94c4ca8312bd02370 |
|
BLAKE2b-256 | c151925f13ce3251f242c07480e973ce016348bbdd885078e343e94251cf9e5e |
Hashes for psycopg2-2.9.3-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9572e08b50aed176ef6d66f15a21d823bb6f6d23152d35e8451d7d2d18fdac56 |
|
MD5 | d74b7f55e3a63332670d66fd51b1681c |
|
BLAKE2b-256 | 8796de1b4e1ed052d8fe7fff419e1f499930b87821625a46f8fd05dabf88009e |