Skip to main content

CLI for IDM-Tools

Project description

Staging: idmtools-cli

idmtools-cli

Table of Contents

Installing

pip install idmtools-cli --index-url=https://packages.idmod.org/api/pypi/pypi-production/simple

Development tips

There is a Makefile file available for most common development tasks. Here is a list of commands

clean       -   Clean up temproary files
lint        -   Lint package and tests
test        -   Run All tests
coverage    -   Run tests and generate coverage report that is shown in browser

On Windows, you can use pymake instead of make

Using the CLI

The CLI requires the workers service to already be running. idmtools

Version command

To determine version of idmtools and related plugins, use the version cli command.

> idmtools version

Example output

emodpy                               Version: 1.3.0                           
  Plugins:
    EMODTask                  
idmtools                             Version: 1.4.0+nightly.0                 
  Plugins:
    CommandTask               
idmtools-cli                         Version: 1.4.0+nightly.0                 
idmtools-models                      Version: 1.4.0+nightly.0                 
  Plugins:
    JSONConfiguredPythonTask  
    JSONConfiguredRTask       
    JSONConfiguredTask        
    PythonTask                
    RTask                     
    ScriptWrapperTask         
    TemplatedScriptTask       
idmtools-platform-comps              Version: 1.4.0+nightly.0                 
  Plugins:
    COMPSPlatform             
    SSMTPlatform                        
idmtools-platform-slurm              Version: 1.0.0+nightly                   
  Plugins:
    SlurmPlatform             

Experiment commands for Local Platform

Status

You can check the status of experiments use the follow command. It will also summarize the simulations under the experiment as a progress bar with green section for completed tasks, yellow for in progress, red for failed, and white for queued.

> idmtools experiment --platform Local status --help

In addition, we used in conjunction with a console that supports auto-highlighting of hyperlinks, you will be able to easily open up the asset directories by clicking on the data path URLs.

You can also perform filtering on the experiments

> idmtools experiment --platform Local status --tag type PythonExperiment
> idmtools experiment --platform Local status --id 8EHU147Z

Delete

You can delete experiments and their child simulations using the following command. Optionally you can also delete the associated data directories as well by using the --data option.

>idmtools experiment --platform Local delete <experiment_id>

Simulation commands for Local Platform

Status

You can check the status of simulations use the follow command.

>idmtools simulation --platform Local status

You can also filter by a either id, experiment id, status, and tags or any combination of the aforementioned

> idmtools simulation --platform Local status --experiment-id EFX6JXBV
> idmtools simulation --platform Local status --id XDT0VMVV
> idmtools simulation --platform Local status --tag a 5 --tag b
> idmtools simulation --platform Local status --experiment-id --status failed

GitRepo commands

View

You can check idmtools available examples. You can use --raw to determine to display in detailed or simplified format

> idmtools gitrepo view

Repos

You can list all public repos for a GitHub owner. You can use --owner to specify an owner and --page for pagination --owner default to 'institutefordiseasemodeling' --page default to 1

> idmtools gitrepo repos

Releases

You can list all releases of a repo by providing --owner and --repo --owner default to 'institutefordiseasemodeling' and --repo default to 'idmtools'

> idmtools gitrepo releasess

Peep

You can list all current files/dirs of a repo folder by providing --url

> idmtools gitrepo peep

Download

You can download files from a public repo to a specified local folder (default to current folder). By default, it will download idmtools examples. You can also download any files from any public repo by using --url (multiple is supported)

> idmtools gitrepo download

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

idmtools_cli-0.0.5.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

idmtools_cli-0.0.5-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file idmtools_cli-0.0.5.tar.gz.

File metadata

  • Download URL: idmtools_cli-0.0.5.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for idmtools_cli-0.0.5.tar.gz
Algorithm Hash digest
SHA256 038f4316c5a9a385a053720635c5adc18b7e55b96b4d90deb003c2686cbe94f5
MD5 2ab8c0c791312346f2ceb2eeb5522765
BLAKE2b-256 64628ac9a3726680857921e7d4b0425789c190e53d280e2d9b82429f0fb4b54f

See more details on using hashes here.

Provenance

The following attestation bundles were made for idmtools_cli-0.0.5.tar.gz:

Publisher: deploy.yml on shchen-idmod/idmtools-1

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file idmtools_cli-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: idmtools_cli-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for idmtools_cli-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b7b84a4e2cb616a23cbcc21d6e1a3f29199504bb4e44668a27fc1eaa4405c4b2
MD5 92a30b9b2dd4e2682e5720f01a80283e
BLAKE2b-256 73add1d563b65d7295a427c0aecd0fe4036198b2ad7f3b2032616718d300b1b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for idmtools_cli-0.0.5-py3-none-any.whl:

Publisher: deploy.yml on shchen-idmod/idmtools-1

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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