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

Metadata

Release files for psycopg2 2.9.9

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.9.9
File Size Uploaded
psycopg2-2.9.9.tar.gz 384.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for psycopg2 2.9.9
File
psycopg2-2.9.9-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
psycopg2-2.9.9-cp312-cp312-win32.whl CPython 3.12 CPython 3.12 Windows x86-32 Details
psycopg2-2.9.9-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
psycopg2-2.9.9-cp311-cp311-win32.whl CPython 3.11 CPython 3.11 Windows x86-32 Details
psycopg2-2.9.9-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
psycopg2-2.9.9-cp310-cp310-win32.whl CPython 3.10 CPython 3.10 Windows x86-32 Details
psycopg2-2.9.9-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
psycopg2-2.9.9-cp39-cp39-win32.whl CPython 3.9 CPython 3.9 Windows x86-32 Details
psycopg2-2.9.9-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
psycopg2-2.9.9-cp38-cp38-win32.whl CPython 3.8 CPython 3.8 Windows x86-32 Details
psycopg2-2.9.9-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
psycopg2-2.9.9-cp37-cp37m-win32.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-32 Details

Total release size: 13.5 MB

Release files / psycopg2-2.9.9.tar.gz

Download URL psycopg2-2.9.9.tar.gz
Size 384.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d1454bde93fb1e224166811694d600e746430c006fbb031ea06ecc2ea41bf156
BLAKE2b-256 checksum
How to use checksums
c95edc6acaf46d78979d6b03458b7a1618a68e152a6776fce95daac5e0f0301b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / psycopg2-2.9.9-cp312-cp312-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.9.9-cp312-cp312-win_amd64.whl
Size 1.2 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
a7653d00b732afb6fc597e29c50ad28087dcb4fbfb28e86092277a559ae4e693
BLAKE2b-256 checksum
How to use checksums
584bc4a26e191882b60150bfcb639e416524ae7f8249ab7ee854fb5247f16c40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / psycopg2-2.9.9-cp312-cp312-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.9.9-cp312-cp312-win32.whl
Size 1.0 MB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
d735786acc7dd25815e89cc4ad529a43af779db2e25aa7c626de864127e5a024
BLAKE2b-256 checksum
How to use checksums
1313f74ffe6b6f58822e807c70391dc5679a53feb92ce119ccb8a6546c3fb893
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / psycopg2-2.9.9-cp311-cp311-win_amd64.whl

Download URL psycopg2-2.9.9-cp311-cp311-win_amd64.whl
Size 1.2 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
121081ea2e76729acfb0673ff33755e8703d45e926e416cb59bae3a86c6a4981
BLAKE2b-256 checksum
How to use checksums
372c5133dd3183a3bd82371569f0dd783e6927672de7e671b278ce248810b7f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / psycopg2-2.9.9-cp311-cp311-win32.whl

Download URL psycopg2-2.9.9-cp311-cp311-win32.whl
Size 1.0 MB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
ade01303ccf7ae12c356a5e10911c9e1c51136003a9a1d92f7aa9d010fb98372
BLAKE2b-256 checksum
How to use checksums
912c1fc5b9d33cd248c548ba19f2cef8e89cabaafab9858a602868a592cdc1b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / psycopg2-2.9.9-cp310-cp310-win_amd64.whl

Download URL psycopg2-2.9.9-cp310-cp310-win_amd64.whl
Size 1.2 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
426f9f29bde126913a20a96ff8ce7d73fd8a216cfb323b1f04da402d452853c3
BLAKE2b-256 checksum
How to use checksums
bcbc6572dec6834e779668421e25f8812a872d978e241f85491a5e4dda606a98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / psycopg2-2.9.9-cp310-cp310-win32.whl

Download URL psycopg2-2.9.9-cp310-cp310-win32.whl
Size 1.0 MB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
38a8dcc6856f569068b47de286b472b7c473ac7977243593a288ebce0dc89516
BLAKE2b-256 checksum
How to use checksums
a2142767d963915f957c07f5d4c3d9c5c9a407415289f5cde90b82cb3e8c2a12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / psycopg2-2.9.9-cp39-cp39-win_amd64.whl

Download URL psycopg2-2.9.9-cp39-cp39-win_amd64.whl
Size 1.2 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
de80739447af31525feddeb8effd640782cf5998e1a4e9192ebdf829717e3913
BLAKE2b-256 checksum
How to use checksums
f8ecec73fe66d4317db006a38ebafbde02cb7e1d727ed65f5bbe54efb191d9e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / psycopg2-2.9.9-cp39-cp39-win32.whl

Download URL psycopg2-2.9.9-cp39-cp39-win32.whl
Size 1.0 MB
Tags CPython 3.9 Windows x86-32
SHA-256 checksum
How to use checksums
c92811b2d4c9b6ea0285942b2e7cac98a59e166d59c588fe5cfe1eda58e72d59
BLAKE2b-256 checksum
How to use checksums
6ba85080c0e61a3b393a379ea2fa93402135c73baffcd5f08b9503e508aac116
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

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

Download URL psycopg2-2.9.9-cp38-cp38-win_amd64.whl
Size 1.2 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
bac58c024c9922c23550af2a581998624d6e02350f4ae9c5f0bc642c633a2d5e
BLAKE2b-256 checksum
How to use checksums
8ee8c439b378efc9f2d0fd1fd5f66b03cb9ed41423f179997a935f10374f3c0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

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

Download URL psycopg2-2.9.9-cp38-cp38-win32.whl
Size 1.0 MB
Tags CPython 3.8 Windows x86-32
SHA-256 checksum
How to use checksums
ff432630e510709564c01dafdbe996cb552e0b9f3f065eb89bdce5bd31fabf4c
BLAKE2b-256 checksum
How to use checksums
1f7886b90d30c4e02e88379184ade34c2fd4883a4d3e420cc3c0f6da2b8f3a9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

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

Download URL psycopg2-2.9.9-cp37-cp37m-win_amd64.whl
Size 1.2 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
7e2dacf8b009a1c1e843b5213a87f7c544b2b042476ed7755be813eaf4e8347a
BLAKE2b-256 checksum
How to use checksums
bea70a39176d369a8289191f3d327139cfb4923dcedcfd7105774e57996f63cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

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

Download URL psycopg2-2.9.9-cp37-cp37m-win32.whl
Size 1.0 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
5e0d98cade4f0e0304d7d6f25bbfbc5bd186e07b38eac65379309c4ca3193efa
BLAKE2b-256 checksum
How to use checksums
2b77ffeb9ac356b3d99d97ca681bf0d0aa74f6d1d8c2ce0d6c4f2f34e396dbc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

2.9.12

7 release files

2.9.11

7 release files

This release

2.9.9 This release

13 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

2.8.4

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