Skip to main content

DataRobot Pulumi Utils

PyPI versions license

datarobot-pulumi-utils is a Python helper library for provisioning DataRobot resources with Pulumi. It builds on the official pulumi-datarobot provider and adds typed configuration models, custom resources for operations the provider does not cover, and small runtime helpers.

It is the shared foundation that DataRobot Application Templates use to define their infra/ Pulumi programs.

How it fits together

DataRobot's infrastructure-as-code stack has three layers, each building on the one below it:

terraform-provider-datarobot   Terraform provider (Go); defines DataRobot resources
          |
          |  bridged into a Pulumi provider by the Pulumi Terraform Bridge
          v
pulumi-datarobot               Pulumi provider; manage those resources from Python
          |
          |  extended with config schemas, extra resources, and helpers by
          v
datarobot-pulumi-utils         this repo
  1. terraform-provider-datarobot is the underlying Terraform provider. It defines the DataRobot resources and data sources.
  2. pulumi-datarobot bridges that Terraform provider into a Pulumi provider via the Pulumi Terraform Bridge, exposing the same resources to Python (and Node.js, Go, and .NET).
  3. datarobot-pulumi-utils (this repo) builds on pulumi-datarobot, adding the pieces below.

A practical consequence: if a DataRobot resource is missing or misbehaving, the fix usually belongs in whichever layer owns it. New resource coverage comes from the Terraform provider (surfaced through the Pulumi provider), while the higher-level config models and gap-filling resources live here.

What's in the box

datarobot_pulumi_utils.schema

Pydantic models that give you typed, validated configuration for DataRobot concepts: LLMs, guardrails, vector databases, custom models, applications, datasets, data connections, execution environments, predictions, and training. Use them to describe DataRobot config in one place instead of passing around loose dictionaries.

from datarobot_pulumi_utils.schema.exec_envs import RuntimeEnvironments

# Resolve a named DataRobot base environment to its ID (via the DataRobot API)
base_env_id = RuntimeEnvironments.PYTHON_312_APPLICATION_BASE.value.id

schema.llms additionally holds the LLM Gateway naming helpers ensure_datarobot_prefix() and DEPLOYED_LLM_PLACEHOLDER_MODEL. Note these operate on gateway / LiteLLM model strings (datarobot/azure/gpt-5-mini), which are a different namespace from the playground LLM ids in LLMs (azure-openai-gpt-5-mini).

datarobot_pulumi_utils.pulumi

Custom Pulumi resources (mostly dynamic providers that wrap the DataRobot Python SDK) for operations the official provider does not expose, all plugging into the normal pulumi up create/update/delete lifecycle. Covers query-generated datasets, dataset refresh, recipe datasets, challengers, custom model deployments, RAG and playground custom models, proxy LLM blueprints, execution environments, notebook execution (papermill), export collection, and stack helpers.

from datarobot_pulumi_utils.pulumi.stack import get_stack

pulumi.llm_credentials.get_runtime_values() resolves which provider serves a gateway model, creates the DataRobot credential resources that provider needs, and returns the custom-model runtime parameter values referencing them. pulumi.llm_blueprint.get_blueprint_runtime_parameters() returns the full runtime parameter set a blueprint-backed custom model needs to load.

from datarobot_pulumi_utils.pulumi.llm_credentials import get_runtime_values

# `resource_suffix` is part of each credential's resource name, and therefore part of its
# Pulumi identity -- changing it replaces live credentials.
runtime_values = get_runtime_values("datarobot/azure/gpt-5-mini", resource_suffix="[my-app]")

pulumi.write_dotenv() and pulumi.write_manifest() write outputs into a .env file, or into useCaseId and the # >>> infra outputs block of a workload's .datarobot.yaml, once pulumi up resolves them. Preview writes nothing; secret outputs are skipped.

datarobot_pulumi_utils.common

Small runtime utilities:

  • get_datarobot_url() / fix_url(): resolve the external DataRobot URL, including airgapped on-premise clusters where the API returns internal hostnames (see docs/AIRGAP_URL_MIGRATION.md).

  • check_feature_flags() / check_feature_flag_set(): assert that the DataRobot feature flags your program depends on are enabled -- from a YAML file, or from an in-memory dict[str, bool] respectively.

  • verify_llm_gateway_model_availability(): assert a model is present and active in this cluster's LLM Gateway catalog before deploying against it.

  • verify_llm(): send a one-token "Hi" to the configured LLM -- deployment, gateway, or external provider -- so a misconfigured model fails before pulumi up rather than after. Requires the optional llm extra.

from datarobot_pulumi_utils.common import get_datarobot_url, fix_url

Installation

pip install datarobot-pulumi-utils
# or
uv add datarobot-pulumi-utils

common.llm_validation.verify_llm() needs litellm, which ships as the optional llm extra:

pip install "datarobot-pulumi-utils[llm]"
# or
uv add "datarobot-pulumi-utils[llm]"

Requires Python 3.10+.

Development

This project uses uv for dependency management and Task as the command runner:

uv sync --all-extras --dev   # set up the environment
task lint-check              # check formatting, lint, and types (ruff + mypy)
task test                    # run the test suite
task build                   # build the package

Contributing

See CONTRIBUTING.md.

License

Apache 2.0 - see LICENSE for details.

Metadata

Release files for datarobot-pulumi-utils 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datarobot-pulumi-utils 0.1.9
File Size Uploaded Provenance Actions
datarobot_pulumi_utils-0.1.9.tar.gz 66.9 kB Without provenance Details for datarobot_pulumi_utils-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datarobot-pulumi-utils 0.1.9
File Interpreter ABI Platform Actions
datarobot_pulumi_utils-0.1.9-py3-none-any.whl Python 3 none any Details for datarobot_pulumi_utils-0.1.9-py3-none-any.whl

Total release size: 137.5 kB

Release files / datarobot_pulumi_utils-0.1.9.tar.gz

Download URL datarobot_pulumi_utils-0.1.9.tar.gz
Size 66.9 kB
Tags Source
SHA-256 checksum
How to use checksums
095216bcfec02442f79f89f10d361bf4f2a214aad768d1c71d77f9e5374603e1
BLAKE2b-256 checksum
How to use checksums
98a45cd0c2d36117b98571e23ced23f36b17e6bfd831f20351740efea96c54f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / datarobot_pulumi_utils-0.1.9-py3-none-any.whl

Download URL datarobot_pulumi_utils-0.1.9-py3-none-any.whl
Size 70.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38a1c5db5eedbb5c99a8c3899972e6133d9829743125144008de43fb1af62cc8
BLAKE2b-256 checksum
How to use checksums
af66c505507fb868753df247fd58ce9009fea8e321e2bb18e5da9190b884e92e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for datarobot-pulumi-utils 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page