A parser for HCL2
Maintained. Last release 3 weeks ago, commits in 7 of the last 26 weeks. Weaker on contributor spread.
pip install python-hcl2Python HCL2
A parser for HCL2 written in Python using
Lark. It can be used as a Python library or through its CLI tools:
hcl2tojson, jsontohcl2, and hq — a jq-like query tool for HCL files.
Supports HCL2 only (not backwards compatible with HCL v1) and works with any HCL2 config file such as Terraform.
About Amplify
Amplify builds innovative and compelling digital educational products that empower teachers and students across the country. We have a long history as the leading innovator in K-12 education - and have been described as the best tech company in education and the best education company in tech. While others try to shrink the learning experience into the technology, we use technology to expand what is possible in real classrooms with real students and teachers.
Learn more at https://www.amplify.com
Getting Started
Prerequisites
python-hcl2 requires Python 3.8 or higher to run.
Installing
This package can be installed using pip
pip3 install python-hcl2
To install the CLI tools (hcl2tojson, jsontohcl2, hq) globally without affecting your project environments, use :