Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Nl2sql Python Packages

Python packages with the GitHub topic nl2sql. Sorted by monthly downloads, with stars and forks.
ashishsinha1602
schemagate

Text-to-SQL access control: schema selection that gives the LLM only the tables the caller is allowed to read. Row-level-security-aware table pruning for LangChain, MCP and any SQL agent. Postgres, Oracle, MySQL, SQL Server. 75% fewer prompt tokens.

11K 127 4
AgamiAI
agami-core

The trust layer between AI and your data. Turns your database schema - messy joins, undocumented tables, into a governed semantic model so AI answers with correct SQL and a receipt on every answer. Run it locally, or self-host a shared team server with Docker.

9K 30 1
luiscarbonel1991
nlp2sql

Natural language to SQL for Python, with pluggable databases and LLM providers (OpenAI, Anthropic, Gemini). PostgreSQL and Redshift built in.

3K 8 2
factql
factql-mcp

Verified answers from your data, with the query and rows behind them, or a decline, never a guess.

3K 2 0
nadeem4
nl2sql-engine

Ask a database questions in English: the model writes a typed query plan, never SQL, and the plan is checked against the schema and the caller's role before any SQL is generated

3K 4 1
nadeem4
nl2sql-api

Ask your database questions in English. The model emits a typed query plan, never SQL text - validated against the real schema and the caller's role before any SQL is generated.

2K 4 1
nadeem4
nl2sql-sdk

Ask your database questions in English. The model emits a typed query plan, never SQL text - validated against the real schema and the caller's role before any SQL is generated.

2K 4 1
nlqueries
nlqueries-core

Open source natural language to SQL (NL2SQL) engine with schema validation and an MCP server for Claude and Cursor

880 5 1
nadeem4
nl2sql-adapter-sdk

Ask your database questions in English. The model emits a typed query plan, never SQL text - validated against the real schema and the caller's role before any SQL is generated.

800 4 1
ashishsinha1602
langchain-schemagate

LangChain retriever that sends a text-to-SQL model only the tables a question needs, from the ones the caller may read

519 0 0
ashishsinha1602
llama-index-retrievers-schemagate

Text-to-SQL retriever: only the tables a question needs, from the ones the caller may read (schemagate)

510 0 0
nadeem4
nl2sql-cli

The nl2sql command line: index, ask, review, evaluate and serve a database you query in English

469 4 1
boxed-dev
cognidb

Secure Natural Language Database Interface

304 215 19
buhtig47
asksql

Community-maintained, security-focused fork of Vanna: generate SQL from natural language. Drop-in: keeps `import vanna`.

263 1 0
sathninduk
chatwithsql

ChatWithSQL: Secure, Schema-Validated Text-to-SQL, Eliminating Arbitrary Query Risks from LLMs

237 2 2
abhijithneilabraham
tableqa

Tool for querying natural language on tabular data

235 320 45
Text2SqlAgent
text2sql-framework

Framework-agnostic text-to-SQL with tool-based schema retrieval and a native agent loop (raw Anthropic/OpenAI SDKs). LangChain optional.

219 164 22
WajeehAlamoudi
queryguard-sql

🛡️ SQL guardrails for LLMs and NL2SQL. Deterministic validation, read-only enforcement, and schema-based column filtering.

197 1 0
Cyberfilo
promptquery

Natural-language SQL for production-scale Postgres schemas

196 2 5
smartql
smartql

Natural Language to SQL - Database First

173 4 0
ashfrnndz21
ora-sql

ora — The NL2SQL Agentic Runtime. Connect any database. Ask in plain English.

134 11 1
Nitin-Gupta1109
talkdb-ai

Autonomous data analyst: text-to-SQL with conversation, insight, monitoring, and community intelligence

97 1 0
saya-ashen
danticsql

A powerful Python utility designed to efficiently reconstruct nested SQLModel object graphs from a flat Pandas DataFrame

86 1 0
chigwell
tailwind-sql

A new package that allows users to write SQL queries using a simplified, Tailwind CSS-like syntax. It takes natural language or abbreviated input from the user and converts it into valid, structured S

85 4 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology