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
- Public functions must be idempotent
- Function signatures must be type hinted (enforced by mypy)
- Functions must have numpydoc-style docstrings (enforced by ruff)
- Functions must either have a unit or integration test
Principles
- Group code so it can be easily understood and edited at the .py level
- Minimize dependencies
- Isolate dependencies by submodule to reduce risk of dependency conflicts
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1047c4e809110ba68ce2febb6970390eb8589d0d0054054918794688da0141d3 |
|
MD5 | 59582fdeca8a22117dd2ed4f8c2db341 |
|
BLAKE2b-256 | d1c1e54b12fe646a75b5afcfac4a6640b36ae4fa6f2e1d439cda7bc7e8feb6b7 |
File details
Details for the file datarobotx_idp-0.2.13-py3-none-any.whl
.
File metadata
- Download URL: datarobotx_idp-0.2.13-py3-none-any.whl
- Upload date:
- Size: 61.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b029dc49f7b39c4f01653631bb78c1532408651c5f4e4b02527a3eaca81e556 |
|
MD5 | 641192bcc12c53fabda8c0ec7cdaeb8f |
|
BLAKE2b-256 | c75112bb4fb64ed8c70a7acd0c98fac27c20b6ec6e3076335db8746cee93d8d2 |