helikite.classes.base

Classes

BaseProcessor

Helper class that provides a standard way to create an ABC using

Functions

function_dependencies([required_operations, use_once])

A decorator to enforce that a method can only run if the required

Module Contents

helikite.classes.base.function_dependencies(required_operations: list[str] = [], use_once=False)

A decorator to enforce that a method can only run if the required operations have been completed and not rerun.

If used without a list, the function can only run once.

class helikite.classes.base.BaseProcessor

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

_completed_operations: List[str] = []
abstractmethod _data_state_info() List[str]
_operations_state_info() List[str]
state()

Prints the current state of the class in a tabular format

help()

Prints available methods in a clean format

_print_success_errors(operation: str, success: list[str], errors: list[tuple[str, Any]]) None