# pg8000 — card for AI agents

Pure Python PostgreSQL database driver for connecting and querying databases.

Category: Databases, ORMs and clients · PyPI package `pg8000` · latest version 1.31.6 (checked 2026-11-04)
Install: `pip install pg8000`
License: BSD (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 51.6 (#1799 of all tools, 54 of 120 in its category)
- Downloads last week: 13,097,796 (as of 2026-11-24), +25.7% over 4 weeks

## Often used with
Requests 87.5%, SQLAlchemy 87.5%, FastAPI 62.5%, NumPy 62.5%, Pydantic 62.5%, Jinja2 50.0%

## Checked alternatives (same job)
- psycopg2: https://agentgid.com/tools/psycopg2-binary/agent.md
- psycopg: https://agentgid.com/tools/psycopg/agent.md
- asyncpg: https://agentgid.com/tools/asyncpg/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/pg8000/
- Homepage: https://codeberg.org/tlocke/pg8000

---
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.
