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 hashes)
Built Distribution
Close
Hashes for datarobotx_idp-0.2.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b029dc49f7b39c4f01653631bb78c1532408651c5f4e4b02527a3eaca81e556 |
|
MD5 | 641192bcc12c53fabda8c0ec7cdaeb8f |
|
BLAKE2b-256 | c75112bb4fb64ed8c70a7acd0c98fac27c20b6ec6e3076335db8746cee93d8d2 |