utils

Contains utility functions that are not-specific to the package functionalities.

Functions

log_exception(logger[, exec_info])

Decorator to log exceptions raised by a function.

log_duration(logger)

add_exc_note(note)

Context manager that adds a note to the exception raised in the context.

Classes

DurationTimer()

A timer that measures the duration of a context.

DurationTimerLog(logger, message[, ...])

Modules

result

Defines the result type and its variants: success and failure.