python-tfvars
read secrets from terraform tfvars
This module will read variables from terraform tfvars files to facilitate the usage of python scripts from terraform resources.
Currently we do not support json format.
basic usage
Assuming a terraform.tfvars file as follows:
token = "some_token"
in your python script:
import tfvars
tfv = tfvars.LoadSecrets()
print(tfv["token"])
optionally specify a file location:
tfv = tfvars.LoadSecrets("../dev.auto.tfvars")
Metadata
Release files for python-tfvars 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| python-tfvars-0.1.0.tar.gz | 3.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_tfvars-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / python-tfvars-0.1.0.tar.gz
| Download URL | python-tfvars-0.1.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c1a641b0da0273028a8ca383414a35e000474f3e9ab228608ff9c93cf947e80
|
|
BLAKE2b-256 checksum How to use checksums |
98c7e0fee0ac775091ba98b5e0d25a9412754d9b48a3d298bb62855fba6d4dad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.9
|
Release files / python_tfvars-0.1.0-py3-none-any.whl
| Download URL | python_tfvars-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
455134192d3ca735fe83ac26fb70be638170b2a8dd82ec6a94b30746f589bd74
|
|
BLAKE2b-256 checksum How to use checksums |
aa36c9a67ea161969c5b4baf7d48769c5f69a627266813fe0752bb856c468428
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.9
|
Security for python-tfvars 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.