psycopg (binary)
PostgreSQL adapter for Python with optimized C extensions precompiled.
Databases, ORMs and clients PyPI LGPL-3.0-only
How psycopg (binary) is used
psycopg (binary) is a dependency in 6 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 82 projects, and what it is used with below comes from all of them. The most used alternative in our scan is psycopg2 (98 projects). Projects that use it most often also use psycopg (96.3%), Pydantic (96.3%), python-dotenv (95.1%).
psycopg (binary) popularity over time
Gid Score 63: downloads 98, use in agent projects 48, GitHub stars 27, downloads trend 68 (each 0-100). How it is calculated.
Often used with psycopg (binary)
| psycopg | 96.3% of psycopg (binary) projects · 84.2× more than average |
|---|---|
| Pydantic | 96.3% of psycopg (binary) projects · 11.2× more than average |
| python-dotenv | 95.1% of psycopg (binary) projects · 10.4× more than average |
| OpenAI Python Library | 92.7% of psycopg (binary) projects · 23.5× more than average |
| AnyIO | 91.5% of psycopg (binary) projects · 61.7× more than average |
| Click | 91.5% of psycopg (binary) projects · 36.6× more than average |
| charset-normalizer | 87.8% of psycopg (binary) projects · 81.4× more than average |
From all 82 projects in our scan that use psycopg (binary), including the dependency samples.
By coding agent
| Claude Code | 0.2% of projects set up for it |
|---|---|
| GitHub Copilot | 0.2% of projects set up for it |
Share of public repos configured for each agent that list psycopg (binary) as a dependency.
How psycopg (binary) is funded
GitHub Sponsors
| @dvarrazzo | 32 current sponsors |
|---|
GitHub shows how many people and companies sponsor an account, not how much they pay. Sponsors of a person back all of their work, which here includes psycopg2, psycopg, psycopg-pool.
Ways to fund psycopg (binary)
As the maintainers list them in FUNDING.yml on GitHub. Checked Oct 20, 2026.
Install
| Package | pip install psycopg-binary |
|---|---|
| Main stacks | Python (82) |
| Example projects | apconw/Aix-DB, aihes/LangChain-Tutorials-and-Examples, digitranslab/allama, camel-ai/seta, agno-agi/investment-team |
Alternatives to psycopg (binary)
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside psycopg (binary) are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| psycopg2 pypi Popular PostgreSQL adapter for Python with full database access and query execution. |
70 | 98 (6.0%) | 51.4M | 3,656 | LGPL |
| psycopg pypi PostgreSQL database adapter for Python with async support. |
68 | 71 (4.4%) | 42.8M | 2,511 | LGPL-3.0-only |
| asyncpg pypi Fast asyncio PostgreSQL driver for non-blocking database operations in Python. |
70 | 70 (4.3%) | 30.5M | 8,111 | Apache-2.0 |
More in Databases, ORMs and clients: pg Drizzle ORM Prisma Drizzle Kit SQLAlchemy better-sqlite3 Alembic Neon Serverless Driver