Skip to main content

Standard Development Kit for interacting with the Rhino Federated Computing Platform

Project description

Rhino Federated Computing SDK (Rhino SDK)

Programmatic interface for interacting with the Rhino Federated Computing Platform.

Example Usage

Please see the sample notebook files provided to you by the Rhino Team for additional use cases.

Create a session

import rhino_health

my_username = "rhino_user@rhinohealth.com" # Replace me
my_password = "ASecurePasswordYouSet321" # Replace me
session = rhino_health.login(username=my_username, password=my_password)

There will be three ways to interact with the API after you have a session

  1. Use defined endpoints under lib/endpoints for single actions
  2. Use our library functions for commonly performed advanced features
  3. Use our low level API Interface (advanced users)

Interact with the API via defined endpoints

We've included convenience functions for our most commonly used endpoints in the library with required input and output data classes. These can be found in rhino_health/lib/endpoints.

my_projects = session.project.get_projects()
my_first_project = my_projects[0]
my_first_project.add_collaborator(collaborating_workgroup_uid)

my_dataset = session.dataset.get_dataset(my_dataset_uid)
dataset_project = my_dataset.project
my_dataset_info = my_dataset.dataset_info

Library Functions

Rhino also provides library functions which combine our basic building blocks to perform common actions.

Example:

from rhino_health.lib.metrics import RocAucWithCI

metric_configuration = RocAucWithCI(y_true_variable="label", y_pred_variable="pred", confidence_interval=95, timeout_seconds=600)
"""
data_filters=[{
        "filter_column":"is_roc",
        "filter_value":1
    }]
"""
result = my_dataset.get_metric(metric_configuration)
print(f"{result.output}")

Interact using the low level API

Please contact us for support with interacting with our low level API.

Rate Limits

The Rhino SDK handles rate limits of the API for you if you use the same session between threads and will attempt to queue requests. Excess requests will be sent with exponential backoff. If you send requests to our server from multiple locations then you may run into exceptions.

Development Notes

You may need to use pip install -r requirements.txt --no-cache-dir on M1 Macs

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

rhino_health-2.1.23.tar.gz (101.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rhino_health-2.1.23-py3-none-any.whl (139.6 kB view details)

Uploaded Python 3

File details

Details for the file rhino_health-2.1.23.tar.gz.

File metadata

  • Download URL: rhino_health-2.1.23.tar.gz
  • Upload date:
  • Size: 101.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rhino_health-2.1.23.tar.gz
Algorithm Hash digest
SHA256 07890eada7e3b0ed252cc50b16b9ad339328acb3078dbe859a13929710c313df
MD5 1abcad14dbfdef1744f5173cb1caf3a9
BLAKE2b-256 6807db22eefaba8f610766eb0596a81eb70e3f7baca159714cc3d5f3c0bcab58

See more details on using hashes here.

Provenance

The following attestation bundles were made for rhino_health-2.1.23.tar.gz:

Publisher: sdk-publish.yml on RhinoHealth/fcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rhino_health-2.1.23-py3-none-any.whl.

File metadata

  • Download URL: rhino_health-2.1.23-py3-none-any.whl
  • Upload date:
  • Size: 139.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rhino_health-2.1.23-py3-none-any.whl
Algorithm Hash digest
SHA256 6892ab707b6a36c96b98603facad7a6c541677f748c750b0c18bcb0f1b1edf0a
MD5 a4e5bc27b5c0cbb16c0f17b2316b5538
BLAKE2b-256 7b71aef9f6509def4e17032242e44d58e6b540dd676b0bcc3868c79a92c84fca

See more details on using hashes here.

Provenance

The following attestation bundles were made for rhino_health-2.1.23-py3-none-any.whl:

Publisher: sdk-publish.yml on RhinoHealth/fcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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