Skip to main content

A Python client for the Terraform Enterprise API

Project description

terrasnek

Python unittest Code Coverage

A Python Client for the Terraform Cloud / Terraform Enterprise API.

Using terrasnek

For more details on using each endpoint, checkout the test directory.

from terrasnek.api import TFE
import os

TFE_TOKEN = os.getenv("TFE_TOKEN", None)

if __name__ == "__main__":
    api = TFE(TFE_TOKEN)
    api.set_organization("YOUR_ORGANIZATION")

Contributing to terrasnek

Currently the following endpoints are supported:

Contributing to terrasnek

Linting the Code

make lint

Building Test Data

cd test/testdata/terraform/
tar -zcvf terrasnek_unittest_config_version.tar.gz src/*

Running the Tests with Coverage Info

source test/secrets/secrets.sh
make coverage

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

terrasnek-0.0.1.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

terrasnek-0.0.1-py3-none-any.whl (45.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: terrasnek-0.0.1.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3

File hashes

Hashes for terrasnek-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5f7d9a4a065a8162d1f3568833f807a388d89cd94bec9ce5eaa48c8d07554a6a
MD5 cdc76a933b60d9844774cdc71c742da8
BLAKE2b-256 caae3b04ba03cbd3cedb65823e3b493fe91ce1469daebea7b3ec75174f0a5e28

See more details on using hashes here.

File details

Details for the file terrasnek-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: terrasnek-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 45.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3

File hashes

Hashes for terrasnek-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5fa674ea42ea68742fb49e5744c1cc475ed9596ae33d2002427d58baaa104f7e
MD5 f3e41a647acb4239e9d1299722a4dd0e
BLAKE2b-256 143ce6a705aaacabd02b6381b62c92c12464e3de5e6a90f1b799eb94878d6d8a

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