semvec/pypi-packages huggingface dataset:
jonf 0.0.7
JONF parser/formatter in Python
License: MIT
Requires Python: <4.0,>=3.8
Keywords: jonf, json, configuration, dsl, parser

# JONF parser/formatter in Python

> [!WARNING]
> JONF.py draft is **archived** in favor of [TTT](https://github.com/whyolet/ttt) - please check it.

NOTE: This is an early alpha version

- JONF format [docs](https://github.com/whyolet/jonf)
- Formatter is implemented and [tested](https://github.com/whyolet/jonf-py/blob/main/tests/test_format.py)
- Parser is not implemented yet
- Python example:

```python
# 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
```