{"categories":[{"label":"Linguistic","url":"https://skillfed.io/packages/category/text-processing-linguistic/2"},{"label":"Compilers","url":"https://skillfed.io/packages/category/software-development-compilers"}],"enrichment":{"capability":"Provides a tree-sitter parser grammar for HCL and Terraform, enabling incremental parsing and syntax analysis of HCL configuration files.","skillfed_tags":["terraform","parsing","syntax-tree"],"use_cases":["Build a Terraform linter or static analyzer that inspects HCL syntax and structure.","Extract metadata from Terraform configurations such as resource names and variable definitions.","Implement IDE features like syntax highlighting and code completion for HCL editors.","Validate HCL configuration files before deployment in CI/CD pipelines.","Migrate or refactor Terraform code by programmatically rewriting the syntax tree."],"what_it_does":"tree-sitter-hcl is a tree-sitter grammar binding for parsing HCL and Terraform configuration files in Python. It wraps the tree-sitter incremental parsing engine, which builds a concrete syntax tree that can be queried and traversed programmatically. The package ships as precompiled wheels for most platforms, eliminating the need to build the grammar from source in typical use.\n\nThe parser is designed for developers who need to analyze, transform, or validate HCL configurations programmatically\u2014common in infrastructure-as-code tooling, linters, and Terraform-related utilities. Testing against a real-world corpus of HCL files achieved 100% parse success rate across all files tested.","worth_installing":"Yes, if you need to parse or analyze HCL/Terraform files programmatically. The package is stable with no known vulnerabilities and permissively licensed. Install friction is moderate due to compilation, but prebuilt wheels are available for common platforms. The aging maintenance status is acceptable for a grammar binding\u2014updates are typically infrequent unless the underlying HCL specification changes."},"id":"tree-sitter-hcl","links":{"html":"https://skillfed.io/packages/tree-sitter-hcl","md":"https://skillfed.io/packages/tree-sitter-hcl.md","pypi":"https://pypi.org/project/tree-sitter-hcl/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-06-16","license_spdx":null,"license_treatment":"permissive","name":"tree-sitter-hcl","python_support":"supports_current","summary":"HCL and terraform grammar for tree-sitter"},"popularity":{"monthly_downloads":132104,"position":11565,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.0"}
