Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 4 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

psycopg

PostgreSQL database adapter for Python with async support.

Databases, ORMs and clientsPYPI

GitHubWebsite

1. License

License from PyPI license expression.

github.com/psycopg/psycopg

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What psycopg does

PostgreSQL database adapter for Python with async support.

psycopg popularity

69 / 100
Gid Score, #460 overall
57.1M
downloads a week, pypi
2,539
GitHub stars
72
agent projects use it
psycopg: downloads per weekPyPI, psycopg 56,882,941
psycopg: GitHub starspsycopg/psycopg 2,539

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How psycopg is used

  • psycopg is a dependency in 72 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (4.4% of the 1,623 Python ones), #10 of 120 in databases, orms and clients.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 334; those are left out of every share on this page.
  • The most used alternative in our scan is psycopg2 (99 projects).
  • Projects that use it most often also use python-dotenv (58.3%), FastAPI (52.8%), Uvicorn (51.4%).

By coding agent

42 projects, 1.3%
35 projects, 1.4%
30 projects, 1.0%
7 projects, 1.5%
5 projects, 1.5%
5 projects, 1.8%
5 projects, 1.1%

Often used with

In 58.3% of its projects
In 52.8% of its projects
In 51.4% of its projects
In 47.2% of its projects
In 41.7% of its projects
In 37.5% of its projects
In 36.1% of its projects
In 33.3% of its projects

More about psycopg

Funding
  • GitHub Sponsors: https://github.com/dvarrazzo
  • Own page: https://www.paypal.me/dvarrazzo
  • 30 GitHub sponsors

See all

Head to head
More in Databases, ORMs and clients

Alternatives

psycopg This page

LGPL-3.0-onlyGid 6957.1M/wk

psycopg2

Popular PostgreSQL adapter for Python with full database access and query execution.

LGPLGid 7155.6M/wk

asyncpg

Fast asyncio PostgreSQL driver for non-blocking database operations in Python.

Apache-2.0Gid 7136.3M/wk

DuckDB

Embedded SQL OLAP database for analytical queries and data processing in Python.

MITGid 5822.6M/wk

PyMySQL

Pure Python MySQL database driver for database operations.

MITGid 6519.9M/wk

Neo4j

Official Python driver for Neo4j graph database with Bolt protocol.

Apache-2.0 AND Python-2.0Gid 543.6M/wk

PyMongo

Official MongoDB Python driver for querying and managing MongoDB databases.

Apache-2.0Gid 6818.5M/wk

Compare psycopg with another tool

Get started

Install it.

pip install psycopg

No step-by-step start for psycopg yet: we have not written its hand-checked card.