Metadata-Version: 2.1
Name: geneweaver-client
Version: 0.7.0a2
Summary: A Python Client for the Geneweaver API
Home-page: https://thejacksonlaboratory.github.io/geneweaver-docs/
License: Apache-2.0
Author: Jax Computational Sciences
Author-email: cssc@jax.org
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: auth0-python (>=4.4.0,<5.0.0)
Requires-Dist: geneweaver-core (>=0.9.0a0,<0.10.0)
Requires-Dist: openpyxl (>=3.1.2,<4.0.0)
Requires-Dist: pandas (>=1.5,<2.1)
Requires-Dist: pydantic[dotenv] (>=1.10.7,<2.0.0)
Requires-Dist: requests (>=2.28.2,<3.0.0)
Requires-Dist: rich (>=13.4.2,<14.0.0)
Requires-Dist: typer[all] (>=0.9.0,<0.10.0)
Requires-Dist: xlrd (>=2.0.1,<3.0.0)
Project-URL: Repository, https://github.com/TheJacksonLaboratory/geneweaver-client
Description-Content-Type: text/markdown

# Geneweaver Client

[![Tests](https://github.com/TheJacksonLaboratory/geneweaver-client/actions/workflows/tests.yml/badge.svg?event=push)](https://github.com/TheJacksonLaboratory/geneweaver-client/actions/workflows/tests.yml)
[![Style](https://github.com/TheJacksonLaboratory/geneweaver-client/actions/workflows/style.yml/badge.svg?event=push)](https://github.com/TheJacksonLaboratory/geneweaver-client/actions/workflows/style.yml)
[![Coverage](https://github.com/TheJacksonLaboratory/geneweaver-client/actions/workflows/coverage.yml/badge.svg?event=push)](https://github.com/TheJacksonLaboratory/geneweaver-client/actions/workflows/coverage.yml)

This is a client for the [Geneweaver](https://geneweaver.org) API. It is written in 
Python 3.9 and is intended to be used as a library for other applications. It can also 
be used as a command line tool.

## Installation
This library is tested on python version `3.9`, `3.10`, and `3.11`, on MacOS and on
Ubuntu Linux. The library should work on any version of python `3.9` or higher.

### From PyPI

```bash
pip install geneweaver-client
```

### From Source
Installing from source requires python 3.9 and [poetry](https://python-poetry.org/).


```bash
git clone $GIT_URL
cd geneweaver-client
poetry install
```

## Usage

### As a library

#### Using Authentication Tools
```
from geneweaver.client import auth
auth.login()
auth.get_access_token()
```

#### Complete Example
See the [Geneweaver Docs](https://thejacksonlaboratory.github.io/geneweaver-docs/tutorial/nci_60_example_01/)


### As a command line tool

```bash
gweave --help
```

GeneWeaver CLI client.

**Usage**:

```console
$ gweave [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--version`
* `--install-completion`: Install completion for the current shell.
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
* `--help`: Show this message and exit.

**Commands**:

* `alpha`: These commands are in alpha testing.
* `beta`: These commands are in beta testing. 

-----

### `gweave beta`

These commands are in beta testing.

They are subject to future change and/or removal. Beta commands are
intended to be released beyond beta testing, but may have bugs or other
issues. There is also no guarantee that beta commands will be released
beyond beta testing.

Use at your own risk.

**Usage**:

```console
$ gweave beta [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `auth`

#### `gweave beta auth`

**Usage**:

```console
$ gweave beta auth [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `login`: Run the device authorization flow.

##### `gweave beta auth login`

Run the device authorization flow.

:param reauth: Force a re-authentication

**Usage**:

```console
$ gweave beta auth login [OPTIONS]
```

**Options**:

* `--reauth`
* `--help`: Show this message and exit.
