{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing"}],"enrichment":{"capability":"Parses HCL (HashiCorp Configuration Language) files into Python dictionaries, providing load/loads/dumps functions similar to the json module.","skillfed_tags":["configuration-parsing","terraform"],"use_cases":["Parse Terraform configuration files (0.12 and earlier) for programmatic inspection or transformation.","Convert HCL configuration files to JSON format using the included hcltool command-line utility.","Load HashiCorp tool configuration files into Python applications for dynamic configuration management.","Integrate HCL parsing into legacy systems that predate HCL2 and modern Terraform."],"what_it_does":"pyhcl is a Python parser for HCL (HashiCorp Configuration Language), the configuration syntax used by Terraform and other HashiCorp tools. It reads HCL files and converts them into Python dictionaries, mirroring the interface of Python's built-in json module with load, loads, and dumps functions. The parser is based on the original Go implementation and aims for compatibility with it.\n\nThe package is designed for HCL1 syntax and has been modified to work with Terraform 0.12, but does not support HCL2, which is used by modern Terraform versions. It includes a command-line tool (hcltool) to convert HCL files to JSON. The output structure is a plain Python dictionary with no built-in schema validation; users are expected to validate the result separately using external tools if needed.","worth_installing":"Yes, if you need to parse HCL1 or Terraform 0.12 configurations. The package is stable, has no dependencies, and installs easily. However, do not use it for modern Terraform (which requires HCL2 support); maintenance is aging with the last release in 2023-09-01, so expect limited support for new Python versions or edge cases. The copyleft license (MPL 2.0) requires disclosure of modifications if you redistribute derived work."},"id":"pyhcl","links":{"html":"https://skillfed.io/packages/pyhcl","md":"https://skillfed.io/packages/pyhcl.md","pypi":"https://pypi.org/project/pyhcl/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2023-09-01","license_spdx":null,"license_treatment":"copyleft","name":"pyhcl","python_support":"unspecified","summary":"HCL configuration parser for python"},"popularity":{"monthly_downloads":9784913,"position":1501,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.4.5"}
