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.6.tar.gz
(3.9 kB
view details)
Built Distribution
jonf-0.0.6-py3-none-any.whl
(3.8 kB
view details)
File details
Details for the file jonf-0.0.6.tar.gz
.
File metadata
- Download URL: jonf-0.0.6.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.13.0-39-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26b8b9e9186429ea40027faa719353336fb71f57b1d7f6cb9dc91ee299e83e5b |
|
MD5 | 46e4ba77b84191bc1432951c13acb1b8 |
|
BLAKE2b-256 | ea058395b358b06567e941642743872476b149a790398b902e049aac198b1bd7 |
File details
Details for the file jonf-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: jonf-0.0.6-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.13.0-39-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58ea61b94873e3361aa6ecc28168f45a177725b99dc20e2355f58fd79af195d4 |
|
MD5 | 3e4912a011910a8a762a6e05d523dfb5 |
|
BLAKE2b-256 | 8c06e9220c629ef919d5ded17a736aa3c7fcd9cf2fad7fd42a5fe19e4d47f0c0 |