UiPath Core Abstractions

0.5.11 · active · verified Wed Apr 15

uipath-core is a foundational Python library providing core abstractions for the UiPath Python SDK. It encapsulates fundamental components like common exceptions, versioning, and registry mechanisms that underpin the broader UiPath automation and AI ecosystem. As of version 0.5.11, it serves as a dependency for higher-level UiPath libraries, offering essential building blocks for integration and development. Its release cadence is tied to the main UiPath Python SDK.

Warnings

Install

Imports

Quickstart

This example demonstrates how to import and handle a foundational exception from `uipath-core`, showcasing its role in providing core abstractions for custom components.

from uipath.core.exceptions import UiPathError

class CustomUiPathComponent:
    def __init__(self, name):
        self.name = name

    def execute(self, should_fail: bool):
        if should_fail:
            raise UiPathError(f"Component '{self.name}' failed to execute.")
        return f"Component '{self.name}' executed successfully."

try:
    component = CustomUiPathComponent("MyProcessor")
    print(component.execute(False))
    print(component.execute(True))
except UiPathError as e:
    print(f"Caught expected UiPathError: {e}")

view raw JSON →