{ "info": { "author": "Amplify Education", "author_email": "github@amplify.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "[![Codacy Badge](https://api.codacy.com/project/badge/Grade/dbdef52c39fb47c896aa1d7876a3a965)](https://www.codacy.com?utm_source=github.com&utm_medium=referral&utm_content=amplify-education/python-hcl2&utm_campaign=Badge_Grade)\n[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/dbdef52c39fb47c896aa1d7876a3a965)](https://www.codacy.com?utm_source=github.com&utm_medium=referral&utm_content=amplify-education/python-hcl2&utm_campaign=Badge_Coverage)\n[![Build Status](https://travis-ci.org/amplify-education/python-hcl2.svg?branch=master)](https://travis-ci.org/amplify-education/python-hcl2)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/amplify-education/python-hcl2/master/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/python-hcl2.svg)](https://pypi.org/project/python-hcl2/)\n[![Python Versions](https://img.shields.io/pypi/pyversions/python-hcl2.svg)](https://pypi.python.org/pypi/python-hcl2)\n[![Downloads](https://img.shields.io/badge/dynamic/json.svg?label=downloads&url=https%3A%2F%2Fpypistats.org%2Fapi%2Fpackages%2Fpython-hcl2%2Frecent&query=data.last_month&colorB=brightgreen&suffix=%2FMonth)](https://pypistats.org/packages/python-hcl2)\n\n# Python HCL2\n\nA parser for [HCL2](https://github.com/hashicorp/hcl2/blob/master/hcl/spec.md) written in Python using \n[Lark](https://github.com/lark-parser/lark). This parser only supports HCL2 and isn't backwards compatible\nwith HCL v1. It can be used to parse any HCL2 config file such as Terraform.\n\n## About Amplify\n\nAmplify builds innovative and compelling digital educational products that empower teachers and students across the \ncountry. We have a long history as the leading innovator in K-12 education - and have been described as the best tech \ncompany in education and the best education company in tech. While others try to shrink the learning experience into \nthe technology, we use technology to expand what is possible in real classrooms with real students and teachers.\n\nLearn more at \n\n## Getting Started\n### Prerequisites\n\npython-hcl2 requires Python 3.6.0 or higher to run.\n\n### Installing\n\nThis package can be installed using `pip`\n\n```sh\npip3 install python-hcl2\n```\n\n### Usage\n```python\nimport hcl2\nwith(open('foo.tf', 'r')) as file:\n dict = hcl2.load(file)\n```\n\n## Building From Source\n\nFor development, `tox>=2.9.1` is recommended.\n\n### Running Tests\n\npython-hcl2 uses `tox`. You will need to install tox with `pip install tox`.\nRunning `tox` will automatically execute linters as well as the unit tests.\n\nYou can also run them individually with the `-e` argument.\n\nFor example, `tox -e py37-unit` will run the unit tests for python 3.7\n\nTo see all the available options, run `tox -l`.\n\n## Responsible Disclosure\nIf you have any security issue to report, contact project maintainers privately.\nYou can reach us at \n\n## Contributing\nWe welcome pull requests! For your pull request to be accepted smoothly, we suggest that you:\n1. For any sizable change, first open a GitHub issue to discuss your idea.\n2. Create a pull request. Explain why you want to make the change and what it\u2019s for.\nWe\u2019ll try to answer any PR\u2019s promptly.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/amplify-education/python-hcl2", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "python-hcl2", "package_url": "https://pypi.org/project/python-hcl2/", "platform": "", "project_url": "https://pypi.org/project/python-hcl2/", "project_urls": { "Homepage": "https://github.com/amplify-education/python-hcl2" }, "release_url": "https://pypi.org/project/python-hcl2/0.1.4/", "requires_dist": null, "requires_python": ">=3.6.0", "summary": "A parser for HCL2", "version": "0.1.4" }, "last_serial": 5841853, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ccf621a81b3c5e380c597ce94aab2ada", "sha256": "5b1f8dd74400c0bc2275db915e4e96dbf0f22e442e39a3c60732a52d98b2df8e" }, "downloads": -1, "filename": "python_hcl2-0.1.0.tar.gz", "has_sig": false, "md5_digest": "ccf621a81b3c5e380c597ce94aab2ada", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 7262, "upload_time": "2019-08-27T03:41:52", "url": "https://files.pythonhosted.org/packages/a9/bb/105c0ac18e5796c82a703af28592182b08def6d80f3656ab931929f50b04/python_hcl2-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "742cf167ab88fe5fa26af3a4b0fd5d5d", "sha256": "2bc4b80ccbcb94690863ad664229426dfb91f5554a4dae0c0ef9fa8f724a9603" }, "downloads": -1, "filename": "python-hcl2-0.1.1.tar.gz", "has_sig": false, "md5_digest": "742cf167ab88fe5fa26af3a4b0fd5d5d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 8025, "upload_time": "2019-08-27T15:43:45", "url": "https://files.pythonhosted.org/packages/f7/cf/1cd2a80a55864c3d0f8d5e3f962192697fb5c6e60b3db7ed4011de0c40a3/python-hcl2-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "074c1eb9bdf4adf20cb58e05e0a05778", "sha256": "dd51cbb7836d0eb98424198e4637982a142e56e8e47740fb503f9ed663d50707" }, "downloads": -1, "filename": "python-hcl2-0.1.2.tar.gz", "has_sig": false, "md5_digest": "074c1eb9bdf4adf20cb58e05e0a05778", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 8022, "upload_time": "2019-08-29T16:57:18", "url": "https://files.pythonhosted.org/packages/57/41/d6e6339a6b6ec4451a49752f60a839831e3548fcea65aaa1203e6cba2f0d/python-hcl2-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "a58b31e57c275bcbf35e954143f8aa8d", "sha256": "a1b3f78ac19957537042c9fbca66a457be827d1cea14622fa7aad365baf8da20" }, "downloads": -1, "filename": "python-hcl2-0.1.3.tar.gz", "has_sig": false, "md5_digest": "a58b31e57c275bcbf35e954143f8aa8d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 8676, "upload_time": "2019-08-30T16:52:23", "url": "https://files.pythonhosted.org/packages/b7/83/d895a77e2a9bcff4c3219fed89358ab96ebe1c350944cb7c72992408c725/python-hcl2-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "1c82ec7f9a998000d7ef1c4da79065f2", "sha256": "b4b8992e3aa9e07904ca8e2a40b9e1ca5c2b38f4a9635a3332839b5d171f40a9" }, "downloads": -1, "filename": "python-hcl2-0.1.4.tar.gz", "has_sig": false, "md5_digest": "1c82ec7f9a998000d7ef1c4da79065f2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 8674, "upload_time": "2019-09-17T13:53:24", "url": "https://files.pythonhosted.org/packages/15/3b/eacc1ad2cb456613b7972b62bc25175497730f10f3ab2c2e838105361bbd/python-hcl2-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1c82ec7f9a998000d7ef1c4da79065f2", "sha256": "b4b8992e3aa9e07904ca8e2a40b9e1ca5c2b38f4a9635a3332839b5d171f40a9" }, "downloads": -1, "filename": "python-hcl2-0.1.4.tar.gz", "has_sig": false, "md5_digest": "1c82ec7f9a998000d7ef1c4da79065f2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 8674, "upload_time": "2019-09-17T13:53:24", "url": "https://files.pythonhosted.org/packages/15/3b/eacc1ad2cb456613b7972b62bc25175497730f10f3ab2c2e838105361bbd/python-hcl2-0.1.4.tar.gz" } ] }