psycopg

PostgreSQL database adapter for Python

61 个版本 Python >=3.10
安装
pip install psycopg
poetry add psycopg
pipenv install psycopg
conda install psycopg
描述

Psycopg 3: PostgreSQL database adapter for Python

Psycopg 3 is a modern implementation of a PostgreSQL adapter for Python.

This distribution contains the pure Python package psycopg.

.. Note::

Despite the lack of number in the package name, this package is the
successor of psycopg2_.

Please use the psycopg2 package if you are maintaining an existing program
using psycopg2 as a dependency. If you are developing something new,
Psycopg 3 is the most current implementation of the adapter.

.. _psycopg2: https://pypi.org/project/psycopg2/

Installation

In short, run the following::

pip install --upgrade pip           # to upgrade pip
pip install "psycopg[binary,pool]"  # to install package and dependencies

If something goes wrong, and for more information about installation, please check out the Installation documentation__.

.. __: https://www.psycopg.org/psycopg3/docs/basic/install.html#

Hacking

For development information check out the project readme__.

.. __: https://github.com/psycopg/psycopg#readme

Copyright (C) 2020 The Psycopg Team

版本列表
3.3.4 2026-05-01
3.3.3 2026-02-18
3.3.2 2025-12-06
3.3.1 2025-12-02
3.3.0 2025-12-01
3.2.13 2025-11-21
3.2.12 2025-10-26
3.2.11 2025-10-18
3.2.10 2025-09-08
3.2.9 2025-05-13
3.2.8 2025-05-11
3.2.7 2025-04-30
3.2.6 2025-03-12
3.2.5 2025-02-22
3.2.4 2025-01-15
3.2.3 2024-09-29
3.2.2 2024-09-15
3.2.1 2024-07-01
3.2.0 2024-06-30
3.1.20 2024-06-30
3.1.19 2024-05-10
3.1.18 2024-02-04
3.1.17 2024-01-07
3.1.16 2023-12-19
3.1.15 2023-12-14
3.1.14 2023-12-02
3.1.13 2023-11-17
3.1.12 2023-09-27
3.1.11 2023-09-23
3.1.10 2023-08-05
3.1.9 2023-05-02
3.1.8 2023-01-16
3.1.7 2022-12-20
3.1.6 2022-12-15
3.1.5 2022-12-13
3.1.4 2022-10-25
3.1.3 2022-10-04
3.1.2 2022-09-19
3.1.1 2022-09-05
3.1 2022-08-30
3.0.18 2022-09-05
3.0.17 2022-08-30
3.0.16 2022-07-28
3.0.15 2022-06-15
3.0.14 2022-05-16
3.0.13 2022-05-10
3.0.12 2022-04-30
3.0.11 2022-03-29
3.0.10 2022-03-12
3.0.9 2022-02-19
3.0.8 2022-01-08
3.0.7 2021-12-15
3.0.6 2021-12-13
3.0.5 2021-11-28
3.0.4 2021-11-14
3.0.3 2021-11-10
3.0.2 2021-11-08
3.0.1 2021-10-14
3.0 2021-10-12
3.0b1 2021-09-03