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 23
actors 8 distinct systems
last hit 1h ago ClaudeBot
GPTBot
4
Amazonbot
4
MetaBot
4
Script
2
ClaudeBot
1
Search engines
1
Humans
2

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