{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/15"}],"enrichment":{"capability":"Wraps the Terraform command-line tool, allowing you to invoke Terraform operations (apply, plan, destroy, import, etc.) directly from Python code and capture their output.","skillfed_tags":["infrastructure-as-code","terraform-wrapper","cli-automation"],"use_cases":["Automate infrastructure provisioning workflows in Python applications without shelling out to Terraform directly.","Build CI/CD pipelines that apply or plan Terraform configurations and parse the results programmatically.","Wrap Terraform operations in Python error handling and logging for better observability.","Generate Terraform commands dynamically based on runtime configuration and pass them through the wrapper.","Test Terraform configurations by running plan/validate commands and inspecting their output from Python."],"what_it_does":"python-terraform is a thin wrapper around the Terraform CLI that lets you run Terraform commands from Python code instead of shell scripts. It handles argument and option mapping (converting Python method calls and keyword arguments into Terraform CLI syntax) and captures stdout, stderr, and return codes for programmatic inspection. The wrapper supports all Terraform commands and provides special handling for flag-style options, boolean values, and multi-value parameters like `-target` and `-var`.\n\nYou instantiate a Terraform object, optionally specifying a working directory and default variables, then call methods named after Terraform commands (e.g., `.apply()`, `.plan()`, `.destroy()`). The package handles the syntactic quirks of Terraform's option design\u2014distinguishing between flag-style options (like `-no-color`) and value options (like `-refresh=true`)\u2014so you don't have to construct command strings manually. By default it captures output; you can disable capture to see real-time output in the terminal.","worth_installing":"Yes, if you need to invoke Terraform from Python and can tolerate aging maintenance. The package is stable and has no known vulnerabilities, but the last release was 2019-06-21. It works for basic Terraform automation, but verify compatibility with your Terraform version and Python environment before production use. High install friction (requires Terraform on PATH) is expected for this use case."},"id":"python-terraform","links":{"html":"https://skillfed.io/packages/python-terraform","md":"https://skillfed.io/packages/python-terraform.md","pypi":"https://pypi.org/project/python-terraform/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2019-06-21","license_spdx":null,"license_treatment":"permissive","name":"python-terraform","python_support":"unspecified","summary":"This is a python module provide a wrapper of terraform command line tool"},"popularity":{"monthly_downloads":236851,"position":8973,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.10.1"}
