Skip to main content
Files added late

2 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.

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

Release files for psycopg2 2.8.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Files added late

2 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for psycopg2 2.8.4
File Size Uploaded
psycopg2-2.8.4.tar.gz 377.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for psycopg2 2.8.4
File
psycopg2-2.8.4-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
psycopg2-2.8.4-cp38-cp38-win32.whl CPython 3.8 CPython 3.8 Windows x86-32 Details
psycopg2-2.8.4-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
psycopg2-2.8.4-cp37-cp37m-win32.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-32 Details
psycopg2-2.8.4-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details
psycopg2-2.8.4-cp36-cp36m-win32.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-32 Details
psycopg2-2.8.4-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details
psycopg2-2.8.4-cp35-cp35m-win32.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-32 Details
psycopg2-2.8.4-cp34-cp34m-win_amd64.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-64 Details
psycopg2-2.8.4-cp34-cp34m-win32.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-32 Details
psycopg2-2.8.4-cp27-cp27m-win_amd64.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-64 Details
psycopg2-2.8.4-cp27-cp27m-win32.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-32 Details

Total release size: 13.1 MB

Release files / psycopg2-2.8.4.tar.gz

Download URL psycopg2-2.8.4.tar.gz
Size 377.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f898e5cc0a662a9e12bde6f931263a1bbd350cfb18e1d5336a12927851825bb6
BLAKE2b-256 checksum
How to use checksums
84d76a93c99b5ba4d4d22daa3928b983cec66df4536ca50b22ce5dcac65e4e71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release files / psycopg2-2.8.4-cp38-cp38-win_amd64.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL psycopg2-2.8.4-cp38-cp38-win_amd64.whl
Size 1.1 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
92a07dfd4d7c325dd177548c4134052d4842222833576c8391aab6f74038fc3f
BLAKE2b-256 checksum
How to use checksums
5f00c2f699fd5848ffaf30affc82c5dc8966dd783eac58af70045aecf0facf13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release files / psycopg2-2.8.4-cp38-cp38-win32.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL psycopg2-2.8.4-cp38-cp38-win32.whl
Size 986.3 kB
Tags CPython 3.8 Windows x86-32
SHA-256 checksum
How to use checksums
4212ca404c4445dc5746c0d68db27d2cbfb87b523fe233dc84ecd24062e35677
BLAKE2b-256 checksum
How to use checksums
79ad327e9c1e09b91e57294eb9a38492fcb000f15c028a1b716714fee5be802e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release files / psycopg2-2.8.4-cp37-cp37m-win_amd64.whl

Download URL psycopg2-2.8.4-cp37-cp37m-win_amd64.whl
Size 1.1 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
47fc642bf6f427805daf52d6e52619fe0637648fe27017062d898f3bf891419d
BLAKE2b-256 checksum
How to use checksums
1a85853f11abfccfd581b099e5ae5f2dd807cc2919745b13d14e565022fd821c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release files / psycopg2-2.8.4-cp37-cp37m-win32.whl

Download URL psycopg2-2.8.4-cp37-cp37m-win32.whl
Size 983.5 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
8396be6e5ff844282d4d49b81631772f80dabae5658d432202faf101f5283b7c
BLAKE2b-256 checksum
How to use checksums
e3d14bdda027f2ad83189915e340d3ac01a589424d1b554809046b42d406a375
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release files / psycopg2-2.8.4-cp36-cp36m-win_amd64.whl

Download URL psycopg2-2.8.4-cp36-cp36m-win_amd64.whl
Size 1.1 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
dca2d7203f0dfce8ea4b3efd668f8ea65cd2b35112638e488a4c12594015f67b
BLAKE2b-256 checksum
How to use checksums
4ad9467aba4b587f97e4047b9ae8609f22dc01eea56eda92358089db89b729ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release files / psycopg2-2.8.4-cp36-cp36m-win32.whl

Download URL psycopg2-2.8.4-cp36-cp36m-win32.whl
Size 983.5 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
ed686e5926929887e2c7ae0a700e32c6129abb798b4ad2b846e933de21508151
BLAKE2b-256 checksum
How to use checksums
d1c089266a88ae31c3f61da761a2251560cdfa6fb627a7a33a8414a0786ae956
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release files / psycopg2-2.8.4-cp35-cp35m-win_amd64.whl

