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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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