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.
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.
Stars
12
Forks
4
Language
Python
License
MIT
Category
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.
Related agents
dolthub/dolt
Dolt – Git for Data
DataPupOrg/DataPup
A modern, AI-assisted, cross-platform database client - free
eosho/langchain_data_agent
NL2SQL - Ask questions in plain English, get SQL queries and results. Powered by LangGraph.
colesmcintosh/langchain-salesforce
Langchain integration for Salesforce CRM, providing tools for SOQL queries, object schema...
FrankChen021/datastoria
AI-native ClickHouse console for your cluster diagnostics and query generation, optimization and...