Client program for interacting with Onyx.
Project description
onyx-client
Setup
Install from conda-forge
$ conda create --name onyx --channel conda-forge climb-onyx-client
Install from PyPI
$ pip install climb-onyx-client
Build from source
Download and install the client into a Python virtual environment:
$ git clone https://github.com/CLIMB-COVID/onyx-client.git
$ cd onyx-client/
$ python -m venv .venv
$ source .venv/bin/activate
$ pip install .
Check it works:
$ onyx
Usage: onyx [OPTIONS] COMMAND [ARGS]...
API for pathogen metadata.
╭─ Options ─────────────────────────────────────────────────────────────────────────────────╮
│ --domain -d TEXT Domain name for connecting to Onyx. [env var: ONYX_DOMAIN] │
│ [default: None] │
│ --token -t TEXT Token for authenticating with Onyx. [env var: ONYX_TOKEN] │
│ [default: None] │
│ --username -u TEXT Username for authenticating with Onyx. [env var: ONYX_USERNAME] │
│ [default: None] │
│ --password -p TEXT Password for authenticating with Onyx. [env var: ONYX_PASSWORD] │
│ [default: None] │
│ --version -v Show the client version number and exit. │
│ --help -h Show this message and exit. │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ────────────────────────────────────────────────────────────────────────────────╮
│ projects View available projects. │
│ fields View the field specification for a project. │
│ choices View options for a choice field. │
│ get Get a record from a project. │
│ filter Filter multiple records from a project. │
│ identify Get the anonymised identifier for a value on a field. │
│ profile View profile information. │
│ siteusers View users from the same site. │
│ auth Authentication commands. │
│ admin Admin commands. │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
For more information, check out the documentation.
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
climb-onyx-client-4.1.1.tar.gz
(38.7 kB
view details)
Built Distribution
File details
Details for the file climb-onyx-client-4.1.1.tar.gz
.
File metadata
- Download URL: climb-onyx-client-4.1.1.tar.gz
- Upload date:
- Size: 38.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb738ace1790c00b68c98b01d76badd5c4b0370b26e2593ed5c7ca6a07e15e9e |
|
MD5 | 138e05cd9c2d4e208c153ce065f6a64f |
|
BLAKE2b-256 | b6ce7eac3f659770491bbd59c5ad0f919ee0d0a49e9bcca3c70ecd6afd8628c4 |
File details
Details for the file climb_onyx_client-4.1.1-py3-none-any.whl
.
File metadata
- Download URL: climb_onyx_client-4.1.1-py3-none-any.whl
- Upload date:
- Size: 35.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22d3f913dcc17d3aa2108d5c7d65aa194e4e0cdb9c3af4a2951491a46afa43cb |
|
MD5 | 80a9cececa0da3e6dde5e51fea375126 |
|
BLAKE2b-256 | e10caf243035bdc388af995ba7c508ebe4463dbac1b8710eedd023b474a28815 |