Support multiple formats with ease
Project description
[<img src=”https://img.shields.io/pypi/v/formats.svg?style=flat”>](https://pypi.python.org/pypi/formats) [<img src=”https://img.shields.io/pypi/l/formats.svg?style=flat”>](https://github.com/redodo/formats/blob/master/LICENSE)
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"]}'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
formats-0.1.0a2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for formats-0.1.0a2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96b4dab402edf824022cbec8bbea8ce226e7ec6a08150c23f3b8636cd9ae3627 |
|
MD5 | 76e81918f88ee759c7f5e7b7dd9e17cd |
|
BLAKE2b-256 | 4b29c0779e69ab2580c77bcca6ee8f4b4505688411d03587dbce70db1e8ad910 |