skip to navigation
skip to content

formats 0.1.1

Support multiple formats with ease

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"]}'
 
File Type Py Version Uploaded on Size
formats-0.1.1-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2015-02-11 6KB
formats-0.1.1.tar.gz (md5) Source 2015-02-11 3KB