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.3.0rc1.tar.gz (157.3 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.3.0rc1-py3-none-any.whl (482.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for digitalai_release_sdk-23.3.0rc1.tar.gz
Algorithm Hash digest
SHA256 d2564f8bfa7b2833e365eea8186a5d7393717cb51fecdfe476b1e8b70b6d3287
MD5 a63ea3d28899192c01cdd2d687edffe1
BLAKE2b-256 7cf0ff91aa7302d1a335ad333d58d84423a9ca9b79d81d775bd919723746abf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for digitalai_release_sdk-23.3.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 0cac870139c1a956cb9cb0ccc1ec9dfadc5540fd85575051ddb0e6c301ba66cd
MD5 073f47301db373763500dc936c577602
BLAKE2b-256 32e6ddf01607a51a9fed093cf8cc8f8129326c40bb36375ece4a156d191a3cf6

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