Metadata-Version: 2.1
Name: jonf
Version: 0.0.6
Summary: JONF parser/formatter in Python
Home-page: https://github.com/whyolet/jonf-py
License: MIT
Keywords: jonf,json,configuration,dsl,parser
Author: Denis Ryzhkov
Author-email: denisr@denisr.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Project-URL: Documentation, https://jonf.app/
Project-URL: Repository, https://github.com/whyolet/jonf-py
Description-Content-Type: text/markdown

# JONF parser/formatter in Python

NOTE: This is an early alpha version

- JONF format docs: https://jonf.app/
- Formatter is implemented and [tested](https://github.com/whyolet/jonf-py/blob/main/tests/test_format.py)
- Parser is not implemented [yet](https://jonf.app/#roadmap)
- 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
```

