openstef_core.utils#

Utility functions and helpers for OpenSTEF core functionality.

This package provides common utilities used throughout the OpenSTEF core library, including data serialization helpers, type conversion functions, and other general-purpose tools.

Functions#

align_datetime(timestamp, interval[, mode])

Align timestamp using modulo approach.

align_datetime_to_time(timestamp, align_time)

Align timestamp to the nearest occurrence of a specific time of day.

not_none(value)

Assert that a value is not None.

run_parallel(process_fn, items[, ...])

Execute a function in parallel across multiple processes.

timedelta_from_isoformat(s)

Convert ISO 8601 string format to timedelta.

timedelta_to_isoformat(td)

Convert timedelta to ISO 8601 string format.