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.16.tar.gz (40.2 kB view details)

Uploaded Source

Built Distribution

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

datarobotx_idp-0.2.16-py3-none-any.whl (62.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datarobotx_idp-0.2.16.tar.gz
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for datarobotx_idp-0.2.16.tar.gz
Algorithm Hash digest
SHA256 b36f69ff06038b2e487320c05916f00f5264515e1081da29517daa23c35539c9
MD5 1ff9d35f2e5c1788057ba695e91d634b
BLAKE2b-256 d86199ed0635604032919e41d1353453d28e98625af5dbe337c993d8726c894f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datarobotx_idp-0.2.16-py3-none-any.whl
Algorithm Hash digest
SHA256 dac923e5529c191b85c5b37f07aeb13ea9e60e0cc6c49bfd569984c77041fa99
MD5 aaed4335c7ec81a8f02beadeef7cd1f7
BLAKE2b-256 396179b88098943b2eadae7cdf83cca07b439cc2fbf2454f9e487a4dd613208c

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