NEEDED: SQL Parser callable from python?

Simon Brunning SBrunning at
Tue Aug 27 13:25:23 CEST 2002

> From:	mkent at [SMTP:mkent at]
> I'm working on a python interface to a home-grown legacy flat-file
> database.
> I've gotten to the point where I'm considering adding an SQL layer to the
> API.
> Can anyone give me a pointer to an open source SQL parser callable from
> python?
> I will need to use it to translate standard SQL into python code callbacks
> to the functions/methods specific to the legacy DB API.
How about giving SimpleParse a bash? SimpleParse is here -
>, and you can find a BNF grammar for SQL here -

Good luck, and tell us how you get on. ;-)

Simon Brunning
TriSystems Ltd.
sbrunning at

The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.

More information about the Python-list mailing list