Skip to main content

Digital.ai Release SDK

Project description

Digital.ai Release Python SDK

The Digital.ai Release Python SDK (digitalai-release-sdk) provides a set of tools for developers to create container-based plugins with Digital.ai Release. It simplifies plugin creation by offering built-in methods to interact with the execution environment.

Features

  • Define custom tasks using the BaseTask abstract class.
  • Easily manage input and output properties.
  • Interact with the Digital.ai Release environment seamlessly.
  • Simplified API client for efficient communication with Release API.

Installation

Install the SDK using pip:

pip install digitalai-release-sdk

Getting Started

Example Task: hello.py

The following example demonstrates how to create a simple task using the SDK:

from digitalai.release.integration import BaseTask

class Hello(BaseTask):
    
    def execute(self) -> None:
        # Get the name from the input
        name = self.input_properties.get('yourName')
        if not name:
            raise ValueError("The 'yourName' field cannot be empty")

        # Create greeting message
        greeting = f"Hello {name}"

        # Add greeting to the task's comment section in the UI
        self.add_comment(greeting)

        # Store greeting as an output property
        self.set_output_property('greeting', greeting)

Changelog

Version 25.1.0b3

🚨 Breaking Changes

  • Removed get_default_api_client() from the BaseTask class.
  • Removed digitalai.release.v1 package, which contained OpenAPI-generated stubs for Release API functions.
    • These stubs were difficult to use and had several non-functioning methods.
    • A new, simplified API client replaces them for better usability and reliability.

✨ New Features

  • Introduced get_release_api_client() in the BaseTask class as a replacement for get_default_api_client().
  • New ReleaseAPIClient class for simplified API interactions.
    • Functions in ReleaseAPIClient take an endpoint URL and body as a dictionary, making API calls more intuitive and easier to work with.

🔧 Changes & Improvements

  • Updated minimum Python version requirement to 3.8.
  • Updated dependency versions to enhance compatibility and security.
  • Bundled requests library to ensure seamless HTTP request handling.

For more details, visit the official documentation.

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-25.1.0b3.tar.gz (14.0 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-25.1.0b3-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file digitalai_release_sdk-25.1.0b3.tar.gz.

File metadata

  • Download URL: digitalai_release_sdk-25.1.0b3.tar.gz
  • Upload date:
  • Size: 14.0 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-25.1.0b3.tar.gz
Algorithm Hash digest
SHA256 2aff428300d6c9793b41eb7cc9fca722143c822406ea81d1889cb15dd4b98356
MD5 84e10fbf5626bbb4bbb52c20ec2bc6df
BLAKE2b-256 132ec04d4094ef15c5cccde7dec8708a053189955a18d7df48cf4befa86338ed

See more details on using hashes here.

File details

Details for the file digitalai_release_sdk-25.1.0b3-py3-none-any.whl.

File metadata

File hashes

Hashes for digitalai_release_sdk-25.1.0b3-py3-none-any.whl
Algorithm Hash digest
SHA256 1019566bfcaba282b2aae51f5d705f69f001cc259e776eb64c0a0367736cddad
MD5 ef6590d7b2a5bb8f1321600ca369b56f
BLAKE2b-256 9488bc18ecc0c73cb850d006af3888118a1df16f556269e28f2226de4245dfb4

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