A Python Client for the Geneweaver API
Project description
Geneweaver Client
This is a client for the Geneweaver 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
pip install geneweaver-client
From Source
Installing from source requires python 3.9 and poetry.
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
As a command line tool
gweave --help
GeneWeaver CLI client.
Usage:
$ 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:
$ gweave beta [OPTIONS] COMMAND [ARGS]...
Options:
--help
: Show this message and exit.
Commands:
auth
gweave beta auth
Usage:
$ 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:
$ gweave beta auth login [OPTIONS]
Options:
--reauth
--help
: Show this message and exit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for geneweaver_client-0.9.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad27cb84787768f53c879a6d660b8acfe2e8c52b3bc5ec520cfebadb6d98edd3 |
|
MD5 | b21d259404c17e9e81b52a831d1ab6a0 |
|
BLAKE2b-256 | d8765c996dab8a1e7749df2e29d770a22fb4169803614cc60d1e09bf78ddf22b |
Hashes for geneweaver_client-0.9.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 840dea6c94ac917aa42a114e02d2a94882b8172e738e6d80c945d858762ad9b9 |
|
MD5 | 4ea46e1a172119b9c722cb52b238d032 |
|
BLAKE2b-256 | 7864a063aa058c32b9b9bde7ea44d9f14096dd9a16571aef1229d27d6169a7bc |