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.
- Define custom tasks using the
BaseTask
abstract class. - Easily manage input and output properties.
- Interact with the Digital.ai Release environment seamlessly.
- Simplified API client for efficient communication with Release API.
Install the SDK using pip
:
pip install digitalai-release-sdk
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)
- Added support for the
lookup
functionality in task fields, allowing dynamic population of field values based on runtime data or external sources.
-
🧪 Python Template Project: release-integration-template-python
A starting point for building custom integrations using Digital.ai Release and Python. -
📘 Official Documentation: Digital.ai Release Python SDK Docs
Comprehensive guide to using the Python SDK and building custom tasks. -
📦 Digital.ai Release Python SDK: digitalai-release-sdk on PyPI
The official SDK package for integrating with Digital.ai Release.