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


Release history Release notifications

Download files

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

Files for terrasnek-dahlke, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size terrasnek_dahlke-0.0.1-py3-none-any.whl (45.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size terrasnek-dahlke-0.0.1.tar.gz (20.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page