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.0.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.0-py3-none-any.whl (482.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: digitalai_release_sdk-23.3.0.tar.gz
  • Upload date:
  • Size: 157.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for digitalai_release_sdk-23.3.0.tar.gz
Algorithm Hash digest
SHA256 9a0e8548151de23915157593a4e9d8b703e2a9f1c95b220a637be03a29dfe6a4
MD5 7f33a869abc06737d8f52c17afd2f3ea
BLAKE2b-256 df695ac64915fb41b46735e8773eef43288fda425871507df1299df34b65e0ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for digitalai_release_sdk-23.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7aa70c5c0ffe9b5c4757682fb991ae38038b83f26d510900d7fcd8b8a3183bb8
MD5 e75c2e4e3dcdaf311b75f9db16f4aeff
BLAKE2b-256 f4cabf07f36a033d7591727c316cf92eadeb67bd9ec133fef45f876291d7a01d

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