编写Tapis平台的脚本接口。文档位于https://tapiscli.rtfd.io/
tapis-cli的Python项目详细描述
tapiscli是一个友好的、可编写脚本的命令行界面,在中实现 Python,帮助科学家和工程师构建和管理可伸缩的计算 以及使用Tapis平台的数据科学工作流项目。它是一个 取代了我们希望的纯bashcli环境,称为agave CLI 为您带来新功能、更好的可靠性和显著增强 生产力。在
tapiscli为多个web服务api提供了一个统一的接口,允许它们 易于编排和组合成高阶结构 HPC、数据管理、云计算和计算的其他方面。在
文档:https://tapis-cli.readthedocs.io/en/latest/
安装
$ git clone https://github.com/TACC-Cloud/tapis-cli.git
$ cd tapis-cli
$ pip install --upgrade --user .
容器图像
作为本地安装的替代方案,CLI可以作为公共 Docker映像tacc/tapis-cli:latest位于DockerHub:
^{pr2}$初始化会话
必须在要使用Tapis CLI的每个主机上设置Tapis会话。这个 是由tapis auth init实现的脚本化进程。下面是一个例子:
$ tapis auth init Use of Tapis requires acceptance of the TACC Acceptable Use Policy, which can be found at https://portal.tacc.utexas.edu/tacc-usage-policy Do you agree to abide by the AUP? (type'y' or 'n'then Return) y To improve our ability to support Tapis and the Tapis CLI, we would like to collect your IP addrress, operating system and Python version. No personally- identifiable information will be collected. This data will only be shared in aggregate form with funders and Tapis platform stakeholders. Do you consent to this reporting? [Y/n]: y Available Tenants================= 3dem agave.prod araport.org bridge designsafe iplantc.org irec portals sd2e sgci tacc.prod vdjserver.org Enter a tenant name: tacc.prod Username: tacotron Password for tacotron: +--------------+---------------------------------+ | Field | Value | +--------------+---------------------------------+ | tenant_id | tacc.prod || username | tacotron || client_name | _cli-tacc.prod-tacotron-macbook || api_key | uAShaDfy0vF7hgFcAqx7oeAtO6oa || access_token | a31c66cfaa45451c95df6fd473ffd4b || expires_at | Thu Sep 1914:08:37 2019| +--------------+---------------------------------+
开始吧
CLI提供了广泛的上下文帮助。获取的列表 通过--help支持的命令和全局选项。在
$ tapis --help
查找可用命令:
$ tapis apps --help Command "apps" matches: apps create apps disable apps enable apps history apps list apps pems grant ...
获取特定命令的帮助:
每个命令都有一个--help标志。在
$ tapis help apps list $ # or $ tapis apps list --help
- 项目
标签: