Show HN: Py-SQL-cleaner – format SQL embedded in Python strings
Category: cli-tool
Tags: sql-formatter, cli-tool, python
Score: 5.0/10 (Innovation: 4, Technical: 5, Documentation: 6, Utility: 5)
py-sql-cleaner is a CLI tool that finds, formats, and extracts SQL embedded in Python triple-quoted strings using SQLGlot. It is interesting because it addresses a common pain point in Python codebases with inline SQL, while safely skipping f-strings and templates to avoid breaking runtime behavior.
Target audience: backend devs
Repository: https://github.com/enumura1/py-sql-cleaner · Python · MIT · 7 stars
View on Hacker News