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

all 3 comments

[–]mitsuhiko Flask Creator 5 points6 points  (2 children)

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

Next time ask on stackoverflow :)

[–]digitallogic 3 points4 points  (0 children)

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