Skip to main content

Python bindings for Hashicorp HCL2 Go library

Project description

pygohcl python package

pygohcl

Python wrapper for hashicorp/hcl (v2).

Requirements

The following versions are supported - 3.6, 3.7, 3.8, 3.9.

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}))'}}}

Building locally

You can use the following commands to build a wheel for your platform:

pip install wheel
python setup.py bdist_wheel

The wheel will be available in ./dist/.

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

pygohcl-1.0.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

pygohcl-1.0.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pygohcl-1.0.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.9 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

pygohcl-1.0.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pygohcl-1.0.4-cp38-cp38-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

pygohcl-1.0.4-cp38-cp38-macosx_10_9_universal2.whl (1.5 MB view details)

Uploaded CPython 3.8macOS 10.9+ universal2 (ARM64, x86-64)

pygohcl-1.0.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.9 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ ARM64

pygohcl-1.0.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pygohcl-1.0.4-cp37-cp37m-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

pygohcl-1.0.4-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.9 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ ARM64

pygohcl-1.0.4-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pygohcl-1.0.4-cp36-cp36m-macosx_10_9_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file pygohcl-1.0.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pygohcl-1.0.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e055e8ac7109c89db77e442bd6dbb2328e8972bb54e8fa3d61e6263ea3c8ec9d
MD5 7c799cc66b25bd12a2194a16179d0b7d
BLAKE2b-256 6d6a17b1d41654dd566daa8ce7e41c170bde577ccc1d7cd2d8b62e1e08c46be1

See more details on using hashes here.

File details

Details for the file pygohcl-1.0.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pygohcl-1.0.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2601799d31908600c0777adfd95401a1c4e7f9316c208c1768c4ed1e2258e46e
MD5 183b40af51a999ca6b43e39b6a612509
BLAKE2b-256 9bb0982ad7f089c3ee561ea7ba404e64d8fc675c810c8908afcc47121f81e1ac

See more details on using hashes here.

File details

Details for the file pygohcl-1.0.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pygohcl-1.0.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 11643eb792628e59d674cb833defcd2fc1b65fc3cfb8bfc2c9cfa42b948accea
MD5 5cd3a6d17ef58cc9e699c7a3478f4203
BLAKE2b-256 d615c36eb559d63e6d4dc7a68dba034d4e20c0f69a9a96aa2f93efde88c1ad30

See more details on using hashes here.

File details

Details for the file pygohcl-1.0.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pygohcl-1.0.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d9f8e0e8fc7cec072322920eb0bef2c486f8a0c8fd7700637e153cdd2ab52436
MD5 17aeadeb30c4684d63abe7b16f012c51
BLAKE2b-256 1f048d6628b31573bd61029c93847211613cb582652f0bef1aa637e1100bf4b4

See more details on using hashes here.

File details

Details for the file pygohcl-1.0.4-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pygohcl-1.0.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 983d2a8ba3e33027ff0a9dc4c4327fea2dfc15b6145d166829d9108a50f5875a
MD5 29dabbd345a2a5be6a57c6ed19e8b49e
BLAKE2b-256 67d63f2b069e3e6094307709a57ff28ef0e1081f72dbe05de1b864a726918fad

See more details on using hashes here.

File details

Details for the file pygohcl-1.0.4-cp38-cp38-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pygohcl-1.0.4-cp38-cp38-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4923161bcc6c20d775a92db150521497ecdc34f33fd5e94a2519ad73ad30dfe4
MD5 e372901de7708e3ab10b4a386804db64
BLAKE2b-256 b4d52727a1e987664c52b852e97f99b55dd5f568cddbfa99682da800dbc452e5

See more details on using hashes here.

File details

Details for the file pygohcl-1.0.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pygohcl-1.0.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 34b40a1e930ae60198917ff86506e5e73812206a43f3f5376ebe8a777d57603a
MD5 4a7e73d5bef71baa1f6ea8de42bd1dfe
BLAKE2b-256 05bdda1fcde7921ecca2498e070ef3bf51b8fbe693147aa4a9efb83dbcf3ef52

See more details on using hashes here.

File details

Details for the file pygohcl-1.0.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pygohcl-1.0.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 abe827e12e8188881284373a163ae7ce32fd0834f21e6d03e14b1bbfa7963086
MD5 fffd86ea5d466ee23bd00ac26c90f3e2
BLAKE2b-256 bc58ca27c0c0f370e294388878fa4a847c3a702162599cef9b1a0f1281a714d4

See more details on using hashes here.

File details

Details for the file pygohcl-1.0.4-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pygohcl-1.0.4-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7bbb1f5d333c2b698c7e91c48fb42b46f552cbc35e4c910aa387f2f4d234102e
MD5 f84759344628485684a58f023058ed36
BLAKE2b-256 94d9f49330035105a75cab2fd85e3fee713135029c79fff7304a5f7541734094

See more details on using hashes here.

File details

Details for the file pygohcl-1.0.4-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pygohcl-1.0.4-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 755e9de4020c629857a2780dc99f52874df6a87d247c7755b4f09a164aeddcc0
MD5 39eff0aa0184fc03cca2f8608011470a
BLAKE2b-256 4379d4ca0ac10a4622224a75919b885cc76a2810e2768e21eff5b7f000c77206

See more details on using hashes here.

File details

Details for the file pygohcl-1.0.4-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pygohcl-1.0.4-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d4d7927c1c9f4571193293f0f4ea086f0dfe5dece5341a358c3121197b2d9346
MD5 f174f8b5e6bc6477cfacf538b649280d
BLAKE2b-256 39fbeb062eec271cca31fb5fa5ceb561547ab6f29d0da813a73f6dba5baf4c70

See more details on using hashes here.

File details

Details for the file pygohcl-1.0.4-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pygohcl-1.0.4-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cca6a4d9d3d046c4bb174e5fb8244205accc0e041b429b9fa225378fb8480d37
MD5 234ef74aa60e155d9ba0dfec2c834daf
BLAKE2b-256 a2adc206aa6b0f4979522cd2537eecd0b2313a4d37815e98156aca3e35d83c73

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page