Support multiple formats with ease
Project description
Installation via PIP:
pip install --pre formats
Quick usage overview:
>>> import formats >>> formats.discover() >>> text = ''' ... awesome_things: ... - dodos ... - pythons ... ''' >>> formats.parse('yaml', text) {'awesome_things': ['dodos', 'pythons']} >>> formats.convert('yaml', 'json', text) '{"awesome_things": ["dodos", "pythons"]}'