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

Uploaded Python 3

File details

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

File metadata

  • Download URL: datarobotx_idp-0.2.18.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.18.tar.gz
Algorithm Hash digest
SHA256 9d0d203c456844fdfc40b8dddeaa5e14ef7faccb122eaa48551b4414ff8b203e
MD5 24a9bf3c12814eb02880ef71e4e463b2
BLAKE2b-256 de435b21c62b73ae9c10eff93b002310d25a592ace568a850eb6899be7f1c5a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datarobotx_idp-0.2.18-py3-none-any.whl
Algorithm Hash digest
SHA256 adf9431113722d6b5fefb4d8b8da492e4cca8722fdf712e5e27d245e836ab316
MD5 9ec071531cb1a8e8cc5ba91610a9beca
BLAKE2b-256 20bd36134e3762f6d057f92679c58efe6409ebb4b6324aefd230d4d7073fdc32

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