HCL is a configuration language. pyhcl is a python parser for it.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Python HCL2 is a parser for HashiCorp Configuration Language version 2 (HCL2) written in Python using the Lark parsing toolkit. It allows developers to read, write, query, and manipulate HCL2 configuration files—such as those used by Terraform—directly from Python code or via command-line tools. ## Key Features - **HCL2 Parsing** — Converts HCL2 configuration files into Python dictionaries and vice versa. - **CLI Tool Suite** — Includes `hcl2tojson` and `jsontohcl2` for format conversion, plus `hq` for jq-like querying of HCL files. - **Programmatic Building** — Provides a `Builder` API to construct HCL2 documents from scratch within Python. - **Document Querying** — Offers `DocumentView` and `BlockView` for structured traversal and inspection of parsed HCL trees. - **Pipeline Architecture** — Supports advanced parsing pipelines with customizable stages for preprocessing and transformation. ## Philosophy The project focuses on providing a robust, Python-native interface to HCL2 that prioritizes correctness, usability, and extensibility for infrastructure-as-code workflows.
HCL parsing and encoding libraries for rust with serde support
HCL grammar for tree-sitter
HCL is the Hashicorp Configuration Language used in Terraform. This is a java Parser for parsing HCL and converting to Map objects.