Automate Nominal workflows in Python
Project description
⬖ Nominal
Python client for Nominal test data, storage, & compute
🚧 WIP - API and syntax subject to change
Install
pip3 install nominal --upgrade
Usage
Set your API key
Retrieve your API key from /sandbox on your Nominal tenant
import nominal as nm
nm.set_token(...)
Upload a Dataset (4 lines)
import nominal as nm
from nominal import Ingest, Dataset
dataset = Dataset(nm.data.penguins())
# dataset = Ingest().read_csv('../path/to/your/data.csv')
dataset.upload()
Upload a Run (4 lines)
import nominal as nm
from nominal import Run, Dataset
r = Run(datasets=[Dataset(nm.data.penguins())])
# r = Run(path='../path/to/your/data.csv')
r.upload()
Update metadata of an existing Run (4 lines)
from nominal import Run
r = Run(rid = 'ri.scout.gov-staging.run.ce205f7e-9ef1-4a8b-92ae-11edc77441c6')
r.title = 'my_new_run_title'
r.update()
Compare changes made to a Run locally
from nominal import Run
r = Run(rid = 'ri.scout.gov-staging.run.ce205f7e-9ef1-4a8b-92ae-11edc77441c6')
r.title = 'my_new_run_title'
r.diff()
Apply a Check to a Run
TODO
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
nominal-0.0.31.tar.gz
(19.0 kB
view details)
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
nominal-0.0.31-py3-none-any.whl
(21.0 kB
view details)
File details
Details for the file nominal-0.0.31.tar.gz.
File metadata
- Download URL: nominal-0.0.31.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d73f5de918d83cce2a91b50ebbbaa34673eac32583965e23c73f897a96cf7be
|
|
| MD5 |
220f6b745aa25f0c8d02c2fff4cba54a
|
|
| BLAKE2b-256 |
4b0c30ab12ae5871d44cf4ee7637433a3be3d506cd8eefeca4cf664e14065be6
|
File details
Details for the file nominal-0.0.31-py3-none-any.whl.
File metadata
- Download URL: nominal-0.0.31-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
123e3fc40ca96abe549f59ae2c68d5e83be027bf27d8bd46e239d91f10af3e8e
|
|
| MD5 |
9c24dae5e979736fd7e7a8c4416dd747
|
|
| BLAKE2b-256 |
a6369e251835f3af76dab7e770ce6d49ac722e973a52cd32f424a4d54367fde0
|