Skip to main content

Scripting interface to the Tapis platform. Documentation at https://tapis-cli.rtfd.io/

Project description

#########
Tapis CLI
#########

|build-status| |docs| |doi|

Tapis CLI is a human-friendly, scriptable command line interface, implemented in
Python, that helps scientists and engineers build and manage scalable computational
and data science workflow projects using the Tapis_ platform. It is a
replacement for a pure-Bash CLI environment known as agave-cli that we hope
brings you new features, better reliability, and dramatically enhanced
productivity.

Tapis CLI provides a unified interface to multiple web service APIs, allowing them
to be easily orchestrated and composed into higher-order constructs combining
HPC, data management, cloud computing, and other aspects of computing.

Documentation: `https://tapis-cli.readthedocs.io/en/latest/ <https://tapis-cli.readthedocs.io/en/latest/>`_

************
Installation
************

The latest stable release of Tapis CLI is available on PyPi and is the recommended
way for most people to install it.

.. code-block:: shell

$ pip install tapis-cli

Stable but possibly as-yet unreleased updates are available via the `main` branch
of the Tapis CLI GitHub repository.

.. code-block:: shell

$ git clone https://github.com/TACC-Cloud/tapis-cli.git
$ cd tapis-cli
$ pip install --user .

***************
Container Image
***************

As an alternative to local installation, the CLI is available as a public
Docker image ``tacc/tapis-cli:latest`` on DockerHub_:

.. code-block:: shell

docker run --rm -it -v ${PWD}:/work -v ${HOME}/.agave:/root/.agave \
tacc/tapis-cli:latest bash

********************
Initialize a Session
********************

You must set up a Tapis session on each host where you will use Tapis CLI. This
is a scripted process implemented by ``tapis auth init``. Here's an example:

.. code-block:: shell

$ 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 19 14:08:37 2019 |
+--------------+---------------------------------+

***********
Get Started
***********

The CLI features extensive contextual help. Get a listing of
supported commands and global options via ``--help``.

.. code-block:: shell

$ tapis --help

Find available commands:

.. code-block:: shell

$ tapis apps --help
Command "apps" matches:
apps create
apps disable
apps enable
apps history
apps list
apps pems grant
...

Get help for a specific command:

There is a ``--help`` flag for each command.

.. code-block:: shell

$ tapis help apps list
$ # or
$ tapis apps list --help

*************
Issue Tracker
*************

Major functional objectives are bundled into Milestones_ with due dates in the
future. This provides a way to organize the work and have a public road map
for functionality.

All work should proceed through at least one or more reported Issues_.

.. _Milestones: https://github.com/TACC-Cloud/tapis-cli/milestones?direction=asc&sort=due_date&state=open
.. _Issues: https://github.com/TACC-Cloud/tapis-cli/issues


.. |build-status| image:: https://travis-ci.org/TACC-Cloud/tapis-cli.svg?branch=main&style=flat
:alt: build status
:scale: 100%
:target: https://travis-ci.org/TACC-Cloud/tapis-cli

.. |docs| image:: https://readthedocs.org/projects/tapis-cli/badge/?version=latest
:alt: Documentation
:scale: 100%
:target: https://tapis-cli.readthedocs.io/

.. |doi| image:: https://zenodo.org/badge/203083094.svg
:alt: Publication
:scale: 100%
:target: https://zenodo.org/badge/latestdoi/203083094


.. _DockerHub: https://hub.docker.com/r/tacc/tapis-cli/

.. _Tapis: https://agave.readthedocs.io/en/latest/



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

tapis_cli-1.0.6.tar.gz (273.8 kB view details)

Uploaded Source

Built Distribution

tapis_cli-1.0.6-py2.py3-none-any.whl (294.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tapis_cli-1.0.6.tar.gz.

File metadata

  • Download URL: tapis_cli-1.0.6.tar.gz
  • Upload date:
  • Size: 273.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8

File hashes

Hashes for tapis_cli-1.0.6.tar.gz
Algorithm Hash digest
SHA256 50ba6fac0913c282145ddd63706c668af7e6024d52a3053b217a2ce55b041daf
MD5 cf72b074e212bcef34feddb1554df2bc
BLAKE2b-256 4d22d9d1e37b35895f8b91ebbaaec73e74ccb312497840ec11b57d5a660eb8ca

See more details on using hashes here.

File details

Details for the file tapis_cli-1.0.6-py2.py3-none-any.whl.

File metadata

  • Download URL: tapis_cli-1.0.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 294.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8

File hashes

Hashes for tapis_cli-1.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8bd09e535fd0f1f59a51f0181dca33e5c007b54455872baa3529b601d682bfa5
MD5 51b754bd1d5e01dfecf7fff3aa99ae21
BLAKE2b-256 149724f70391624b6d40e4db92938f2fdda47753cceea71ebbb1cba367162515

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