vstorm-co/database-pydantic-ai

Database toolset for PydanticAI — schema exploration, SQL queries, and data analysis with read-only mode, query validation, and row limits.

51
/ 100
Established

Provides five composable database tools (`list_tables`, `describe_table`, `explain_query`, `query`) that integrate directly into Pydantic AI agents via a toolset API. Supports both SQLite (file-based via aiosqlite) and PostgreSQL (connection pooling via asyncpg) with async/await patterns throughout. Security enforcement includes comment-aware SQL parsing to detect dangerous keywords, multi-statement prevention, configurable query timeouts, and row limits to prevent resource exhaustion.

Available on PyPI.

Maintenance 10 / 25
Adoption 8 / 25
Maturity 18 / 25
Community 15 / 25

How are scores calculated?

Stars

12

Forks

4

Language

Python

License

MIT

Last pushed

Feb 07, 2026

Monthly downloads

25

Commits (30d)

0

Dependencies

4

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/agents/vstorm-co/database-pydantic-ai"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.