A Python client for the Terraform Enterprise API
Project description
terrasnek
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:
- Account
- Applies
- Configuration Versions
- Cost Estimates
- Notification Configurations
- OAuth Clients
- OAuth Tokens
- Organizations
- Organization Tokens
- Plan Exports
- Plans
- Policies
- Policy Checks
- Policy Sets
- Registry Modules
- Runs
- SSH Keys
- State Versions
- State Version Outputs
- Team Access
- Team Memberships
- Team Tokens
- Teams
- User Tokens
- Users
- Variables
- Workspaces
- Admin Organizations
- Admin Runs
- Admin Settings
- Admin Terraform Versions
- Admin Users
- Admin Workspaces
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 | RSS feed
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)
Built Distribution
terrasnek-0.0.1-py3-none-any.whl
(45.1 kB
view hashes)
Close
Hashes for terrasnek-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fa674ea42ea68742fb49e5744c1cc475ed9596ae33d2002427d58baaa104f7e |
|
MD5 | f3e41a647acb4239e9d1299722a4dd0e |
|
BLAKE2b-256 | 143ce6a705aaacabd02b6381b62c92c12464e3de5e6a90f1b799eb94878d6d8a |