GH Repository · tobymao
sqlglot
Python SQL Parser and Transpiler
- stars
- 9,625
- 30-day movement
- +124/day
- Related entries
- 60
- Connections
- 3
makeotherPythonredshiftdatabrickstsqlsqlitesqlhiveclickhousepythonparsertrinobigquerytranspilersparkoptimizermysqlpostgresduckdbprestosqlparsersnowflake
sqlglot is a Python SQL parser and transpiler. It parses SQL into an abstract syntax tree, can transpile between many SQL dialects, and includes optimizer functionality.
Use it when you need to programmatically parse, transform, or convert SQL between dialects from Python.
Use it to
- Parse SQL into an AST for analysis
- Transpile queries between SQL dialects
- Optimize parsed SQL
- Integrate SQL parsing into Python tooling
For Python developers working with SQL across database dialects
- Role
- other
- Language
- Python
- Licence
- MIT
- Forks
- 1,282
- Last push
- 2026-09-17
topicssqlparsertranspileroptimizerpythondialects