Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 695 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 695 Bytes

python-dhall

python-dhall contains (WIP) Dhall bindings for Python using the rust implementation.

Install using pip (with python-3.6 or python-3.7 and libssl.so.1.1 as provided by fedora and ubuntu):

python3 -m pip install --user dhall

The binding implements a loads function that returns a python object similar to JSON:

python3 -c 'import dhall; print(dhall.loads("""{ version = 21 + 21, name = "a test", req = ["itemA", "itemB"], bool = True && False }"""))'
{'bool': False, 'name': 'a test', 'req': ['itemA', 'itemB'], 'version': 42}