Skip to main content

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


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.0rc1.tar.gz (158.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

digitalai_release_sdk-24.1.0rc1-py3-none-any.whl (488.9 kB view details)

Uploaded Python 3

File details

Details for the file digitalai_release_sdk-24.1.0rc1.tar.gz.

File metadata

File hashes

Hashes for digitalai_release_sdk-24.1.0rc1.tar.gz
Algorithm Hash digest
SHA256 0ab70f5e6218508f83612e5a94f65bc5bdef8ce77ef8b1156f00c2c2687ad4ef
MD5 86b7abcb014ef4e97260e2fb05ec7f80
BLAKE2b-256 f80d0c29d004f254c030a1cf4d875fcd185481f06316d7c804caa2dd946bbeb3

See more details on using hashes here.

File details

Details for the file digitalai_release_sdk-24.1.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for digitalai_release_sdk-24.1.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b8fe0de190dee487f26bc7099369dd9c5d389e4d36aa0d7bb5012bdf315e258
MD5 a8e6635602e035fbe7dc288c367136e9
BLAKE2b-256 dd1852bbf6b77f4c008c0eba53841a2a2686da2cc30b39b0ab36c7978f1e8240

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page