pyhcl2
pyhcl2 is a python based interpreter library for the HCL 2 configuration language used by Terraform and other tools.
Features
- Parse HCL files or expressions into an AST (Abstract Syntax Tree).
- Generate topological generations of blocks based on dependencies.
- Evaluate the AST Nodes with a given set of variables and intrinsic functions.
- Transform the AST Nodes into a Pydantic Model, with validation.
Credits
This project is based on work by
Metadata
Release files for pyhcl2 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyhcl2-2.0.1.tar.gz | 19.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyhcl2-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.8 kB
Release files / pyhcl2-2.0.1.tar.gz
| Download URL | pyhcl2-2.0.1.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e24a960d57cc1e611e022f6140a9129aefe3df43229e850da10b53dbb6babfc1
|
|
BLAKE2b-256 checksum How to use checksums |
3b02599e47bc620a15abacc181dc9d345f6b3627139ab1c6272b630e4c7dd740
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 31, 2026.
Transparency logRelease files / pyhcl2-2.0.1-py3-none-any.whl
| Download URL | pyhcl2-2.0.1-py3-none-any.whl |
|---|---|
| Size | 23.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5acbc4396b786f044319fdbab34f8c242330265f2a8ff4db2000af50b39c217a
|
|
BLAKE2b-256 checksum How to use checksums |
3d3b00c35fddc2d725b2c527706996b5381c723def0063cb5772ee06b65574a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 31, 2026.
Transparency log