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"]}'
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.1.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file formats-0.1.1.tar.gz.
File metadata
- Download URL: formats-0.1.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
feb7e3d268d7a4182872f739f7a1af833032c624ddd3121741c47ac37b94385d
|
|
| MD5 |
db646b5a7b846994b286a4c1941f3b80
|
|
| BLAKE2b-256 |
a6ed077153f3dd959881329c4c1c6a0a73d37d37b5bd193a37e2f8186a7375a9
|
File details
Details for the file formats-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: formats-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11365d57f267e1bc83776b6eb75635604ef2ba2f5f7a707263d626b81feb98fe
|
|
| MD5 |
f4008a68c93c036e649ece0386296048
|
|
| BLAKE2b-256 |
52a511c3f7c761c12cde79e97718b3297173f960b899fd6110629d370d23f6ff
|