psycopg2-binary 2.9.11


pip install psycopg2-binary

  Latest version

Released: Oct 10, 2025


Meta
Author: Federico Di Gregorio
Maintainer: Daniele Varrazzo
Requires Python: >=3.9

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

License
  • OSI Approved :: GNU Library or Lesser General Public License (LGPL)

Programming Language
  • Python
  • Python :: 3
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14
  • Python :: 3 :: Only
  • Python :: Implementation :: CPython
  • C
  • SQL

Topic
  • Database
  • Database :: Front-Ends
  • Software Development
  • Software Development :: Libraries :: Python Modules

Operating System
  • Microsoft :: Windows
  • Unix

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.

Build status:

Build status

Wheel compatibility matrix

Platform CPython 3.9 CPython 3.10 CPython 3.11 CPython 3.12 CPython 3.13 CPython 3.14
macosx_10_13_x86_64
macosx_10_9_x86_64
macosx_11_0_arm64
manylinux2014_aarch64
manylinux2014_ppc64le
manylinux2014_x86_64
manylinux_2_17_aarch64
manylinux_2_17_ppc64le
manylinux_2_17_x86_64
musllinux_1_2_aarch64
musllinux_1_2_ppc64le
musllinux_1_2_x86_64
win_amd64

Files in release

psycopg2-binary-2.9.11.tar.gz (370.7KiB)
psycopg2_binary-2.9.11-cp310-cp310-macosx_10_9_x86_64.whl (3.6MiB)
psycopg2_binary-2.9.11-cp310-cp310-macosx_11_0_arm64.whl (3.7MiB)
psycopg2_binary-2.9.11-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (4.2MiB)
psycopg2_binary-2.9.11-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl (4.3MiB)
psycopg2_binary-2.9.11-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (4.0MiB)
psycopg2_binary-2.9.11-cp310-cp310-musllinux_1_2_aarch64.whl (3.5MiB)
psycopg2_binary-2.9.11-cp310-cp310-musllinux_1_2_ppc64le.whl (3.1MiB)
psycopg2_binary-2.9.11-cp310-cp310-musllinux_1_2_x86_64.whl (3.2MiB)
psycopg2_binary-2.9.11-cp310-cp310-win_amd64.whl (2.6MiB)
psycopg2_binary-2.9.11-cp311-cp311-macosx_10_9_x86_64.whl (3.6MiB)
psycopg2_binary-2.9.11-cp311-cp311-macosx_11_0_arm64.whl (3.7MiB)
psycopg2_binary-2.9.11-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (4.2MiB)
psycopg2_binary-2.9.11-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl (4.3MiB)
psycopg2_binary-2.9.11-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (4.0MiB)
psycopg2_binary-2.9.11-cp311-cp311-musllinux_1_2_aarch64.whl (3.5MiB)
psycopg2_binary-2.9.11-cp311-cp311-musllinux_1_2_ppc64le.whl (3.1MiB)
psycopg2_binary-2.9.11-cp311-cp311-musllinux_1_2_x86_64.whl (3.2MiB)
psycopg2_binary-2.9.11-cp311-cp311-win_amd64.whl (2.6MiB)
psycopg2_binary-2.9.11-cp312-cp312-macosx_10_13_x86_64.whl (3.6MiB)
psycopg2_binary-2.9.11-cp312-cp312-macosx_11_0_arm64.whl (3.7MiB)
psycopg2_binary-2.9.11-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (4.2MiB)
psycopg2_binary-2.9.11-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl (4.3MiB)
psycopg2_binary-2.9.11-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (4.0MiB)
psycopg2_binary-2.9.11-cp312-cp312-musllinux_1_2_aarch64.whl (3.5MiB)
psycopg2_binary-2.9.11-cp312-cp312-musllinux_1_2_ppc64le.whl (3.1MiB)
psycopg2_binary-2.9.11-cp312-cp312-musllinux_1_2_x86_64.whl (3.2MiB)
psycopg2_binary-2.9.11-cp312-cp312-win_amd64.whl (2.6MiB)
psycopg2_binary-2.9.11-cp313-cp313-macosx_10_13_x86_64.whl (3.6MiB)
psycopg2_binary-2.9.11-cp313-cp313-macosx_11_0_arm64.whl (3.7MiB)
psycopg2_binary-2.9.11-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (4.2MiB)
psycopg2_binary-2.9.11-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl (4.3MiB)
psycopg2_binary-2.9.11-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (4.0MiB)
psycopg2_binary-2.9.11-cp313-cp313-musllinux_1_2_aarch64.whl (3.5MiB)
psycopg2_binary-2.9.11-cp313-cp313-musllinux_1_2_ppc64le.whl (3.1MiB)
psycopg2_binary-2.9.11-cp313-cp313-musllinux_1_2_x86_64.whl (3.2MiB)
psycopg2_binary-2.9.11-cp313-cp313-win_amd64.whl (2.6MiB)
psycopg2_binary-2.9.11-cp314-cp314-macosx_10_13_x86_64.whl (3.6MiB)
psycopg2_binary-2.9.11-cp314-cp314-macosx_11_0_arm64.whl (3.7MiB)
psycopg2_binary-2.9.11-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (4.2MiB)
psycopg2_binary-2.9.11-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl (4.3MiB)
psycopg2_binary-2.9.11-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (4.0MiB)
psycopg2_binary-2.9.11-cp314-cp314-musllinux_1_2_aarch64.whl (3.5MiB)
psycopg2_binary-2.9.11-cp314-cp314-musllinux_1_2_ppc64le.whl (3.1MiB)
psycopg2_binary-2.9.11-cp314-cp314-musllinux_1_2_x86_64.whl (3.2MiB)
psycopg2_binary-2.9.11-cp314-cp314-win_amd64.whl (2.7MiB)
psycopg2_binary-2.9.11-cp39-cp39-macosx_10_9_x86_64.whl (3.6MiB)
psycopg2_binary-2.9.11-cp39-cp39-macosx_11_0_arm64.whl (3.7MiB)
psycopg2_binary-2.9.11-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (4.2MiB)
psycopg2_binary-2.9.11-cp39-cp39-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl (4.3MiB)
psycopg2_binary-2.9.11-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (4.0MiB)
psycopg2_binary-2.9.11-cp39-cp39-musllinux_1_2_aarch64.whl (3.5MiB)
psycopg2_binary-2.9.11-cp39-cp39-musllinux_1_2_ppc64le.whl (3.1MiB)
psycopg2_binary-2.9.11-cp39-cp39-musllinux_1_2_x86_64.whl (3.2MiB)
psycopg2_binary-2.9.11-cp39-cp39-win_amd64.whl (2.6MiB)
No dependencies