Download URL psycopg2-2.8.4-cp35-cp35m-win_amd64.whl
Size 1.1 MB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
965c4c93e33e6984d8031f74e51227bd755376a9df6993774fd5b6fb3288b1f4
BLAKE2b-256 checksum
How to use checksums
ac1d52662e81398f3affd71f683ab49351c7caf9415aede762f514d664766d5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release files / psycopg2-2.8.4-cp35-cp35m-win32.whl

Download URL psycopg2-2.8.4-cp35-cp35m-win32.whl
Size 983.5 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
ef6df7e14698e79c59c7ee7cf94cd62e5b869db369ed4b1b8f7b729ea825712a
BLAKE2b-256 checksum
How to use checksums
6bd147ff82871866a2a5e4ae22d905afc3df0d7992aba85f3c583affebc238ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release files / psycopg2-2.8.4-cp34-cp34m-win_amd64.whl

Download URL psycopg2-2.8.4-cp34-cp34m-win_amd64.whl
Size 1.1 MB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
b0845e3bdd4aa18dc2f9b6fb78fbd3d9d371ad167fd6d1b7ad01c0a6cdad4fc6
BLAKE2b-256 checksum
How to use checksums
4629110f5328be7ea0a4fb61f6542c510d779abdb29040aca47749456193adf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release files / psycopg2-2.8.4-cp34-cp34m-win32.whl

Download URL psycopg2-2.8.4-cp34-cp34m-win32.whl
Size 1.0 MB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
9ab75e0b2820880ae24b7136c4d230383e07db014456a476d096591172569c38
BLAKE2b-256 checksum
How to use checksums
b1d2b61da4bfe058073ecf272bcbed08ab444c7a10465b6f700ab96b23ad5447
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release files / psycopg2-2.8.4-cp27-cp27m-win_amd64.whl

Download URL psycopg2-2.8.4-cp27-cp27m-win_amd64.whl
Size 1.1 MB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
893c11064b347b24ecdd277a094413e1954f8a4e8cdaf7ffbe7ca3db87c103f0
BLAKE2b-256 checksum
How to use checksums
65afb92009fe794af5753737cbd63190b174751c4b2220aa15f6d25939430480
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release files / psycopg2-2.8.4-cp27-cp27m-win32.whl

Download URL psycopg2-2.8.4-cp27-cp27m-win32.whl
Size 993.9 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
72772181d9bad1fa349792a1e7384dde56742c14af2b9986013eb94a240f005b
BLAKE2b-256 checksum
How to use checksums
60d2c3a1b2a4da1dcb9e4884abdc6ef64dfb3d142600bf344ac2b1ea8115d5ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release history Release notifications | RSS feed

2.9.12

7 release files

2.9.11

7 release files

2.9.8

11 release files

2.9.5

13 release files

2.9.3

11 release files

2.9.2

11 release files

2.9.1

11 release files

2.9

9 release files

This release

2.8.4 This release

13 release files

2.8.3

11 release files

2.8.2

11 release files

2.8

11 release files

2.7.7

30 release files

2.7.5

30 release files

2.7.3

31 release files

2.7.2

31 release files

2.7.1

31 release files

2.7

31 release files

2.6.1

11 release files

2.6

1 release file

2.5.5

1 release file

2.5.4

1 release file

2.5.3

1 release file

2.5.2

1 release file

2.5.1

1 release file

2.5

1 release file

2.4.6

1 release file

2.4.5

1 release file

2.4.4

1 release file

2.4.3

1 release file

2.4.2

1 release file

2.4.1

1 release file

2.4

1 release file

2.3.2

1 release file

2.3.1

1 release file

2.3.0

1 release file

2.2.2

1 release file

2.2.1

1 release file

2.2.0

1 release file

2.0.14

1 release file

2.0.13

1 release file

2.0.12

1 release file

2.0.11

1 release file

2.0.10

1 release file

2.0.8

2.0.7

2.0.6

2.0.5.1

2.0.4

2.0.3

2.0.2

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page