Metadata-Version: 2.4
Name: hocon2
Version: 0.4.0
Summary: HOCON parser for python
Project-URL: Homepage, https://github.com/myjniak/hocon
Project-URL: Source, https://github.com/myjniak/hocon
Project-URL: Changelog, https://github.com/myjniak/hocon/blob/main/CHANGELOG.md
Author-email: Michał Szajkowski <myjniak@gmail.com>
License-File: LICENSE
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: File Formats
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# HOCON parser with json-like interface

[![codecov](https://codecov.io/github/myjniak/hocon/graph/badge.svg?token=ZY5KK0BSJY)](https://codecov.io/github/myjniak/hocon)

## Usage

Just like in python json module, you can load from a file or from a string to python dictionary/list:

```python
import hocon

data = """
animal.favorite: badger
key : ${animal.favorite} is my favorite animal
"""
dictionary = hocon.loads(data)
```

And you can dump it back to string:

```pycon
>>> import json
>>> print(json.dumps(dictionary, indent=4))
{
    "animal": {"favorite": "badger"},
    "key": "badger is my favorite animal"
}
```

## Specification

The library has NOT YET been tested according to each and every statement in
the [hocon specification](https://github.com/lightbend/config/blob/v1.4.3/HOCON.md).
Check [FEATURES.md](https://github.com/myjniak/hocon/blob/main/FEATURES.md) to see which HOCON functionalities are already implemented and tested.
