📦 sqlparse - Parse SQL statements.
| Use Case | Command | Description |
|---|---|---|
| Import package | import sqlparse | Import the sqlparse module |
| Parse a SQL string | sqlparse.parse(sql) | Parse SQL into a tuple of statements |
| Format SQL | sqlparse.format(sql, reindent=True, keyword_case='upper') | Reformat SQL string |
| Split SQL statements | sqlparse.split(sql) | Split string containing multiple SQL statements |
__main__cliengine (package)exceptionsfilters (package)formatterkeywordslexersqltokensutils__all__ = ['engine', 'filters', 'formatter', 'sql', 'tokens', 'cli']
0.4.2
/usr/lib/python3/dist-packages/sqlparse/__init__.py
Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 15:01 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format