tree-sitter-hcl
tree-sitter grammar for the HCL language
Try It Out
Try the parser in the playground
Example
Highlighting example/example.hcl:
Developing
It is recommended to use nix to fulfill all development dependencies. To activate the development environment simply run nix-shell in the project root.
Running Tests
To run tests simply run nix-shell --run 'tree-sitter test'.
Compliance
The directory example/real_world_stuff contains a corpus of hcl files that I found with the github query language:HCL for users coreos, hashicorp, oracle and terraform-community-modules.
tree-sitter parse --quiet --stat example/real_world_stuff/*/*
Total parses: 1892; successful parses: 1892; failed parses: 0; success percentage: 100.00%
Fuzzing
See the fuzzing repo for this parser
Attributions
Pages were copied from https://github.com/m-novikov/tree-sitter-sql
Metadata
Release files for tree-sitter-hcl 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tree_sitter_hcl-1.2.0.tar.gz | 55.2 kB | Without provenance | Details for tree_sitter_hcl-1.2.0.tar.gz |
Built distributions (wheels)
Total release size: 340.6 kB
Release files / tree_sitter_hcl-1.2.0.tar.gz
| Download URL | tree_sitter_hcl-1.2.0.tar.gz |
|---|---|
| Size | 55.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f86cb7a9fd5cb93d83e2f788ae155544464c47755d09190505de562c0d6ad1dd
|
|
BLAKE2b-256 checksum How to use checksums |
06c9ed79f643b0cec3e123171c09caffb6088a6111025a20fc69112b1468828b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / tree_sitter_hcl-1.2.0-cp310-abi3-win_arm64.whl
| Download URL | tree_sitter_hcl-1.2.0-cp310-abi3-win_arm64.whl |
|---|---|
| Size | 30.9 kB |
| Tags | CPython 3.10 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
689425894a69423301e0e05faff472317e7ab4013767bce4a33b9234778c275e
|
|
BLAKE2b-256 checksum How to use checksums |
bedee8dbfe36c70954dac62da4ca9a2fcff067eb097b48bd4b55fc836b2efd81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / tree_sitter_hcl-1.2.0-cp310-abi3-win_amd64.whl
| Download URL | tree_sitter_hcl-1.2.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 32.6 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4ac026d83d72216444963dfb603fc3e1806aca0a5cb3c236d14e82f20fb7b5de
|
|
BLAKE2b-256 checksum How to use checksums |
27a6f15096c138eccc0c68b7254c75a8121bab326b62920f2d259079b2d6a7d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / tree_sitter_hcl-1.2.0-cp310-abi3-musllinux_1_2_x86_64.whl
| Download URL | tree_sitter_hcl-1.2.0-cp310-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 51.6 kB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
5b6c6aaccfca2fde4fcce52aa88d8c3756f44d407b8584fc3cff581d8765b4b7
|
|
BLAKE2b-256 checksum How to use checksums |
f440cc843f07210caa0a2e2a2b3581f93c917ed2139cb0851b32f4852141c95c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / tree_sitter_hcl-1.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | tree_sitter_hcl-1.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 54.3 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
915763da6630610c2efb7afe13145f50feb8043732a74f9bae78811212578d3d
|
|
BLAKE2b-256 checksum How to use checksums |
ee0a01bb627044d273e8e506edff8ab773e562ba447b5790b789f62e47a5e754
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / tree_sitter_hcl-1.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | tree_sitter_hcl-1.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 54.1 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
d2e9f3cfb6694e33f5b880e74bed842398cbacd21024251e2ec90f19dee6a64d
|
|
BLAKE2b-256 checksum How to use checksums |
1235b8f87fffb5527c85f5f292486e53f64963846b94cf3ea258f4b850480f18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / tree_sitter_hcl-1.2.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | tree_sitter_hcl-1.2.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 31.2 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
03678762e8b78d717187848edebed95e4c31a54e14f24dec97555f47fb440e28
|
|
BLAKE2b-256 checksum How to use checksums |
8e8b7618448cde58ca6fbefcf210ef98d7c4bd7d2b54b3e3d5cddd947c804a18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / tree_sitter_hcl-1.2.0-cp310-abi3-macosx_10_9_x86_64.whl
| Download URL | tree_sitter_hcl-1.2.0-cp310-abi3-macosx_10_9_x86_64.whl |
|---|---|
| Size | 30.6 kB |
| Tags | CPython 3.10 abi3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
9ae35084a3dc12272f941b424eadd8a44cf2e0e9345b020330cf8db6f67d3524
|
|
BLAKE2b-256 checksum How to use checksums |
77347ccb58107ae0d38e0a8f05dedbd990780eb7d429f227725c15fee314cdcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for tree-sitter-hcl 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.