JONF parser/formatter in Python
Project description
JONF parser/formatter in Python
[!WARNING] JONF.py draft is archived in favor of TTT - please check it.
NOTE: This is an early alpha version
# 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.7.tar.gz
(3.9 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
jonf-0.0.7-py3-none-any.whl
(3.8 kB
view details)
File details
Details for the file jonf-0.0.7.tar.gz.
File metadata
- Download URL: jonf-0.0.7.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.15.0-144-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3691e6ebeeda97f33b247e94ec7e1e234cc94fb19b710f64d640843b4f627e97
|
|
| MD5 |
f212f8e784d08c4c3e0a4b316469718d
|
|
| BLAKE2b-256 |
c9c8f808775356d880fca33d962c54a2b0c41d605d0f053db3237751cfa26c8a
|
File details
Details for the file jonf-0.0.7-py3-none-any.whl.
File metadata
- Download URL: jonf-0.0.7-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.15.0-144-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f59923d1e9b4d1330a0e25438e1202da4561990b97a1b438971c0cdefb83e75
|
|
| MD5 |
58cbdda500e7620370e413a2ecfde321
|
|
| BLAKE2b-256 |
b5e7d7ffbec6a2534700212e6ebecaaf9085335a73dfb4b00e12dea8f930c748
|