# psycopg — card for AI agents

PostgreSQL database adapter for Python with async support.

Category: Databases, ORMs and clients · PyPI package `psycopg` · latest version 3.3.6 (checked 2026-11-01)
Install: `pip install psycopg`
License: LGPL-3.0-only (weak-copyleft)

In your own product (generator, app, hosted service): **conditions**. Weak copyleft: fine inside a closed product, but changes to the library's own files stay under its license and must be shared.

## Numbers (AgentGid data)
- Gid Score: 68.6 (#460 of all tools, 14 of 120 in its category)
- Used in 72 public projects set up for AI coding agents (1.2%)
- Downloads last week: 57,125,269 (as of 2026-11-24), +30.3% over 4 weeks
- GitHub stars: 2,539 (as of 2026-11-24)
- Last push: 2026-11-23

## Often used with
python-dotenv 58.3%, FastAPI 52.8%, Uvicorn 51.4%, Pydantic 47.2%, Requests 41.7%, NumPy 37.5%

## Checked alternatives (same job)
- psycopg2: https://agentgid.com/tools/psycopg2-binary/agent.md
- asyncpg: https://agentgid.com/tools/asyncpg/agent.md
- DuckDB: https://agentgid.com/tools/duckdb/agent.md
- PyMySQL: https://agentgid.com/tools/pymysql/agent.md
- Neo4j: https://agentgid.com/tools/neo4j/agent.md
- PyMongo: https://agentgid.com/tools/pymongo/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/psycopg/
- Homepage: https://psycopg.org/
- Repository: https://github.com/psycopg/psycopg

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
