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

Uploaded Python 3

File details

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

File metadata

  • Download URL: digitalai_release_sdk-24.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2b1dacc6f561592bf19bcc768a6ec9509baf66de62f790b16ea48ac43dccea4f
MD5 40ac8f5e5ca18c3bd29ae7c120e4542b
BLAKE2b-256 eeb2f0c60ac73088b54fbeb0d5d99ef7f1eaf5b8071833e478a7ed9989f82975

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for digitalai_release_sdk-24.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 84d540310a10b45311640539115fbe802466ba970ea6f13f6523546966000b85
MD5 38e94d58fd2746b4cedeba1ba634e645
BLAKE2b-256 e809faa64d65bdf2bc7ff4e94c55d4a7075283ce839923c45ef0ca6b713263cd

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