Skip to content
Agents tracked: 440 Downloads (7d): 202M down 19.5% GitHub stars: 10.4M Releases (7d): 607 Agent status: all upSince last limit reset: Claude 28d · Codex 0d Updated Oct 21, 2026

psycopg (binary)

PostgreSQL adapter for Python with optimized C extensions precompiled.

Databases, ORMs and clients PyPI LGPL-3.0-only

Used in agent projects
6
0.4% of 1,622 Python repos built with AI coding agents; 82 counting our dependency samples
Gid Score
63 /100
#552 of 3,794 tools, #18 in databases, orms and clients · ranking
Rank in databases, orms and clients
#52 of 115
by use in those projects
Downloads
41.9M
PyPI, last 7 days, psycopg-binary
GitHub stars
2,511
289 forks · last push Oct 12, 2026

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

Top tools by Gid Score

psycopg (binary): downloads per weekPyPI, psycopg-binary 41,180,556
psycopg (binary): GitHub starspsycopg/psycopg 2,511

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)

psycopg96.3% of psycopg (binary) projects · 84.2× more than average
Pydantic96.3% of psycopg (binary) projects · 11.2× more than average
python-dotenv95.1% of psycopg (binary) projects · 10.4× more than average
OpenAI Python Library92.7% of psycopg (binary) projects · 23.5× more than average
AnyIO91.5% of psycopg (binary) projects · 61.7× more than average
Click91.5% of psycopg (binary) projects · 36.6× more than average
charset-normalizer87.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 Code0.2% of projects set up for it
GitHub Copilot0.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

Most funded tools

GitHub Sponsors

@dvarrazzo32 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)

GitHub Sponsors Own page

As the maintainers list them in FUNDING.yml on GitHub. Checked Oct 20, 2026.

Install

Packagepip install psycopg-binary
Main stacksPython (82)
Example projectsapconw/Aix-DB, aihes/LangChain-Tutorials-and-Examples, digitranslab/allama, camel-ai/seta, agno-agi/investment-team

Alternatives to psycopg (binary)

All databases, orms and clients

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 projectsDownloads / wk GitHub starsLicense
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

Is psycopg (binary) right for your project? Ask AgentGid →