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-23.1.0rc1.tar.gz (156.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-23.1.0rc1-py3-none-any.whl (480.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for digitalai_release_sdk-23.1.0rc1.tar.gz
Algorithm Hash digest
SHA256 78401648275432b9a0e7158fbf7387309a2ba4bd39083cdde6a8696c7207ccfc
MD5 50e8272919afd28bc49c34cabfc2046d
BLAKE2b-256 554e02d449ea6c7ada2b6872905ccb384a648b5d1293349d773cc79afd3e8f0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for digitalai_release_sdk-23.1.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a0172dfc051123d7c05eccd07f4563ed11b28906beeda907429a5cf878ca931
MD5 7c530be2c5202bc094267f3180ee0358
BLAKE2b-256 42389844e9f2b3f37b1a356ea44723e4cc58b8b1b4ed0610f0a33a294cff1624

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