No project description provided
Project description
hcl2-ast
A HCL2 parser based on python-hcl2 that produces an Abstract Syntax Tree.
Note: This project is in an early stage. It does not currently cover all HCL2 syntax features and does not have good test coverage.
Usage
from hcl2_ast import parse_string
module = parse_string("""
task "say-hello" {
to = "World"
}
""")
print(module.pformat())
Outputs:
Module(body=[
Block(
name='task',
args=[
'say-hello',
],
body=[
Attribute(key='to', value=Literal(value='World')),
]
),
])
Compatibility
hcl2-ast requires Python 3.6 or higher.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hcl2-ast-0.1.0-1.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for hcl2_ast-0.1.0_1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c518d866a7dd1d1f6adeab49c1ec96eb5dcdb89680868780a95ca5aeb24e9dc |
|
MD5 | d27346d5b9a751bd797c30b14ce1a057 |
|
BLAKE2b-256 | 3bc915118eaddba8e4c85153fc9f75a60b147712592a86d2fc063f538b8eb160 |