qmetrics.net

Python-Terrascript

Python package for Terraform JSON configurations

Build & DeploymentCloud Infrastructure ManagementNo commits in 18+ monthsDesktop/CLI app

Python-Terrascript has had no code changes for over 18 months (last commit 2 years ago).

Python-Terrascript generates Terraform configuration in JSON from Python scripts. It adds Python control flow, functions, and libraries when defining infrastructure.

Overview

Python-Terrascript is a Python package that emits Terraform configuration files in JSON format. Authors write infrastructure in Python instead of hand-editing HCL, which allows if/else, loops, exceptions, richer string handling, and reuse through Python functions.

The package can draw on the Python standard library and third-party packages while building configs. A PROVIDERS.md file lists supported Terraform providers for generated output.

Install from PyPI with pip or from the GitHub tree using setup.py on master or develop branches. Released Terrascript versions align with specific Terraform generations, including lines aimed at Terraform 0.13 namespaces and provider blocks.

Python functions may stand in for Terraform modules in supported workflows. Output targets Terraform's JSON syntax documented by HashiCorp.

Terrascript release lines pair with Terraform 0.11, 0.12, and 0.13 feature sets rather than mixing formats across major Terraform versions.

Key features

  • Terraform JSON generation
  • Python control structures
  • Provider coverage list
  • PyPI and source install
  • Python functions as modules
  • Third-party Python imports
  • Version-matched releases
  • Registry provider support

Use cases

  • Programmatic IaC generation
  • Dynamic provider configs
  • Large Terraform JSON outputs
  • Python-native infra templates
  • Multi-environment generation

Similar software

Coolify

Self-hostable PaaS for apps, databases, and one-click services

Coolify deploys static sites, databases, and full-stack apps on servers you control, with a dashboard similar to managed hosting platforms. Configurations stay on your machines over SSH.

★ 66.7k⟳ todayApache-2.0
Build & DeploymentSelf-hostable
Open Source Alternative to:HerokuNetlify+3

Dokploy

Self-hostable PaaS for apps and databases

Dokploy is a self-hostable platform-as-a-service for deploying applications and databases on your own VPS. It supports Docker, Compose, multi-server setups, backups, and monitoring.

★ 38.7k⟳ yesterdayApache-2.0
Build & DeploymentSelf-hostable
Open Source Alternative to:HerokuNetlify+3

Dokku

Docker-powered mini PaaS on your own hardware

Dokku is a small platform-as-a-service you install on a Linux VM. You push Git-based, Heroku-style apps that build with buildpacks and run in Docker containers.

★ 32.2k⟳ yesterdayMIT
Build & DeploymentSelf-hostable
Open Source Alternative to:HerokuNetlify+3

Colima

Minimal container runtimes on macOS and Linux

Colima launches Lima-based VMs with Docker, containerd, Kubernetes, or Incus so you can run containers locally on Mac or Linux with simple defaults and port forwarding.

★ 31.9k⟳ 1 month agoMIT
Build & DeploymentDesktop/CLI app
Open Source Alternative to:Docker Desktop

OpenTofu

Open-source infrastructure as code engine

OpenTofu is an open-source tool for building, changing, and versioning infrastructure safely. It manages popular cloud providers and custom in-house systems using declarative configuration.

★ 31k⟳ todayMPL-2.0
Build & DeploymentDesktop/CLI app
Open Source Alternative to:Terraform

Pulumi

Open-source infrastructure as code with familiar programming languages

Pulumi provisions and manages cloud resources through programs written in TypeScript, Python, Go, Java, and other languages. A CLI deploys stacks to AWS, Azure, Google Cloud, Kubernetes, and hundreds of providers.

★ 26k⟳ yesterdayApache-2.0
Build & DeploymentDesktop/CLI app
Open Source Alternative to:Terraform