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()
data = {
"compare": [
"true",
True,
]
}
# TODO:
# assert jonf.parse(text) == data
assert jonf.format(data) == text
print(jonf.format(data))
Output:
compare =
- true
= true
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.5.tar.gz
(3.9 kB
view hashes)
Built Distribution
jonf-0.0.5-py3-none-any.whl
(3.8 kB
view hashes)