Skip to main content

A command-line interface for Atmosphere

Project description

Build Status GitHub version Documentation Status

The Atmosphere CLI is a command-line client written in Python (based on OpenStack’s cliff framework) for Atmosphere. Atmosphere is an integrative, private, self-service cloud computing platform designed to provide easy access to preconfigured, frequently used analysis routines, relevant algorithms, and data sets in an available-on-demand environment designed to accommodate computationally and data-intensive bioinformatics tasks. It is currently in use on the CyVerse and Jetstream projects.

Getting Started

The Atmosphere CLI can be installed from PyPI using pip:

$ pip install atmosphere-cli

There are a few ways to get help. A listing of supported commands and global options can be shown with --help:

$ atmo --help

There is also a help command that can be used to get help for specific commands:

$ atmo help image list

(Optional) Install bash command line completion to get command hints by tabbing:

$ atmo complete >> ~/.bash_aliases
$ . ~/.bash_aliases  # add to ~/.bashrc or ~/.bash_profile to always load (Ubuntu distro's already load it)
$ atmo <tab>
allocation   group        identity     instance     project      size         volume
complete     help         image        maintenance  provider     version

Configuration

The Atmosphere CLI can be configured with environment variables or command-line options. The two required variables are ATMO_BASE_URL, the URL to the corresponding instance of Atmosphere, and ATMO_AUTH_TOKEN, the token needed for authorization. An authorization token can be created by logging into the web client and going to the user menu (upper right corner) and selecting Settings -> Advanced -> Personal Access Tokens. For instance:

export ATMO_BASE_URL="https://atmo.cyverse.org"
export ATMO_AUTH_TOKEN="xxxxxxxxxxxxxxxxxxxx"

A sample .env file is provided in the repo. The corresponding command-line options can also be used:

--atmo-base-url <URL>
--atmo-auth-token <TOKEN>

Contributing

To contribute to development and run the included tests:

# grab the repo
$ git clone https://github.com/eriksf/atmosphere-cli
$ cd atmosphere-cli

# install pipenv
$ pip install pipenv

# install atmosphere-cli
$ pipenv install --dev  # if multiple python versions installed, select with --python option

# setup environment
$ cp .env.sample .env  # edit ATMO_BASE_URL and ATMO_AUTH_URL as in Configuration section above

# load virtual environment
$ pipenv shell  # this also loads variables in .env to environment

License

See LICENSE.txt for license information.

Authors

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

atmosphere-cli-1.0.0.tar.gz (110.3 kB view details)

Uploaded Source

Built Distribution

atmosphere_cli-1.0.0-py2.py3-none-any.whl (24.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file atmosphere-cli-1.0.0.tar.gz.

File metadata

  • Download URL: atmosphere-cli-1.0.0.tar.gz
  • Upload date:
  • Size: 110.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.10

File hashes

Hashes for atmosphere-cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fb41c17918b81326e0fe6240ffad4f9a1767679460e14b69c2cb8f78af731980
MD5 a5ed9d184cf983376c42ae3f7b38cc5f
BLAKE2b-256 d93515547fd3652f6937d99a529f910a5e54a800bd3202b64c96ed1b57869ffa

See more details on using hashes here.

File details

Details for the file atmosphere_cli-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: atmosphere_cli-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.10

File hashes

Hashes for atmosphere_cli-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 027c3c70d57a04b10ea61572a240563ae7f16f7a2554949c8c687e37468368e2
MD5 f94c3be193cfec0bd9b16fd507aa4c49
BLAKE2b-256 79d46103a5d2dd19c9743c2700fc7d441ac87c05afeaf43298395fb8e81793e8

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