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.1b1.tar.gz (156.9 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.1b1-py3-none-any.whl (489.1 kB view details)

Uploaded Python 3

File details

Details for the file digitalai_release_sdk-24.1.1b1.tar.gz.

File metadata

  • Download URL: digitalai_release_sdk-24.1.1b1.tar.gz
  • Upload date:
  • Size: 156.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for digitalai_release_sdk-24.1.1b1.tar.gz
Algorithm Hash digest
SHA256 c2fa3491e1357f908fc9b98c9862f43499507e9ac77e17b1a06ff8b67a1c7720
MD5 5f7922b09f69c7f665b177a21673f960
BLAKE2b-256 10e991b279f3bc3d3eb21b57c2b40fa368754f179287dea4e46383eab84d092b

See more details on using hashes here.

File details

Details for the file digitalai_release_sdk-24.1.1b1-py3-none-any.whl.

File metadata

File hashes

Hashes for digitalai_release_sdk-24.1.1b1-py3-none-any.whl
Algorithm Hash digest
SHA256 65c6b9deb8f827da75c98070596eb6b8bdc569bd062dc365b831c8e9d45841e1
MD5 4a74047316de528b5213b8943678e042
BLAKE2b-256 c870f3ce06671391dd90c69e30c29940dc2e9f4c288fc5bb3b194e941bb779e2

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