Skip to main content

DTaaS CLI

Project description

DTaaS Command Line Interface

This is a command line tool for the INTO-CPS-Association Digital Twins as a Service.

Prerequisite

Please visit and download the DTaaS Software.

The DTaaS service with base users and essential containers should be up and running before using the CLI.

Installation

Simply install using:

We recommend installing this in a virutal environment.

Steps to install:

  • Change the working folder:
cd <DTaaS-directory>/cli
  • Recommended (for windows) to install this in a virtual environment
python -m venv env
env\Scripts\activate
  • To install, simply:
pip install dtaas-cli

Usage

Setup

Setup the dtaas.toml file in the cli directory, edit the fields appropriately.

Add users

To add new users using the CLI, fill in the users.add list in dtaas.toml with the Gitlab instance usernames of the users to be added

Then simply:

dtaas admin user add

Delete users

To delete existing users, fill in the users.delete list in dtaas.toml_ with the Gitlab instance usernames of the users to be deleted.

Then simply:

dtaas admin user delete

Additional Points to Remember

  • The base DTaaS system should be up and running before adding/deleting users with the CLI

  • The user add CLI will add and start a container for a new user. It can also start a container for an existing user if that container was somehow stopped. It shows a Running status for existing user containers that are already up and running, it doesn't restart them.

  • Configure the server-dns in the dtaas.toml file with the domain name of your server. If you want to bring up the server locally, please set this to "localhost".

  • user add and user delete CLIs return an error if the add and delete lists in dtaas.toml are empty, respectively.

  • Currently the email fields for each user in dtaas.toml are not in use, and are not necessary to fill in. These emails must be configured manually for each user in the docker/

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

dtaas_cli-0.1.5.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

dtaas_cli-0.1.5-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file dtaas_cli-0.1.5.tar.gz.

File metadata

  • Download URL: dtaas_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/5.15.0-60-generic

File hashes

Hashes for dtaas_cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 2c36c9a92b2a3daa84b581e23db58de019d989dc032a2a4f7fd5e69f00a274d9
MD5 6f31e3e931d00e6f85f57f676dcd679a
BLAKE2b-256 cb27b7a2ab0e5dbd6dcbf8fc7c66f477690d712da5e33c0dc7b36fcf493923f9

See more details on using hashes here.

File details

Details for the file dtaas_cli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: dtaas_cli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/5.15.0-60-generic

File hashes

Hashes for dtaas_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0848eabd3f6820abf2db832d5302f692f03846e88098d5fcebb032b011d67066
MD5 e6773b97aca88af48996aba9a0c37c39
BLAKE2b-256 612d281e023d36a5a5a0fb61f55d62f21f7c74bac66e3b39f29bca5ec5d3c1cf

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