Client program for interacting with Onyx.
Project description
onyx-client
Setup
Install via pip
$ 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 env
$ source env/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-3.1.0.tar.gz
(37.2 kB
view hashes)
Built Distribution
Close
Hashes for climb_onyx_client-3.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 319f783e5d569bec8511baeef53a03a99fe393c6aafba56d97915e44fa22711f |
|
MD5 | 71a22c8fec55275283fe06b8a063d416 |
|
BLAKE2b-256 | 74a7da32a4e97664b12e9fddffc12868045a725c1890f3a7086b7bc6575cc4af |