Source Code

Python Module

The sources for the SQL parser and formatter module are hosted on Github. To clone the repository run:

git clone https://github.com/andialbrecht/sqlparse

Visit the project page | API Documentation

Some relevant parts of the Python module contain code from the pygments syntax highlighter. The underlying Python module uses a non-validating SQL parser. This approach makes it possible to parse even syntactically incorrect SQL statements.

The sqlparse module is released under the terms of the New BSD License.

Contributing

Please file bug reports and feature requests on the project site at https://github.com/andialbrecht/sqlparse/issues.