macOS
brew install sqlparselocal Homebrew formula metadata
brew / rank 4849
Non-validating SQL parser. Version 0.5.5 via Homebrew; verified 2026-06-14. Also installable with debian: sudo apt install python-sqlparse-doc.
install
brew install sqlparselocal Homebrew formula metadata
sudo apt install python-sqlparse-docDebian stable package indexes · python-sqlparse-doc · source: deb.debian.org
overview
Non-validating SQL parser
history
sqlparse is a Python package and companion sqlformat command for non-validating SQL parsing, statement splitting, and SQL formatting.
The official documentation describes sqlparse as a non-validating SQL parser for Python with support for parsing, splitting, and formatting SQL statements. The official changelog records release 0.1.0 on April 8, 2009, making it one of the older small SQL tooling packages in the Python ecosystem.
The changelog shows steady maintenance across Python packaging eras: Python 3 compatibility work in release 0.1.6 on January 1, 2013, Python 2.7 and Python 3.3+ support boundaries in release 0.2.0 on July 20, 2016, and modern security and runtime updates such as 0.4.4 in 2023 and 0.5.0 in 2024.
sqlparse has remained useful because many tools need SQL tokenization and pretty-printing without connecting to a database or validating against a specific dialect. The supplied package-manager facts show it packaged by Homebrew and Debian/Ubuntu documentation packages, in addition to its Python packaging identity.
Developers use sqlparse as a library for parse, split, and format operations, and use the installed sqlformat executable for command-line formatting. Its non-validating design is important: it handles SQL text as tooling input rather than acting as a database-specific compiler.
Package nerds care about sqlparse because it is a small, durable dependency behind SQL-aware developer tooling. It also has the classic shape of a package-manager-friendly utility: a library, a CLI, a permissive license, documentation, and no need for a running database.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
sqlformat | executable | indexed executable | Discovered from the local executable index. |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:sqlparse |
|---|---|
| Version | 0.5.5 |
| Package manager | Homebrew |
| Homepage | https://github.com/andialbrecht/sqlparse |
| Last updated | 2026-06-14T15:13:50+02:00 |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
python-sqlparse-doc 0.5.3-1
documentation for non-validating SQL parser in Python
https://github.com/andialbrecht/sqlparse
sudo apt install python-sqlparse-docpython3-sqlparse 0.5.3-1
non-validating SQL parser for Python 3
https://github.com/andialbrecht/sqlparse
sudo apt install python3-sqlparsesqlformat 0.5.3-1
SQL formatting utility
https://github.com/andialbrecht/sqlparse
sudo apt install sqlformatpython-sqlparse-doc 0.4.4-1
documentation for non-validating SQL parser in Python
https://github.com/andialbrecht/sqlparse
sudo apt install python-sqlparse-docpython3-sqlparse 0.4.4-1
non-validating SQL parser for Python 3
https://github.com/andialbrecht/sqlparse
sudo apt install python3-sqlparsesqlformat 0.4.4-1
SQL formatting utility
https://github.com/andialbrecht/sqlparse
sudo apt install sqlformatsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.