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.1.0.tar.gz (156.1 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.1.0-py3-none-any.whl (480.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: digitalai_release_sdk-23.1.0.tar.gz
  • Upload date:
  • Size: 156.1 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.1.0.tar.gz
Algorithm Hash digest
SHA256 c98c75bf0991bdb79bf0f7876ca7bf72b99f7a676b3239d3486d09d426118a37
MD5 d1cdaa87610ee7da94cce01113a447b0
BLAKE2b-256 e4f56a1736c4a4500dc898781378eebf62e8abca4a4474e028abbfff06fcc10f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for digitalai_release_sdk-23.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0a983a5d42597562d0f8356c70730120e095a30e843b6f988a3fdd2158da2ba
MD5 f44a3b79f8865abe798d095eef8c9eca
BLAKE2b-256 b05cf95d667201a3f485d0391c97fbcd45524482014f74bc28ccf0646e7b4f58

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