Skip to main content

terraform-parser

PyPI Latest Release Build Status Coverage Status Downloads

Parse Terraform scripts into JSON

Status

Dec 2022 - This an experimental parser that can parse HCL2

Problem

I am uncertain if configuration/template language, such as Terraform, should include scripting. It is beneficial to have a simple configuration, albeit redundant, for VCS tracking and simple diff for merge reviews.

I would advocate a high level langauge (HLL), like Python, be used to produce the Terraform configuration with both HLL and Terraform be included in the repository. HLL is familiar, and the Terraform changes are easy to review.

Using an HLL for Terraform generation removes the need for the quirky template expressions, complex expressions, and modules.

The hope is to

  • parse terraform into Json data
  • merge data from different terraform to single spec
  • allow Python to modify data easily
  • write out terraform (in diff-friendly way)

References

Metadata

Release files for terraform-parser 0.580.24088

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for terraform-parser 0.580.24088
File Size Uploaded Provenance
terraform-parser-0.580.24088.tar.gz 13.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for terraform-parser 0.580.24088
File Interpreter ABI Platform
terraform_parser-0.580.24088-py3-none-any.whl Python 3 none any Details

Total release size: 27.6 kB

Release files / terraform-parser-0.580.24088.tar.gz

Download URL terraform-parser-0.580.24088.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cdd11813d95e7d6946e727cfa16f4f27549b36f599b0d308897360e4b1f67b3f
BLAKE2b-256 checksum
How to use checksums
add0cd19120d0e05b0a74ab2e0fc60870c5b068cb293095e64216461906243dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.6

Release files / terraform_parser-0.580.24088-py3-none-any.whl

Download URL terraform_parser-0.580.24088-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afb21528486a29bf92f705fc61be86c440cba5012d1ce661b281f32cddf5f404
BLAKE2b-256 checksum
How to use checksums
4f1da19700952bc08cfff0805515d8a4953201cd2b2d27cfe5d11f8b0facff56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.6

Security for terraform-parser 0.580.24088

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page