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]...
Client Version: 2.3.0
╭─ 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. │
│ get Get a record from a project. │
│ filter Filter multiple records from a project. │
│ choices View options for a choice 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-2.3.1.tar.gz
(32.3 kB
view details)
Built Distribution
File details
Details for the file climb-onyx-client-2.3.1.tar.gz
.
File metadata
- Download URL: climb-onyx-client-2.3.1.tar.gz
- Upload date:
- Size: 32.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efc45ad1a26846e1cde7b429f4c36526bdc809cf168d41ba091a59969cf4ee97 |
|
MD5 | d21815124938ac784a8d3523f2c8af9c |
|
BLAKE2b-256 | 7dcb543db9be86cec57146abf5680c5a3744fc92a0f0e6c9b3d75722d5770804 |
File details
Details for the file climb_onyx_client-2.3.1-py3-none-any.whl
.
File metadata
- Download URL: climb_onyx_client-2.3.1-py3-none-any.whl
- Upload date:
- Size: 28.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94174e07712f2f6eb5b1ac3f89d5f594a4272cad2d1d4fdf61cdf6e179d5a83a |
|
MD5 | 03855ee2c94b0fcc31251d923bf8a338 |
|
BLAKE2b-256 | ff48e9d02946e5566b3b5a337f16c028746462aff4d374166c1c94c2a668eae7 |