UiPath Core abstractions
Actively maintained. Last release 11 days ago, commits in 26 of the last 26 weeks. A safe choice.
pip install uipath-coreUiPath Core
Core abstractions and contracts for the UiPath Python SDK.
Installation
pip install uipath-core
Modules
Errors
Exception hierarchy for UiPath trigger errors with category-based classification.
ErrorCategory: Enum:DEPLOYMENT,SYSTEM,UNKNOWN,USERUiPathFaultedTriggerError: Base trigger error with category and detailUiPathPendingTriggerError: Pending trigger variant
from uipath.core.errors import ErrorCategory, UiPathFaultedTriggerError
Serialization
JSON serialization utilities for complex Python types. Handles Pydantic models (v1 & v2), dataclasses, enums, datetime/timezone objects, sets, tuples, and named tuples.
serialize_json(obj): Serialize any object to a JSON stringserialize_defaults(obj): Customdefaulthandler forjson.dumps()
from uipath.core.serialization import serialize_json
Tracing
OpenTelemetry integration with UiPath execution tracking. Provides function instrumentation, span lifecycle management, custom exporters, and batch/simple span processors with automatic execution.id propagation.
@traced: Decorator for sync/async function instrumentation. Supports custom span names, run types, input/output processors, and non-recording spansUiPathTraceManager: ManagesTracerProvider, span exporters, and processors. Providesstart_execution_span()context manager and span retrieval by execution ID