Psycopg - PostgreSQL database adapter for Python - Psycopg documentation
Back to top
Psycopg 3 - PostgreSQL database adapter for Python #
Psycopg 3 is a newly designed PostgreSQL database adapter for the Python programming language.
Psycopg 3 presents a familiar interface for everyone who has used Psycopg 2 or any other DB-API 2.0 database adapter, but allows to use more modern PostgreSQL and Python features, such as:
Documentation #
- Getting started with Psycopg 3
- More advanced topics
-
Psycopg 3 API
-
The
psycopg
module - Connection classes
- Cursor classes
- COPY-related objects
- Other top-level objects
-
sql
- SQL string composition -
rows
- row factory implementations -
errors
- Package exceptions -
psycopg_pool
- Connection pool implementations -
conninfo
- manipulate connection strings -
adapt
- Types adaptation -
types
- Types information and adapters -
abc
- Psycopg abstract classes -
pq
- libpq wrapper module -
crdb
- CockroachDB support -
_dns
- DNS resolution utilities
-
The