Digital.ai Release SDK
Project description
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
BaseTaskabstract class. - Easily manage input and output properties.
- Interact with the Digital.ai Release environment seamlessly.
- Simplified API client for efficient communication with Release API.
Installation
Install the SDK using pip:
pip install digitalai-release-sdk
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)
Changelog
Version 25.1.0b3
🚨 Breaking Changes
- Removed
get_default_api_client()from theBaseTaskclass. - Removed
digitalai.release.v1package, which contained OpenAPI-generated stubs for Release API functions.- These stubs were difficult to use and had several non-functioning methods.
- A new, simplified API client replaces them for better usability and reliability.
✨ New Features
- Introduced
get_release_api_client()in theBaseTaskclass as a replacement forget_default_api_client(). - New
ReleaseAPIClientclass for simplified API interactions.- Functions in
ReleaseAPIClienttake an endpoint URL and body as a dictionary, making API calls more intuitive and easier to work with.
- Functions in
🔧 Changes & Improvements
- Updated minimum Python version requirement to 3.8.
- Updated dependency versions to enhance compatibility and security.
- Bundled
requestslibrary to ensure seamless HTTP request handling.
For more details, visit the official documentation.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file digitalai_release_sdk-25.1.0b4.tar.gz.
File metadata
- Download URL: digitalai_release_sdk-25.1.0b4.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cf8a2b2e2e6ff1fd69f2f7c11af188eedb77386fb8b2dd2bbd5f8f87923900d
|
|
| MD5 |
7450d500287aae6b10d4f6c2ec60ac2a
|
|
| BLAKE2b-256 |
e9e437ac8de1a362d2e1c4adbf4d6616a23f6e8f61ad5aaa5008c43937642b8b
|
File details
Details for the file digitalai_release_sdk-25.1.0b4-py3-none-any.whl.
File metadata
- Download URL: digitalai_release_sdk-25.1.0b4-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fa63b8fa213047aec3145514fab386b61ae477639fae4ef56864de0210cd357
|
|
| MD5 |
9720e6851f03cc0a534836be6d6f7967
|
|
| BLAKE2b-256 |
564caa00ddc28723e34abc197296231163b6a00cb11f91192aca55c6f61ee793
|