Compressor.app – Compress almost any file format
ML classifier detects text formats automatically, but CloudConvert already does 50+ formats.
Find, format, and safely extract embedded SQL from Python files.
SQLGlot-powered formatter for Python-embedded SQL with template-aware skipping.
Python developers writing SQL queries in code
sqlfmt · Black · djlint
Python formatters handle Python syntax. They do not format SQL written inside Python code. On the other hand, SQL formatters usually target SQL files or raw SQL text, not SQL embedded inside a Python file.
Still, I think it is not uncommon to find long SQL queries inside Python codebases.
py-sql-cleaner detects embedded SQL inside Python files and works only on that SQL. The main things it can do are: find the SQL, format it in place, or extract it into a .sql file.
It avoids rewriting SQL that depends on runtime values or template expansion. For example, SQL containing parameters like %s or :name, or Jinja-style template variables like {{ ds }}, is skipped by default.
Try it with:
uvx py-sql-cleaner list path/to/file.py uvx py-sql-cleaner format path/to/file.py --dry-run
If you write Python, have run into this kind of SQL cleanup problem, or are just curious, I’d be happy if you take a look.ML classifier detects text formats automatically, but CloudConvert already does 50+ formats.
SQL dump cleaner that beats sed/grep — but the market for $30 niche tools is microscopic.
DataFrame diffing for Polars with ASCII output when pandas comparisons fall short.
Format-preserving PII replacement lets LLMs process data without seeing real values.
NeDB compatibility in pure Go; a nicer SQLite.js for terminal apps.
One-click firewall rules for 22 providers—no more hunting AWS/Azure/GCP feeds separately.