Script to convert a MySQL database dump to a sqlite3 friendly format. It is written in python using PyParsing.
There are many other scripts in many languages out there for this task (not-exhaustive list), like
but none worked for me, so I wrote another one.
It is the result of a one-time conversion effort, and I have no clue about SQL, so it is probably not very robust. The parser only parses the subset of SQL that my conversion happened to require. But I hope that the code is a bit clearer and easier to read and understand, than a few of the other scripts. It even contains a few tests.
It is published under the MIT Expat Licence.