Digital.ai Release SDK
Project description
Digital.ai Release SDK
The Digital.ai Release Python SDK (digitalai-release-sdk) is a set of tools that developers can use to create container-based tasks.
Developers can use the BaseTask
abstract class as a starting point to define their custom tasks and take advantage of the other methods and attributes provided by the SDK to interact with the task execution environment.
Installation
pip install digitalai-release-sdk
Task Example: hello.py
from digitalai.release.integration import BaseTask
class Hello(BaseTask):
def execute(self) -> None:
# Get the name from the input
name = self.input_properties['yourName']
if not name:
raise ValueError("The 'yourName' field cannot be empty")
# Create greeting
greeting = f"Hello {name}"
# Add greeting to the task's comment section in the UI
self.add_comment(greeting)
# Put greeting in the output of the task
self.set_output_property('greeting', greeting)
Documentation
Read more about Digital.ai Release Python SDK here
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
digitalai_release_sdk-24.1.0.tar.gz
(158.2 kB
view details)
Built Distribution
File details
Details for the file digitalai_release_sdk-24.1.0.tar.gz
.
File metadata
- Download URL: digitalai_release_sdk-24.1.0.tar.gz
- Upload date:
- Size: 158.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f986cb9025a3e5a07a5d8d2bb6f32d2f1a2e222c0732ab6fa9575c2538603fed |
|
MD5 | a672db95522eb5a56109f742777f4ea4 |
|
BLAKE2b-256 | 7bbcaec9588553cbcaaf88b3014c6779b642cdc4d1145d05a9f3fc8a976c8893 |
File details
Details for the file digitalai_release_sdk-24.1.0-py3-none-any.whl
.
File metadata
- Download URL: digitalai_release_sdk-24.1.0-py3-none-any.whl
- Upload date:
- Size: 488.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 910f9ba33d680c1e3e01ef286a853e63855adc7f223d4b4baa2f4823ce60665c |
|
MD5 | 37e3202a5be102578c45994282032b40 |
|
BLAKE2b-256 | 6b3faf101c651a09ac34e2add85b46b5fa2703dee4091a9042dec079a681c0dd |