psycopg2

JSON →
library 2.9.11 ·python
verified Jun 9, 2026 install

The most widely used PostgreSQL adapter for Python. Sync only. Two packages on PyPI: psycopg2 (source, requires libpq dev headers) and psycopg2-binary (pre-compiled, no system deps). Official docs explicitly warn against psycopg2-binary in production. Current version: 2.9.11 (Mar 2026). For async PostgreSQL use asyncpg or psycopg (v3). For new projects consider migrating to psycopg (v3) which has both sync and async.

total hits 19
actors 6 distinct systems
last hit 1d ago AhrefsBot
Amazonbot
4
MetaBot
4
Script
2
Search engines
1
Humans
3

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇪🇸 Spain · 🇫🇷 France