Python-hcl2

Latest version: v7.0.1

Safety actively analyzes 723144 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

4.3.1

Added

- Support for the braces in the next line. Thanks rout39574 ([129](https://github.com/amplify-education/python-hcl2/pull/129))
- Support for the ternary multi-line expression. Thanks seksham ([128](https://github.com/amplify-education/python-hcl2/pull/128))

4.3.0

Added

- Add tests for multiline comments inside a tuple ([118](https://github.com/amplify-education/python-hcl2/pull/118))
- Add `__begin_line__` and `__end_line__` meta parameters ([120](https://github.com/amplify-education/python-hcl2/pull/120))
- Add feature to parse comments in function args and list elems ([119](https://github.com/amplify-education/python-hcl2/pull/119))

Fixed

- Support empty heredoc and fix catastrophic backtracking issue ([117](https://github.com/amplify-education/python-hcl2/pull/117))

Changed

- Use Lark with its cache feature, instead of creating a standalone parser by erezsh ([53](https://github.com/amplify-education/python-hcl2/pull/53))
- Refactor tests ([114](https://github.com/amplify-education/python-hcl2/pull/114))
- Remove pycodestyle, add black, add numerous pre-commit checks ([115](https://github.com/amplify-education/python-hcl2/pull/115))

4.2.0

Added

- Added support of the `lark ≥1.0,<2`. Thanks KOLANICH ([100](https://github.com/amplify-education/python-hcl2/pull/100))

Changed

- Dropped support of the `lark <1.0`.
- Added code improvements

4.1.0

Added

- Added support of python 3.11

Changed

- Moved from setup.py to pyproject.toml. Thanks KOLANICH ([98](https://github.com/amplify-education/python-hcl2/pull/98))
- Updated the tox version in github actions to >=4.0.9,\<5.
- Dropped completely python 3.6.

4.0.0

Added

- Added PEP improvements
- Added support of python 3.10

Changed

- Dropped support of python 3.6
- Setup tox-gh-actions
- Migrated from nose to nose2

3.0.5

Fixed

- Fixed parsing of for expressions when there is a new line before the colon

Page 3 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.