
Py-postgresql is a python3 DB-API driver, including cluster management tools and client development tools. Written in pure Python 3 with optional optimizations written in C.
It provides support for protocol-level prepared statements, the COPY interface, arrays and composite types, and a console to run quick tests and simple scripts in PostgreSQL called pg_python.