Skip to main content

Classes

The core building blocks of your Layline Python applications — from data handling and time manipulation to workflow orchestration and external service integration.


Data & Messaging

ClassDescription
Arith64Performs correct 64-bit arithmetic and bitwise operations for large integers.
CompressionUtilsUtility class for compressing and decompressing data, plus reading ZIP archives.
DataDictionaryProvides access to all data structures defined in your project — message types, record formats, and field definitions.
DataDictionaryEntityRepresents a single node in your data dictionary hierarchy for type-safe access to message fields.
DataDictionaryTypesRepresents the dynamically generated structure of a data dictionary based on the specific configuration.
MessageThe central data structure in layline.io — every event flowing through a workflow is encapsulated as a Message.
MessageNodeIndividual node of a Message for hierarchical data access.
PackedMessageA memory-efficient compressed representation of a Message.
StringUtilsUtility class for common string operations: encoding, decoding, validation, and charset conversion.

Date & Time

ClassDescription
DateTimeRepresents a point in time with date, time, and timezone offset information.
DurationRepresents an amount of time — days, hours, minutes, seconds, milliseconds, or nanoseconds.
LocalDateRepresents a date without time or timezone — just year, month, and day.
TimeRepresents a time of day without date or timezone — just hour, minute, second, and nanosecond.
TimeZoneRepresents a timezone for use with DateTime, LocalDate, and Time, handling daylight saving time automatically.
ZoneOffsetRepresents a fixed offset from UTC with no daylight saving time changes.

Workflow & Processing

ClassDescription
CounterA thread-safe counter for tracking numeric values — message counts, totals, or any incrementing/decrementing metric.
MetricsProvides access to performance counters and operational metrics.
OutputPortRepresents a connection from one processor to another within a workflow.
ProcessorProvides access to the current processor's configuration and runtime properties.
PythonProcessorDefines the lifecycle hooks available in a Python Asset — startup, message arrival, stream boundaries, and shutdown.
StreamRepresents the current data stream being processed.
WorkflowProvides access to the current workflow's metadata — its name and data dictionary.

Services & Integration

ClassDescription
ConnectionRepresents an active link to a service (e.g., JDBC database, HTTP endpoint) with transaction support.
EmailSend emails through a configured Email Service.
ServiceProvides integrations with external systems — databases, message queues, HTTP APIs, email servers, and more.
TimerServiceSchedule and manage timers that trigger workflows at specific times or intervals.
VendorGroups related StatusCode definitions together.

Status & Error Handling

ClassDescription
StatusRepresents a structured error, warning, or informational message attached to a Message.
StatusCodeA single entry in a Resource Status Definition Asset — the template definition for a Status.
StatusRegistryProvides access to all defined vendors and status codes in your project.