JONF parser/formatter in Python
Project description
JONF parser/formatter in Python
NOTE: This is an early alpha version
- JONF format docs: https://jonf.app/
- Formatter is implemented and tested
- Parser is not implemented yet
- Python example:
# pip install jonf
import jonf, textwrap
text = textwrap.dedent(
"""\
compare =
- true
= true
"""
).rstrip()
# TODO:
# assert jonf.parse(text) == {"compare": ["true", True]}
assert jonf.format({"compare": ["true", True]}) == text
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jonf-0.0.4.tar.gz
(3.8 kB
view hashes)
Built Distribution
jonf-0.0.4-py3-none-any.whl
(3.7 kB
view hashes)