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.19.tar.gz (40.7 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.19-py3-none-any.whl (62.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datarobotx_idp-0.2.19.tar.gz
  • Upload date:
  • Size: 40.7 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.19.tar.gz
Algorithm Hash digest
SHA256 defd610664a0c9b906c1f100bea88ab8a4d2947086f1e2f0616c9a9d8488d762
MD5 82f51d7b67d2f75b12660c0c07e1db4e
BLAKE2b-256 77f5e517a87b7b4e4e05e5e36ce3dcab7190f3a2e5e2adda2fd3de48092afd42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datarobotx_idp-0.2.19-py3-none-any.whl
Algorithm Hash digest
SHA256 e66d59dfc47a8054eb9926df3edc03ed1933548b768a4b78bab4debf633bc6f2
MD5 b9191bdeac7da50a80c885db67eb5c8d
BLAKE2b-256 1868faf7dc9e3e11267788b8c45f5368cb7b505f10f878bf4ebafc7716035c16

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