python-terraform
python-terraform is a Python wrapper module for the HashiCorp Terraform command-line tool, enabling programmatic interaction with Terraform from Python applications. It allows users to execute any Terraform command by calling corresponding methods on a Terraform instance, with return values containing the return code, stdout, and stderr. Key features include a 1-to-1 mapping between Terraform CLI commands and Python methods, support for passing arguments and options directly through method calls, automatic conversion of command-line options from dash format to underscore format for Python compatibility, and support for boolean flags, repeatable flags, and variable definitions via Python data structures like lists and dictionaries. By default, stdout and stderr are captured and returned for parsing, but real-time output streaming is available through the captureoutput option. The module also handles reserved Python keywords by appending cmd to method names, such as importcmd for the terraform import command. T