ARFF to Any Database Importer Using SQLAlchemy and Pyparsing

ARFF is the data format used by the WEKA Machine learning toolkit. Many months ago I'd unsuccessfully tried to write a ARFF to SQL converter. This time around the new found knowledge of SQLAlchemy and Pyparsing module made the task very easy. Also, SQLAlchemy's ability to generate DB specific table creation and insert statements makes this recipe appealing to users of any DB. See this list for supported databases. You can view/download this little recipe from Python Cookbook.

See Also

Python

© 2008 Pradeep Kishore Gowda (C-C by SA 2.5-IN) ◊ Made with python, YUI on a mac.