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 ────────────────────────────────────────────────────────────────────────────────╮
│ auth Authentication commands. │
│ admin Admin commands. │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Data ────────────────────────────────────────────────────────────────────────────────────╮
│ 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. │
│ create Create a record in a project. │
│ update Update a record in a project. │
│ delete Delete a record in a project. │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Accounts ────────────────────────────────────────────────────────────────────────────────╮
│ profile View profile information. │
│ activity View latest profile activity. │
│ siteusers View users from the same site. │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
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.6.0.tar.gz
(43.7 kB
view details)
Built Distribution
File details
Details for the file climb_onyx_client-4.6.0.tar.gz
.
File metadata
- Download URL: climb_onyx_client-4.6.0.tar.gz
- Upload date:
- Size: 43.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3795597ebb0f7fda931367cb6f9cd4b94f44c2511f89f9b693262d66736b9141 |
|
MD5 | 99d807367fee4ab94ac803004d12282b |
|
BLAKE2b-256 | b76b8c6b89400de73817ee52867d3a8ee9d1350cd2af010b0fec2cd3b947423e |
File details
Details for the file climb_onyx_client-4.6.0-py3-none-any.whl
.
File metadata
- Download URL: climb_onyx_client-4.6.0-py3-none-any.whl
- Upload date:
- Size: 38.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0839eeadd627d3e29b18606227172abafc33c19a2a7ae4aea420a3da7bcacb06 |
|
MD5 | 1c0f13c35dfa5a7e2e1f59e3ecee1df9 |
|
BLAKE2b-256 | ddce9b9f84937e7de313e1cc6908f12175ebc0dcfdebcd4395e983d4d56f914f |