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.17.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.17-py3-none-any.whl (62.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datarobotx_idp-0.2.17.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.17.tar.gz
Algorithm Hash digest
SHA256 3ed7afa5b6523f8be21892b16a416b2e3b3544287c8e05137d6a8a5c68e70f40
MD5 39dd79fbd678ba2f79c3a43a2aba0b2c
BLAKE2b-256 7f897bde65cd3a877c464ee87f259b064c248171373f8a2d9aa5f5f1f56ea15d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datarobotx_idp-0.2.17-py3-none-any.whl
Algorithm Hash digest
SHA256 d320e81cef5e4cd9d5c87d3dff568946e24ab853bcbbaaa8e8f712d04f0efa5d
MD5 143c650881ac8f1c1516a032773c2313
BLAKE2b-256 345c447fa1fc495f72285bd2a491213606029c6dd0fd0f5632972025eab5325f

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