Skip to main content

Atgenomix SeqsLab Command Line Tool

Project description

This package provides a unified command line interface to Atgenomix SeqsLab, a cloud-native biomedical informatics (BioMed IT) platform.

Table of Contents
  1. Getting Started
  2. Getting Help
  3. Contributing
  4. More Resources

Getting Started

Prerequisites

Detail to see Installation

Install the SeqsLab CLI

pip install seqslab-cli

Interactive Mode

This mode provides fish-style auto-completion functionality that is user-friendly, especially for beginners.

  • Run interactive mode.

    seqslab
    
  • Display the available commands.

    root> help
    
  • End the current interactive mode session and return to the Linux shell.

    root> exit
    

CLI Mode

Through the use of subcommands, you can operate the SeqsLab CLI like any traditional Linux-based command-line utility.

seqslab -h

seqslab auth -h

Basic Commands

Authentication with the SeqsLab API

Regardless of the mode that you intend to use, you must sign in to authenticate the session. The SeqsLab CLI follows the OAuth 2.0 Device Authorization Grant (external URL) process.

Example (interactive mode):

  • Specify the platform backend to be used when launching the SeqsLab CLI. The default value is azure.

    seqslab --backend azure
    
  • Sign in to the SeqsLab API and obtain API tokens with a single command. By default, the sign-in process uses the Authorization Code Flow.

    root> auth signin
    

    Set the device-code argument to True. By default, the sign-in command uses the Device Code Flow for browserless systems.

    root>  auth signin device-code=True
    
  • Obtain an API access token for interacting with SeqsLab API apps.

    root> auth token
    # use token in your request header, ex: Authorization: Bearer {access}
    

    Access tokens are persistently cached in the system-supported secret service (for example, Freedesktop Secret Service or macOS Keychain). As a result, valid access tokens can be used across multiple SeqsLab CLI sessions.

Help documentation

To view help documentation, use one of the following:

root> help

Getting Help

The best way to interact with our team is through GitHub. You can open an issue and choose from one of our templates for guidance, bug reports, or feature requests.

Please check for open similar issues before opening another one.

More Resources

Contributing

The repository currently does not accept contributions but will eventually be opened to the community.

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

seqslab-cli-3.3.2.post1.tar.gz (98.0 kB view hashes)

Uploaded Source

Built Distribution

seqslab_cli-3.3.2.post1-py2.py3-none-any.whl (155.3 kB view hashes)

Uploaded Python 2 Python 3

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