Disruptive Technologies CLI.
Project description
disruptive-cli
Unofficial Command-Line Interface (CLI) for the Disruptive Technologies (DT) API.
Installation
The package is hosted on PyPI and is available through pip.
pip install --upgrade disruptive-cli
Supports Python 3.7+.
Authentication
Using Service Account credentials, set the following environment variables.
export DT_SERVICE_ACCOUNT_KEY_ID="<SERVICE_ACCOUNT_KEY_ID>"
export DT_SERVICE_ACCOUNT_SECRET="<SERVICE_ACCOUNT_SECRET>"
export DT_SERVICE_ACCOUNT_EMAIL="<SERVICE_ACCOUNT_EMAIL>"
Usage
Call the dt
command using a dt NOUN VERB
syntax.
- List all available projects.
dt project list
- Get a single device.
dt device get <DEVICE_ID>
See dt -h
for additional commands.
Formatting
A tabular human readable output is prioritized.
Headers
Column headers are removed for single columns or if the --no-header
flag is provided.
Filters
A select set of columns are shown per resource. Use the --full
flag to output all available information.
On the other hand, the --include
can be used to include only specified columns in output.
Other Filetypes
The following formats are supported.
--json
--csv
--tsv
Chaining Commands
Pipes are supported using the -
symbol to make chaining commands simpler.
The following example lists all projects, then pipes the project-id
column to the serviceaccount
command to list all available Service Accounts per project. The output is formatted as .json
and piped into jq for further processing.
dt project list --include project-id | dt serviceaccount list - --json | jq
Development
Virtualenv is used for dependency isolation, wrapped by the following commands.
- Build the distribution:
make build
- Remove build-files:
make clean
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
Built Distribution
File details
Details for the file disruptive-cli-0.4.0.tar.gz
.
File metadata
- Download URL: disruptive-cli-0.4.0.tar.gz
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b6f00773e4b30aa959710f1fa0b5087a34296ce54b3b35465b850e7d69a4823 |
|
MD5 | bb36c232c8b8b975d5a3515a340ae93a |
|
BLAKE2b-256 | 367b9ef06605130891ea43e432e735fc52180a0d195acddca60348f784f76c01 |
File details
Details for the file disruptive_cli-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: disruptive_cli-0.4.0-py3-none-any.whl
- Upload date:
- Size: 36.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4693836909ddfd755ea27bea69efca5c5d72f6c5d2461115857edc09008efdcc |
|
MD5 | 130eca28129e58a0b1702c5129b6d2b5 |
|
BLAKE2b-256 | 8b1498b3470138c6602f65a01d379758b78e4dad6ad946660172b68bda47b577 |