1 2
sqlparse is a non-validating SQL parser module for Python. It provides support for parsing, splitting and formatting SQL statements.