No project description provided
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.1.1
╭─ 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 on how to use the CLI and the Python API.
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.1.1.tar.gz
(31.1 kB
view details)
Built Distribution
File details
Details for the file climb-onyx-client-2.1.1.tar.gz
.
File metadata
- Download URL: climb-onyx-client-2.1.1.tar.gz
- Upload date:
- Size: 31.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1625f6f346230310767e3fa08fe5336ef7bf4dc6cc55c5a30fbee452de046fff |
|
MD5 | 2af3e44b207331c3d1960cd6ccce8e41 |
|
BLAKE2b-256 | 68de751c4382b2f8545a226fca337a0093894786cb63c115e1fe89e15786bc4e |
File details
Details for the file climb_onyx_client-2.1.1-py3-none-any.whl
.
File metadata
- Download URL: climb_onyx_client-2.1.1-py3-none-any.whl
- Upload date:
- Size: 27.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 | f802265beaf33ecb6ffb66fca6d69924920162990d4e2f6e132a4f1cee9e6f7c |
|
MD5 | 6ab12dba0e12d7f50016982607221a92 |
|
BLAKE2b-256 | f7e6590e9de5067117719ad24e4efa5e0ea7716d44ec37ba6d5a5bead3a54437 |