CLI and Python library for 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. │
│ types View available field types. │
│ lookups View available lookups. │
│ fields View the field specification for a project. │
│ choices View options for a choice field in a project. │
│ get Get a record from a project. │
│ filter Filter multiple records from a project. │
│ history View the history of a record in a project. │
│ identify Get the anonymised identifier for a value on a field. │
│ profile View profile information. │
│ activity View latest profile activity. │
│ 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.5.2.tar.gz
(43.2 kB
view details)
Built Distribution
File details
Details for the file climb_onyx_client-4.5.2.tar.gz
.
File metadata
- Download URL: climb_onyx_client-4.5.2.tar.gz
- Upload date:
- Size: 43.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82d2db3302a770d32e39a0967e9f10a1918163fc06766007e5b86c4e5885c03d |
|
MD5 | 69ed065584121877ec4e8d364ab7f000 |
|
BLAKE2b-256 | c0a45b08ed1d487c4bbbd69fdb566e24363c89393560dee95fd47076dd631bc2 |
File details
Details for the file climb_onyx_client-4.5.2-py3-none-any.whl
.
File metadata
- Download URL: climb_onyx_client-4.5.2-py3-none-any.whl
- Upload date:
- Size: 37.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5d531b88d6a8753a39f4cf26725279fa9c476b305ba698cc96824650bcf123d |
|
MD5 | d3206f20376bafa37f0d73098ddc4a9a |
|
BLAKE2b-256 | 4091efdf62b6129926c2fa49f6fe0985f83ae9775335221dbba0d5b9f6c72b1f |