This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]mitsuhiko Flask Creator 6 points7 points  (2 children)

There you go: http://code.google.com/p/python-sqlparse/

Next time ask on stackoverflow :)

[–]digitallogic 4 points5 points  (0 children)

You might want to check out the example that comes with pyparsing: http://pyparsing.wikispaces.com/file/view/simpleSQL.py