Python client module/wrapper for Terraform interaction:

Please find the below Python wrapper/module for interacting with terraform and it is an alternative to CLI.

https://pypi.org/project/python-terraform/

https://github.com/beelit94/python-terraform/blob/master/README.md

 

Example:

from python_terraform import Terraform

tf = Terraform()

tf.init(reconfigure=True)

tf.apply(skip_plan=True)

tf.apply()