Skip to main content

simple tfvars (HCL) converter

Project description

About

simple tfvars (HCL) converter

Usage

usage: json2tfvars [-h] [--reverse] [--indent N] [FILE [FILE ...]]

positional arguments:
  FILE

optional arguments:
  -h, --help  show this help message and exit
  --reverse   expect tfvars (HCL) input
  --indent N  adjust identation levels
$ json2tfvars <<< '{"a":"b"}' | json2tfvars --reverse | jq -r '. + {"c":"d"}' | json2tfvars

a = "b"

c = "d"

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

json2tfvars-0.0.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

json2tfvars-0.0.1-py2-none-any.whl (3.5 kB view details)

Uploaded Python 2

File details

Details for the file json2tfvars-0.0.1.tar.gz.

File metadata

  • Download URL: json2tfvars-0.0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15

File hashes

Hashes for json2tfvars-0.0.1.tar.gz
Algorithm Hash digest
SHA256 47193f8d1bc1bdbc59a1ddff416e148289d3c45c4f35458229869118106cbbb9
MD5 c87277ad9c850615fcc4470949226157
BLAKE2b-256 dd927dee7e2b6bad33eb4ceebca8a26298d72798c6ba6e0c5996fd25d67f9796

See more details on using hashes here.

File details

Details for the file json2tfvars-0.0.1-py2-none-any.whl.

File metadata

  • Download URL: json2tfvars-0.0.1-py2-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15

File hashes

Hashes for json2tfvars-0.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 294108fc486d0481a7b28663de7f8dd035ea0ed5a59f7b9e0a898b9b10a1a0a7
MD5 f7a8cf1c969291a89ad154e1090fc63f
BLAKE2b-256 6b8ceb54a0f64fcc80855f6664ddbf1902489fca50a44e66498a51ca136909d4

See more details on using hashes here.

Supported by

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