24 free alternatives to Py-SQL-cleaner
Find, format, and safely extract embedded SQL from Python files.
Py-SQL-cleaner is free itself (its own site, checked November 2026). Below are 24 products that do a similar job and cost nothing to start: 24 free outright and 0 with a free plan and paid upgrades. Each price was read from the product's own site. They are ranked by how close each is in meaning, then by launch-day votes.
- 1
learndb-pyFree▲371This is a relational database management system written entirely in Python that functions similarly to SQLite.
2023 · github.com · price checked November 2026
- 2
SPyQLFree▲105SPyQL (https://github.com/dcmoura/spyql) is SQL with Python in the middle, an open-source project fully written in Python for making command-line data processing more intuitive, readable and powerful. Try mixing in the same pot: a SQL SELECT for providing the structure, Python expressions for defining transformations and conditions, the essence of awk as a data-processing language, and the JSON handling capabilities of jq. How does a SPyQL query looks like? $ spyql “ IMPORT pendulum AS p SELECT (p.now() - p.from_timestamp(purchase_ts)).in_days() AS days_ago, sum_agg(price…
2022 · github.com · price checked November 2026
- 3
CsqlFree▲89Csql is a Python library that helps developers build SQL queries through composition.
2020 · github.com · price checked November 2026
- 4

Rich is a Python library for rich text and beautiful formatting in the terminal.
2020 · github.com · price checked November 2026
- 5
PyQLFree▲15A tool to run SQL queries on Python files built using GitQL
2024 · github.com · price checked November 2026
- 6
PasteKitFree▲89Format JSON, YAML & SQL privately
Oct 2026 · pastekit.dev · price checked November 2026
- 7
PydbFree▲130A lightweight database with Python syntax queries, using ZeroMQ
2017 · github.com · price checked November 2026
- 8
SqlitFree▲190Sqlit is a terminal user interface for browsing and querying SQL databases, designed for developers who work primarily in the command line.
Dec 2025 · github.com · price checked November 2026
- 9
GritQLFree▲280GritQL is a Rust command-line tool for searching and transforming source code at scale.
2024 · github.com · price checked November 2026
- 10
SQLite Plugin for JekyllFree▲227SQLite Plugin for Jekyll lets users query SQLite databases directly within Jekyll's static site generator using Liquid templating.
2024 · github.com · price checked November 2026
- 11

- 12
FSQLFree▲341Search for files using a fun query language.
2017 · github.com · price checked November 2026
- 13
Tidy ViewerFree▲392📺(tv) Tidy Viewer is a cross-platform CLI csv pretty printer that uses column styling to maximize viewer enjoyment.
2021 · github.com · price checked November 2026
- 14

C parser and interpreter written in Python with automatic ctypes interface generation - PyCParser/README.md at master · albertz/PyCParser
2019 · github.com · price checked November 2026
- 15
Jq-Like Tool for MarkdownFree▲325mdq is a command-line tool for extracting and querying text from Markdown documents using a pipe-based syntax similar to jq.
2025 · github.com · price checked November 2026
- 16
PRQL 0.2Free▲378PRQL is a query language that offers an alternative to SQL.
2022 · github.com · price checked November 2026
- 17

A library adding some anti-Pythonic syntatic sugar to Python
2017 · github.com · price checked November 2026
- 18

- 19
PgQueuerFree▲376PgQueuer is a Python job queue that uses PostgreSQL for everything — queue storage, locking, notifications. No Redis, no RabbitMQ, no separate broker to operate. If your app already has Postgres, you already have the broker. After ~2 years and 26 minor releases, 1.0 ships today as the first stable release. Strict semver from here on. Thanks to everyone who contributed and left feedback!
2024 · github.com · price checked November 2026
- 20
BsedFree▲178Simple SQL-like syntax on top of Perl text processing.
2019 · github.com · price checked November 2026
- 21
GsubpyFree▲65Gsubpy is an interpreter that executes a subset of Python code, built from scratch in Go.
2023 · github.com · price checked November 2026
- 22

This is a Python library for reading and writing PDF files, built from scratch by a developer focused on learning and simplicity.
2022 · github.com · price checked November 2026
- 23
RefurbFree▲123A tool for refurbishing and modernizing Python codebases
2022 · github.com · price checked November 2026
- 24

All alternatives to Py-SQL-cleaner, paid too →About Py-SQL-cleaner →
Free means the product’s own site says it is free or offers a free plan, as read on the date shown. Plans change; check the site before you rely on one.