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
File details
Details for the file psycopg2-2.9.4.tar.gz
.
File metadata
- Download URL: psycopg2-2.9.4.tar.gz
- Upload date:
- Size: 384.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d529926254e093a1b669f692a3aa50069bc71faf5b0ecd91686a78f62767d52f |
|
MD5 | b9f0e6780e4793f7cb6dfcb9e244a9b4 |
|
BLAKE2b-256 | 8dd7277e23b708a0429b6b3d50e86e52b791156dfbfa81917d34ef6d7b435b84 |
File details
Details for the file psycopg2-2.9.4-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: psycopg2-2.9.4-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/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1da77c061bdaab450581458932ae5e469cc6e36e0d62f988376e9f513f11cb5c |
|
MD5 | 5e0d63438efb69a8479aa78c6d4f8628 |
|
BLAKE2b-256 | 5c0588fa2be0148f2afd0f576272964b83b18be227a965331ff82f1f58be89eb |
File details
Details for the file psycopg2-2.9.4-cp310-cp310-win32.whl
.
File metadata
- Download URL: psycopg2-2.9.4-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.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8de6a9fc5f42fa52f559e65120dcd7502394692490c98fed1221acf0819d7797 |
|
MD5 | b3451cd3b4f4e3bf3e5f99e109a86124 |
|
BLAKE2b-256 | d050b951e86f3fe09e35cc648b32ece2b0db5ac58f2471345531705a7ae71937 |
File details
Details for the file psycopg2-2.9.4-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: psycopg2-2.9.4-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.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 849bd868ae3369932127f0771c08d1109b254f08d48dc42493c3d1b87cb2d308 |
|
MD5 | 5710fed52fb28f575c8d54a7b263a6a6 |
|
BLAKE2b-256 | bfe3defe7f0d2418dc9f18245f004047ac48312037f7d9e4d02fbdfe66dc18f8 |
File details
Details for the file psycopg2-2.9.4-cp39-cp39-win32.whl
.
File metadata
- Download URL: psycopg2-2.9.4-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.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07b90a24d5056687781ddaef0ea172fd951f2f7293f6ffdd03d4f5077801f426 |
|
MD5 | 5fb26a2ef8e01ba3b421456038e73a86 |
|
BLAKE2b-256 | d1ba7d4df3b6975a3ab3174f84681ce13de718f31b334c29bff4daca5ab48134 |
File details
Details for the file psycopg2-2.9.4-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: psycopg2-2.9.4-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/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7fa041b4acb913f6968fce10169105af5200f296028251d817ab37847c30184 |
|
MD5 | 3161a592b517d7154eac0666e90b7ed7 |
|
BLAKE2b-256 | 2074ab9c9076107de13f70bff1c31a66f1327bbe90f5c8c950305a733f20fef9 |
File details
Details for the file psycopg2-2.9.4-cp38-cp38-win32.whl
.
File metadata
- Download URL: psycopg2-2.9.4-cp38-cp38-win32.whl
- Upload date:
- Size: 997.5 kB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 839f9ea8f6098e39966d97fcb8d08548fbc57c523a1e27a1f0609addf40f777c |
|
MD5 | e0b0917ea5c7700db694c2d54badfa38 |
|
BLAKE2b-256 | 206c1eda000a7f71e08f0ce99a0e6c8a1ab5eaa292bfc6bcbcc0b69685b99d5a |
File details
Details for the file psycopg2-2.9.4-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: psycopg2-2.9.4-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/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa184d551a767ad25df3b8d22a0a62ef2962e0e374c04f6cbd1204947f540d61 |
|
MD5 | e906b72049f265f5bb578e20de42cce0 |
|
BLAKE2b-256 | 877264d073755a80e835f2558c6583151f980ff4e4e47ab2f19570da2b7ebb87 |
File details
Details for the file psycopg2-2.9.4-cp37-cp37m-win32.whl
.
File metadata
- Download URL: psycopg2-2.9.4-cp37-cp37m-win32.whl
- Upload date:
- Size: 995.6 kB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aafa96f2da0071d6dd0cbb7633406d99f414b40ab0f918c9d9af7df928a1accb |
|
MD5 | 8508d81d8dfe0279ff1c9b4a8c705c4b |
|
BLAKE2b-256 | fe129739036b90fa146af6b80c0b64e6f2aeed01bb1d7e30dfc20482b008c4d8 |
File details
Details for the file psycopg2-2.9.4-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: psycopg2-2.9.4-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/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46361c054df612c3cc813fdb343733d56543fb93565cff0f8ace422e4da06acb |
|
MD5 | c192bd044535875d663a09c259ec8f9b |
|
BLAKE2b-256 | 4d190e1b6050b99be7aaae32926748c83852097df0e4964fcee0eea57bb4cbfe |
File details
Details for the file psycopg2-2.9.4-cp36-cp36m-win32.whl
.
File metadata
- Download URL: psycopg2-2.9.4-cp36-cp36m-win32.whl
- Upload date:
- Size: 995.7 kB
- Tags: CPython 3.6m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a11946bad3557ca254f17357d5a4ed63bdca45163e7a7d2bfb8e695df069cc3a |
|
MD5 | bb8dd25c4aad0fab0b21986aaedf06d3 |
|
BLAKE2b-256 | 434712c263c144062fde71f0d71d03f5eb876b7e07a7bc99b552a44e1f7c13e2 |