Python bindings for Hashicorp HCL2 Go library
Project description
pygohcl
Python wrapper for hashicorp/hcl (v2).
Requirements
The following versions are supported - 3.6, 3.7, 3.8.
Setup
pip install pygohcl
Usage
>>> import pygohcl
>>> pygohcl.loads("""variable "docker_ports" {
... type = list(object({
... internal = number
... external = number
... protocol = string
... }))
... default = [
... {
... internal = 8300
... external = 8300
... protocol = "tcp"
... }
... ]
... }""")
{'variable': {'docker_ports': {'default': [{'external': 8300, 'internal': 8300, 'protocol': 'tcp'}], 'type': 'list(object({internal=numberexternal=numberprotocol=string}))'}}}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for pygohcl-1.0.0rc4-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de3367ad2d71725b8d3376654600c52d708177f41c63e09b9b21af52abec2ff7 |
|
MD5 | f6c17d1409813a92c556cb70e326fef1 |
|
BLAKE2b-256 | 1c1cc6894cb792b81e6058d86f2a9f7188516089b2b9d8b5b6ce1e40b0d2db7a |
Close
Hashes for pygohcl-1.0.0rc4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 268275217aa1368a4c92576b20a10040d3c4e5933ab65f083926be7f5ce1e5a9 |
|
MD5 | a322821c677851ab8323df4dd52c4728 |
|
BLAKE2b-256 | a30e7476b0d0a3d5d850fb0262d022864561706a00a32d7d045590e3f6b6968f |
Close
Hashes for pygohcl-1.0.0rc4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79ed89ea21bbc0a91365797e6d2b348a09a8cf45f8c028875123ccc888e35464 |
|
MD5 | e2939624dbe86a8ef9b233ca85c2f188 |
|
BLAKE2b-256 | 6d289ab3a97c7aa1f724dbdbd32046ec528cb61dbdf1d68adb0388d55c8bd9be |