Skip to main content

Client program for interacting with 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.                                                     │
│ 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-4.4.0.tar.gz (41.8 kB view details)

Uploaded Source

Built Distribution

climb_onyx_client-4.4.0-py3-none-any.whl (36.7 kB view details)

Uploaded Python 3

File details

Details for the file climb_onyx_client-4.4.0.tar.gz.

File metadata

  • Download URL: climb_onyx_client-4.4.0.tar.gz
  • Upload date:
  • Size: 41.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for climb_onyx_client-4.4.0.tar.gz
Algorithm Hash digest
SHA256 4000eaf3658bf5b550eadee294300e5d51b9f8931fefa72861b794196bcb5897
MD5 d9b3892718a05b9e05e33bd7aeffb5a5
BLAKE2b-256 081e97a399c2608802afe1c0e779021637d3fe1f973c687ad33da9aaa23e3354

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for climb_onyx_client-4.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65c4474266f0c09cfd3471142a2790d089e4eb4699a6a3eaf2b95f945c94ccfa
MD5 17d7283d2316046153eed58fe5a2370f
BLAKE2b-256 d406ff5ce75d19d9dea98aa7551b51b25fb3aa5a895a4f899fb2d714836c9d1d

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