{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/4"}],"enrichment":{"capability":"Parses HCL2 configuration files (such as Terraform configs) into Python dictionaries using a Lark-based parser.","skillfed_tags":["hcl2-parser","terraform","infrastructure-as-code"],"use_cases":["Parse Terraform .tf files to extract resource definitions and configuration values for analysis or validation","Build tooling that reads HCL2 configs to generate documentation or reports about infrastructure","Integrate HCL2 parsing into policy-as-code or security scanning tools that inspect infrastructure definitions","Convert HCL2 configurations to other formats (JSON, YAML) for interoperability with non-Terraform tools"],"what_it_does":"bc-python-hcl2 is a HCL2 parser for Python that converts HashiCorp Configuration Language v2 files into native Python dictionaries. It uses Lark, a parsing toolkit, to handle the HCL2 grammar and is commonly used to programmatically read and process Terraform configuration files. The package is a maintained fork of the original python-hcl2 project, officially supported by Bridgecrew, and supports Python 3.8 through 3.12.\n\nThe parser is designed specifically for HCL2 and does not support the older HCL v1 syntax. It provides a simple API\u2014typically just calling `hcl2.load()` on an open file\u2014making it straightforward to integrate into tools that need to inspect or manipulate infrastructure-as-code configurations programmatically.","worth_installing":"Yes, if you need to parse HCL2 files programmatically. The package has low install friction, permissive licensing, and no known vulnerabilities. However, note that maintenance is aging (last release 396 days ago) and the project has minimal community activity (5 stars). It remains suitable for stable use cases but may not receive rapid updates for new HCL2 features or edge cases."},"id":"bc-python-hcl2","links":{"html":"https://skillfed.io/packages/bc-python-hcl2","md":"https://skillfed.io/packages/bc-python-hcl2.md","pypi":"https://pypi.org/project/bc-python-hcl2/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-07-14","license_spdx":null,"license_treatment":"permissive","name":"bc-python-hcl2","python_support":"supports_current","summary":"A parser for HCL2"},"popularity":{"monthly_downloads":4595690,"position":2278,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.4.3"}
