pygohcl-1.2.6


توضیحات

Python bindings for Hashicorp HCL2 Go library
ویژگی مقدار
سیستم عامل -
نام فایل pygohcl-1.2.6
نام pygohcl
نسخه کتابخانه 1.2.6
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Lee Archer
ایمیل نویسنده l.archer@scalr.com
آدرس صفحه اصلی https://github.com/Scalr/pygohcl
آدرس اینترنتی https://pypi.org/project/pygohcl/
مجوز -
[![pygohcl python package](https://github.com/Scalr/pygohcl/actions/workflows/default.yml/badge.svg)](https://github.com/Scalr/pygohcl/actions/workflows/default.yml) # pygohcl Python wrapper for [hashicorp/hcl](https://github.com/hashicorp/hcl) (v2). ## Requirements The following versions are supported - 3.9, 3.10, 3.11, 3.12, 3.13, 3.14. ## Setup ```sh pip install pygohcl ``` ## Usage ```py >>> 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: ```sh pip install wheel python setup.py bdist_wheel ``` The wheel will be available in `./dist/`.


نیازمندی

مقدار نام
- cffi>=2.0.0


نحوه نصب


نصب پکیج whl pygohcl-1.2.6:

    pip install pygohcl-1.2.6.whl


نصب پکیج tar.gz pygohcl-1.2.6:

    pip install pygohcl-1.2.6.tar.gz