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
- Use defined endpoints under lib/endpoints for single actions
- Use our library functions for commonly performed advanced features
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rhino_health-2.1.19.tar.gz.
File metadata
- Download URL: rhino_health-2.1.19.tar.gz
- Upload date:
- Size: 95.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bec4df40e38862a7ab0e97e9252e5bc2d957df4ff7d4443b539e99d48bd032d
|
|
| MD5 |
e933c0f0c693ec13ae97a97cf27d4459
|
|
| BLAKE2b-256 |
29280c5e8ea12a6c282bde2f216d964393fec81fcaf1b7db13c458b143cbb9b2
|
Provenance
The following attestation bundles were made for rhino_health-2.1.19.tar.gz:
Publisher:
sdk-publish.yml on RhinoHealth/fcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rhino_health-2.1.19.tar.gz -
Subject digest:
2bec4df40e38862a7ab0e97e9252e5bc2d957df4ff7d4443b539e99d48bd032d - Sigstore transparency entry: 1006424343
- Sigstore integration time:
-
Permalink:
RhinoHealth/fcp@133b966bb90021d68e2a4d44782615c2e624e972 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/RhinoHealth
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
sdk-publish.yml@133b966bb90021d68e2a4d44782615c2e624e972 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file rhino_health-2.1.19-py3-none-any.whl.
File metadata
- Download URL: rhino_health-2.1.19-py3-none-any.whl
- Upload date:
- Size: 135.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c113803440014f8c7e6aea75e2375779935c541c1d836f6382ce95567f1c6d9e
|
|
| MD5 |
809c2041c920f5a6760730316b36c3ae
|
|
| BLAKE2b-256 |
698debafe3da53aa2a12d421afa5dcb81583e5d91b7f41898448c480e83b6ef3
|
Provenance
The following attestation bundles were made for rhino_health-2.1.19-py3-none-any.whl:
Publisher:
sdk-publish.yml on RhinoHealth/fcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rhino_health-2.1.19-py3-none-any.whl -
Subject digest:
c113803440014f8c7e6aea75e2375779935c541c1d836f6382ce95567f1c6d9e - Sigstore transparency entry: 1006424345
- Sigstore integration time:
-
Permalink:
RhinoHealth/fcp@133b966bb90021d68e2a4d44782615c2e624e972 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/RhinoHealth
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
sdk-publish.yml@133b966bb90021d68e2a4d44782615c2e624e972 -
Trigger Event:
workflow_dispatch
-
Statement type: