Metadata-Version: 2.1
Name: seqslab-cli
Version: 3.2.7
Summary: Atgenomix SeqsLab Command Line Tool
Home-page: https://github.com/AnomeGAP/seqslab-cli
Author: Allen Chang
Author-email: allen.chang@atgenomix.com
License: Apache License, Version 2.0
Project-URL: Documentation, https://docs.atgenomix.com/
Project-URL: Repository, https://github.com/atgenomix/seqslab-cli
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: pip >=22.0.4
Requires-Dist: click ==8.1.7
Requires-Dist: tabulate ==0.9.0
Requires-Dist: terminaltables ==3.1.10
Requires-Dist: cryptography ==41.0.7
Requires-Dist: jeepney ==0.8.0
Requires-Dist: secretstorage ==3.3.3
Requires-Dist: dbus-python ==1.2.16
Requires-Dist: keyring ==24.3.0
Requires-Dist: numba ==0.58.1
Requires-Dist: python-nubia ==0.2b5
Requires-Dist: msal ==1.26.0
Requires-Dist: tenacity ==8.2.3
Requires-Dist: aiofiles ==23.2.1
Requires-Dist: aiohttp[speedups] ==3.9.1
Requires-Dist: aioretry ==5.0.2
Requires-Dist: uvloop ==0.19.0
Requires-Dist: arrow ==1.3.0
Requires-Dist: yarl ==1.4.2
Requires-Dist: requests-toolbelt ==1.0.0
Requires-Dist: PyJWT ==2.8.0
Requires-Dist: django-environ ==0.11.2
Requires-Dist: validators ==0.22.0
Requires-Dist: pydot ==1.4.2
Requires-Dist: orjson ==3.9.10
Requires-Dist: pydantic ~=2.5.3
Requires-Dist: aiohttp-retry ==2.8.3
Requires-Dist: requests ~=2.31.0
Requires-Dist: setuptools ~=69.0.3
Requires-Dist: jsonpath-ng ==1.6.0

<!-- PROJECT SHIELDS -->
<!--
*** I'm using markdown "reference style" links for readability.
*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).
*** See the bottom of this document for the declaration of the reference variables
*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.
*** https://www.markdownguide.org/basic-syntax/#reference-style-links
-->

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

<!-- TABLE OF CONTENTS -->
<details open="open">
  <summary>Table of Contents</summary>
  <ol>
    <li>
      <a href="#getting-started">Getting Started</a>
      <ul>
        <li><a href="#prerequisites">Prerequisites</a></li>
        <li><a href="#install-the-seqslab-cli">Install the SeqsLab CLI</a> </li>
        <li><a href="#interactive-mode">Interactive Mode</a></li>
        <li><a href="#cli-mode">CLI Mode</a></li>
        <li><a href="#basic-commands">Basic Commands</a></li>
      </ul>
    <li><a href="#getting-help">Getting Help</a></li>
    <li><a href="#contributing">Contributing</a></li>
    <li><a href="#more-resources">More Resources</a></li>
  </ol>
</details>

## Getting Started

### Prerequisites

* Python 3.8 or later

* [keyring](https://pypi.org/project/keyring/)
* [dbus](https://wiki.freedesktop.org/www/Software/dbus/)
* [glib](https://docs.gtk.org/glib/)
* [pkg-config](https://freedesktop.org/wiki/Software/pkg-config/)


Detail to see [Installation](https://github.com/atgenomix/seqslab-cli/wiki/Installation)

### Install the SeqsLab CLI
  ```bash
  pip install seqslab-cli
  ```

### Interactive Mode

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

* Run interactive mode.
  ```bash
  seqslab
  ```

* Display the available commands.
  ```bash
  root> help
  ```

* End the current interactive mode session and return to the Linux shell.
  ```bash
  root> exit
  ```

### CLI Mode

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

  ```bash
  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`.

  ```bash
  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.

  ```bash
  root> auth signin
  ```

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

  ```bash
  root>  auth signin device-code=True
  ```

* Obtain an API access token for interacting with SeqsLab API apps.

  ```bash
  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:

```bash
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

* [SeqsLab CLI Documentation](https://docs.atgenomix.com/tutorials/cli.html)

## Contributing

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


<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->

[contributors-url]: https://github.com/AnomeGAP/seqslab-cli/graphs/contributors

[stars-url]: https://github.com/AnomeGAP/seqslab-cli/stargazers

[issues-url]: https://github.com/AnomeGAP/seqslab-cli/issues

[license-url]: https://github.com/AnomeGAP/seqslab-cli/blob/main/LICENSE.txt

[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555

[linkedin-url]: https://www.linkedin.com/company/atgenomix

[product-screenshot]: https://github.com/AnomeGAP/seqslab-cli/blob/main/Atgenomix%20SeqsLab%20V3.png


