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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for digitalai_release_sdk-24.1.0.tar.gz
Algorithm Hash digest
SHA256 f986cb9025a3e5a07a5d8d2bb6f32d2f1a2e222c0732ab6fa9575c2538603fed
MD5 a672db95522eb5a56109f742777f4ea4
BLAKE2b-256 7bbcaec9588553cbcaaf88b3014c6779b642cdc4d1145d05a9f3fc8a976c8893

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for digitalai_release_sdk-24.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 910f9ba33d680c1e3e01ef286a853e63855adc7f223d4b4baa2f4823ce60665c
MD5 37e3202a5be102578c45994282032b40
BLAKE2b-256 6b3faf101c651a09ac34e2add85b46b5fa2703dee4091a9042dec079a681c0dd

See more details on using hashes here.

Supported by

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