Skip to main content

Suite of utilities for idempotent creation of DataRobot assets

Project description

Overview

Collection of unofficial idempotent DataRobot helpers. Ready for use in your orchestration tool of choice.

Installation

pip install datarobotx-idp

Usage

import os
from datarobotx.idp.execution_environments import get_or_create_execution_environment

dr_endpoint = os.environ['DATAROBOT_ENDPOINT']
dr_token = os.environ['DATAROBOT_API_TOKEN']

env_id_1 = get_or_create_execution_environment(dr_endpoint, dr_token, "image #1")
env_id_2 = get_or_create_execution_environment(dr_endpoint, dr_token, "image #1")
assert env_id_1 == env_id_2

env_id_3 = get_or_create_execution_environment(dr_endpoint, dr_token, "image #2")
assert env_id_1 != env_id_3

Contributing

Rules

  1. Public functions must be idempotent
  2. Function signatures must be type hinted (enforced by mypy)
  3. Functions must have numpydoc-style docstrings (enforced by ruff)
  4. Functions must either have a unit or integration test

Principles

  1. Group code so it can be easily understood and edited at the .py level
  2. Minimize dependencies
  3. Isolate dependencies by submodule to reduce risk of dependency conflicts

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

datarobotx_idp-0.2.13.tar.gz (39.3 kB view details)

Uploaded Source

Built Distribution

datarobotx_idp-0.2.13-py3-none-any.whl (61.2 kB view details)

Uploaded Python 3

File details

Details for the file datarobotx_idp-0.2.13.tar.gz.

File metadata

  • Download URL: datarobotx_idp-0.2.13.tar.gz
  • Upload date:
  • Size: 39.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for datarobotx_idp-0.2.13.tar.gz
Algorithm Hash digest
SHA256 1047c4e809110ba68ce2febb6970390eb8589d0d0054054918794688da0141d3
MD5 59582fdeca8a22117dd2ed4f8c2db341
BLAKE2b-256 d1c1e54b12fe646a75b5afcfac4a6640b36ae4fa6f2e1d439cda7bc7e8feb6b7

See more details on using hashes here.

File details

Details for the file datarobotx_idp-0.2.13-py3-none-any.whl.

File metadata

File hashes

Hashes for datarobotx_idp-0.2.13-py3-none-any.whl
Algorithm Hash digest
SHA256 2b029dc49f7b39c4f01653631bb78c1532408651c5f4e4b02527a3eaca81e556
MD5 641192bcc12c53fabda8c0ec7cdaeb8f
BLAKE2b-256 c75112bb4fb64ed8c70a7acd0c98fac27c20b6ec6e3076335db8746cee93d8d2

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