Skip to main content

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, 3.8, 3.9, and 3.10.

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

disruptive-cli-0.2.1.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

disruptive_cli-0.2.1-py3-none-any.whl (36.0 kB view details)

Uploaded Python 3

File details

Details for the file disruptive-cli-0.2.1.tar.gz.

File metadata

  • Download URL: disruptive-cli-0.2.1.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for disruptive-cli-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7e4130ae5670efe7512e01cf3738b9afd031a21731f79dd2142fc1929cc315f1
MD5 415f293898de7fe15a4926f70f061f71
BLAKE2b-256 2c4ad7c2d6720fdb5934c0a8a05ad1afd76f2858a16ae71180dd97df32c75f46

See more details on using hashes here.

File details

Details for the file disruptive_cli-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for disruptive_cli-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d6dd5ddb5177bec740ff6d0b81fe1ff8a08b7253ef1c7e7cd8e16b384dff1c2
MD5 58dca2e2df055c41c0e70d3e7dad0abb
BLAKE2b-256 334ff6b20e7b92297cb138842997d2a84723826789e1d3f1ec9debe7a952e3a2

See more details on using hashes here.

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