HOCON parser for python
Project description
HOCON parser with json-like interface
Usage
Just like in python json module, you can load from a file or from a string to python dictionary/list:
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:
>>> 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. Check FEATURES.md to see which HOCON functionalities are already implemented and tested.
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
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
File details
Details for the file hocon2-0.4.0.tar.gz.
File metadata
- Download URL: hocon2-0.4.0.tar.gz
- Upload date:
- Size: 42.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5f9565c43acaec8536a169aebebe0fbc1d4430c1762176bfac7073b7ef5346a
|
|
| MD5 |
cd254922a0468ee6ded5158c7fd6afb9
|
|
| BLAKE2b-256 |
f085623f65caf77da899442f6ae21bcea4aca266ddc53fd4a40aca978287b864
|
File details
Details for the file hocon2-0.4.0-py3-none-any.whl.
File metadata
- Download URL: hocon2-0.4.0-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc8226bb7b7622a136e2f4b0df7c1f241c74c52ddc40446666517f4305e26be3
|
|
| MD5 |
20eebe119ab839ba940035b07c711d49
|
|
| BLAKE2b-256 |
4a9b9d2596f882ad77143ea07c9118aacc31089dd229e826b09e9b4f199689e6
|