Skip to main content

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 madde 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.25.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

nominal-0.0.25-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file nominal-0.0.25.tar.gz.

File metadata

  • Download URL: nominal-0.0.25.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for nominal-0.0.25.tar.gz
Algorithm Hash digest
SHA256 1bb97b83c936cd1694892e0b3122669fa7bfa0007b8c4d0e71abb4d593e94f69
MD5 7186cd8e769e35b2e813e696f4c2116c
BLAKE2b-256 87b2d87609be7dfe6e40c8e9487a19e1d20e3a1673f38fbf4904332c48303250

See more details on using hashes here.

File details

Details for the file nominal-0.0.25-py3-none-any.whl.

File metadata

  • Download URL: nominal-0.0.25-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for nominal-0.0.25-py3-none-any.whl
Algorithm Hash digest
SHA256 4320d5e6574f6f5112dca10ef7e7dac8ef20ee3aec20f7d7949fe464a2fb7e5a
MD5 aebb8b89023c702563a27b0f7d4bea4c
BLAKE2b-256 9bd4603b62899b31b462f11e951e4edbf62972e422833311d6357b807a7c2562

See more details on using hashes here.

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