Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Digital.ai Release Python SDK

The Digital.ai Release Python SDK (digitalai-release-sdk) provides a set of tools for developers to create container-based integration with Digital.ai Release. It simplifies integration creation by offering built-in functions to interact with the execution environment.

Features

  • Define custom tasks using the BaseTask abstract class.
  • Subclass ApiBaseTask to access the Release APIs (releaseApi, phaseApi, taskApi, ...) through a ready-to-use client.
  • Easily manage input and output properties.
  • Interact with the Digital.ai Release environment seamlessly.

Installation

Install the SDK using pip:

pip install digitalai-release-sdk

Note: The SDK depends on digitalai-release-api-client, which is installed automatically.

Getting Started

Example Task: hello.py

The following example demonstrates how to create a simple task using the SDK:

from digitalai.release.integration import BaseTask

class Hello(BaseTask):
    
    def execute(self) -> None:
        # Get the name from the input
        name = self.input_properties.get('yourName')
        if not name:
            raise ValueError("The 'yourName' field cannot be empty")

        # Create greeting message
        greeting = f"Hello {name}"

        # Add greeting to the task's comment section in the UI
        self.add_comment(greeting)

        # Store greeting as an output property
        self.set_output_property('greeting', greeting)

Example Task using the Release API: ApiBaseTask

Subclass ApiBaseTask to call the Release v1 REST API without building a client yourself. Every API is exposed as a lazily created, cached property, all sharing a single client built from the task's "Run as user" context:

from digitalai.release.integration.api_base_task import ApiBaseTask


class ShowVersion(ApiBaseTask):

    def execute(self) -> None:
        release = self.releaseApi.getRelease(self.get_release_id())
        self.add_comment(f"Working on {release.title}")

Changelog

Version 26.3.0 (Beta)

🚀 Features

  • Added the ApiBaseTask base class, exposing every Release v1 API as a lazily created, cached property.
  • get_release_api_client() now supports optional credentials/server URL and requests library arguments.
  • Added get_phase_id() and get_folder_id() helper methods to BaseTask.

🛠️ Enhancements

  • Improved stability and error handling for API requests and Kubernetes tasks.

Metadata

Release files for digitalai_release_sdk 26.3.0b5

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

Source distribution (sdist)

Source distribution for digitalai_release_sdk 26.3.0b5
File Size Uploaded Provenance Actions
digitalai_release_sdk-26.3.0b5.tar.gz 18.8 kB Without provenance Details for digitalai_release_sdk-26.3.0b5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for digitalai_release_sdk 26.3.0b5
File Interpreter ABI Platform Actions
digitalai_release_sdk-26.3.0b5-py3-none-any.whl Python 3 none any Details for digitalai_release_sdk-26.3.0b5-py3-none-any.whl

Total release size: 42.9 kB

Release files / digitalai_release_sdk-26.3.0b5.tar.gz

Download URL digitalai_release_sdk-26.3.0b5.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
65d4a38a5177a5222f5dd1403ec8867744502f77140d3f9734f055defa878691
BLAKE2b-256 checksum
How to use checksums
c40d8e86a184ccf19982aaad74d203ef64b432aefd7e5866f60e6de194021b2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.5

Release files / digitalai_release_sdk-26.3.0b5-py3-none-any.whl

Download URL digitalai_release_sdk-26.3.0b5-py3-none-any.whl
Size 24.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b09a7882d5d5c78b11e14b7b2b5c6213554b83f523184648e3d744db6884e8bb
BLAKE2b-256 checksum
How to use checksums
e7298dd2d2ac8fba05a3e9fdcd99d7d7da39050d7c0a7733e449b0420b772abb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.5

Security for digitalai_release_sdk 26.3.0b5

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

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