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

Query Optimization Python Packages

Python packages with the GitHub topic query-optimization. Sorted by monthly downloads, with stars and forks.
MaciejZiel
pytest-queryguard

pytest plugin that catches N+1 queries and enforces query budgets for SQLAlchemy 2 (sync, async, FastAPI)

6K 1 1
laaielichter
gulliver-mcp

Test on tiny data before you run on giant data. MCP server + CLI that gives AI agents a dress rehearsal for SQL: cost preflight, scale lint with auto-fix, rehearse on 1% → 10%, predict 100%, run only within budget. DuckDB, Postgres, BigQuery, Snowflake. Local-first, MIT.

2K 2 33
pranav-walimbe
pycanopy

A high-performance spatial query layer for Polars

2K 31 0
AtharvaSiddhawar
sqlite-guard-mcp

Security-focused, read-only SQLite MCP server with native authorizer enforcement, privacy-aware access policies, bounded query execution and intelligent database diagnostics for AI agents and developers.

2K 1 0
cdelmonte-zg
delta-explain

CLI diagnostic tool showing step-by-step how Delta Lake prunes files given a predicate

1K 10 1
sinhaKAN-ra
anumana-mcp

Query-cost foresight for AI agents across 12 database engines — preflight SQL/NoSQL/graph/warehouse/vector queries before you run them (MCP server).

700 0 0
mmar4
snowflake-switchboard-ai

A dynamic, metadata-driven query router for Snowflake and Snowpark

586 1 0
arikanatakan
dataxplan-mcp

Read PostgreSQL EXPLAIN plans for AI agents: bottlenecks, estimation errors, fixes, charts.

586 2 0
yassinbahri
django-index-optimizer

A workload-driven PostgreSQL Index Advisor for Django. Find missing indexes and generate safe, reviewable recommendations.

467 0 3
danmorcov88
indexwright

Read-only performance advisor for self-hosted MongoDB: slow query shapes, ESR index recommendations, unused and redundant indexes. The Atlas Performance Advisor, for your own servers.

367 1 0
arikanatakan
dataxplan

Read PostgreSQL EXPLAIN plans locally: parse, compute self time and estimation error, flag documented problems, compare plans, and guard them in CI. No database connection, deterministic.

306 2 0
singhpratech
samkhya

A provable join-cardinality ceiling and portable statistics sketches, for query planning

293 3 0
yassinbahri
django-fetch-guard

Prevent accidental Django ORM queries with strict fetch contracts, automatic N+1 batching, DRF integration, and support for Django 4.2–6.1.

201 3 3
Open-Workshop
query-normalizer

Modern Python library for search-query normalization with bilingual support (Russian/English).

107 0 0
richarah
libsqlglot

126× faster sqlglot in C++. Parses, transpiles and optimises 40+ SQL dialects. Supports stored procedures. Python bindings available.

98 0 0
AhmadDarwich
chqce

ClickHouse Query Cost Estimator CLI

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