Skip to main content

Tetrascience CLI

Project description

ts-cli

Tetrascience CLI

Version

v1.0.0

Table of Contents

Show

Intro

ts-cli allows you to interface with the Tetrascience Data Platform from the comfort of your shell

Example

Create and publish a new task script:

ts-cli config save ~/Downloads/ts-cfg.json
ts-cli init task-script
ts-cli publish

Install

pip install tetrascience-cli

Usage

Create an artifact

Using an IDS, Protocol, Task Script or "All-in-one" template

ts-cli init <template-type>

To set up the artifact's configuration interactively, use the --interactive or -i flag.

ts-cli init --interactive

Publish an artifact

Including IDS, Protocol, and Task Script artifacts from their source code

ts-cli publish

The artifact's type, namespace, slug and version are automatically read from its manifest.json file if it exists.
To set up the artifact's configuration interactively, use the --interative or -i flag. Examples:

ts-cli publish --interactive

An example of publishing an artifact using interactive mode

API Configuration

An API configuration is required. This can be the API configuration JSON file (cfg.json) found on the Tetra Data Platform.

{
	"api_url": "https://api.tetrascience.com/v1",
	"auth_token": "your-token",
	"org": "your-org",
	"ignore_ssl": false
}

This configuration can be referred to explicitly in the command line. Example:

ts-cli publish --config cfg.json

Or saved to a specific profile.

ts-cli config save cfg.json --profile dev
ts-cli publish --profile dev

To apply the API configuration to all your projects automatically, save your configuration file globally

ts-cli config save cfg.json --global
ts-cli publish

IDS Validation

When uploading IDS artifact, validation will be performed using ts-ids-validator package. Validation failures for IDS will be printed to the console.

Documentation

Click here for --help and a development guide

Changelog

v1.0.0

  • Initial release
  • Includes the init, publish and config commands

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

tetrascience_cli-1.0.0.tar.gz (31.1 kB view details)

Uploaded Source

Built Distribution

tetrascience_cli-1.0.0-py3-none-any.whl (45.3 kB view details)

Uploaded Python 3

File details

Details for the file tetrascience_cli-1.0.0.tar.gz.

File metadata

  • Download URL: tetrascience_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tetrascience_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4a12db799a901f26a497e958793ac8ef69bec71e7f02564fad29998f94707196
MD5 5e508e62371330ccee897e25166dd3f8
BLAKE2b-256 13945bc014109cf81757b162f7c97da92c9dc69dbd69044c40d6b6e64b679d63

See more details on using hashes here.

File details

Details for the file tetrascience_cli-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tetrascience_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b9ac84069f966e1c3cc5e22d0c3716b16bf27a7c4b1c0c0f05d31b194586e37
MD5 a8283e0632b1f02e50138f7abcbe8a41
BLAKE2b-256 9567b9a1c019e0d32e0f9d8e42d9003ec9bf220f13b43f4e8ddc68d247c1a180

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page