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.2.2.tar.gz
.
File metadata
- Download URL: disruptive-cli-0.2.2.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c61d64e1b8bd6bccd04c36c95e0ff9c61d6233d6c3ec63a85201527f4c69f08 |
|
MD5 | 3f403d663058fea86315220672aeac54 |
|
BLAKE2b-256 | 2086fde3df2a1b00a4c4ba8ef1cd9da0472c43eb11a5592ad7141acc8e26c19e |
File details
Details for the file disruptive_cli-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: disruptive_cli-0.2.2-py3-none-any.whl
- Upload date:
- Size: 36.0 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 | 997ca17042a837cb46681b19e4e3abdc360c8a315892c7b2bbd6f0516b050bed |
|
MD5 | 592ed3464f8c2bf3abcf4a745c1919d3 |
|
BLAKE2b-256 | 8daea077914edd553fa29c80d7f9a747d13c6162edf70ab24bf5a176229db7b2 |