SQLGlot: SQL Parser, Transpiler, and Optimizer
JSON →SQLGlot is a powerful Python library for parsing, transpiling, optimizing, and even executing SQL. It supports translating SQL across over 30 different database dialects, enabling cross-dialect compatibility, query parsing into Abstract Syntax Trees (ASTs), programmatic query rewriting, and optimization. It's known for being a fast, pure-Python solution with no external dependencies and is regularly among the top Python package downloads. The library is currently at version 30.1.0 and follows a versioning strategy where MINOR version increments can introduce backwards-incompatible changes.
Traffic · last 30 days ↓100% vs prev 7d
total hits 17
actors 6 distinct systems
last hit 13d ago Amazonbot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇮 Finland · 🇫🇷 France
Resources
packagepypi.org/project/sqlglot/ ↗
API endpoints
full doc /v1/registry/sqlglot
install /v1/registry/sqlglot/install
compatibility /v1/registry/sqlglot/compatibility