Skip to main content

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


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.1.tar.gz (37.4 kB view details)

Uploaded Source

Built Distribution

climb_onyx_client-3.1.1-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

Details for the file climb-onyx-client-3.1.1.tar.gz.

File metadata

  • Download URL: climb-onyx-client-3.1.1.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for climb-onyx-client-3.1.1.tar.gz
Algorithm Hash digest
SHA256 3642ab68850e7ed6b2c53dba6b9b0e3998f188cf47ce94c0baed67ad33ac3448
MD5 9b57c723eb9da9f551acbebc958eecb2
BLAKE2b-256 9f16d17a7c655226a71ee863541236a20ccfbddf453bbced8f3f6b2fff7feaa6

See more details on using hashes here.

File details

Details for the file climb_onyx_client-3.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for climb_onyx_client-3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4f6308e55748d6f4ecd675887de4bb67066a662b1ee09c27eee3f3b6ffbb2c6
MD5 741543714fc3c055afd6010568e75e31
BLAKE2b-256 fc0d6aefb6d71280cab80d3019e8cbd00d23083f95e84119883cf3e2e1e19d01

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page