Skip to main content

Describe your Terraform project using Python with inheritance

Project description

Snakecraft: Generate Terraform code from Python

Have you ever felt writing Terraform code was very verbose? Have you ever disliked passing variables into layers of modules?

Snakecraft allows you to write your Terraform configuration in Python and generate the necessary Terraform code (as a .tf.json file).

Python 3.6 is required at least.

Installing and running Snakecraft

You can install Snakecraft using pip:

pip install -U snakecraft

Afterwards, you can author Snakecraft modules/packages in Python code. If you want to dive into Snakecraft by reading the examples, you can clone them from Github and process them using Snakecraft:

git clone https://github.com/xoraxax/snakecraft.git

cd snakecraft/examples

# The next commands reads snakecraft.ini:
snakecraft

# Now we can run Terraform:
cd simple_example
terraform init
terraform plan

As Snakecraft is still in an early stage, documentation is to be done.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snakecraft-0.2.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

snakecraft-0.2.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file snakecraft-0.2.1.tar.gz.

File metadata

  • Download URL: snakecraft-0.2.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.5 Linux/5.11.0-36-generic

File hashes

Hashes for snakecraft-0.2.1.tar.gz
Algorithm Hash digest
SHA256 fadb29c0a99de287c509920ec256ff6695327710a7375932dbf42b5724a89abc
MD5 2342c312df3ed93728a16762cf81a75b
BLAKE2b-256 98cd04d4b13d28e6e3ded39b5f51e8c7b32cb911893e46d6a8be45d0a4ebb065

See more details on using hashes here.

File details

Details for the file snakecraft-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: snakecraft-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.5 Linux/5.11.0-36-generic

File hashes

Hashes for snakecraft-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5472d6fe091a14a9280a9bb752b5d79a51ca1c7b97e531e81cfa8712ef381fbf
MD5 99c131151780dfa5f5ae7d59ddca2418
BLAKE2b-256 8742e683f3560599e59d392b462e31eabd96150e44302af17900a4efdb0bb6b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page