Py-SQL-cleaner streamlines embedded SQL in Python files

TL;DR. A new CLI tool, py-sql-cleaner, automates finding, formatting, and extracting SQL queries from Python strings. - The tool uses SQLGlot for SQL formatting, supporting database-specific dialects like Redshift. - It skips unsafe blocks including f-strings, Jinja-like templates, and runtime placeholders by default. - Developers can format SQL in-place, extract it to external files, or perform CI checks.

Sources

Back to QLANKR News