utils
mainsequence.client.utils
LazyConstants
Bases: dict
Class Method to load constants only once they are called. this minimizes the calls to the API
to_attr_dict(data)
Recursively convert a Python dict into an object that allows dot-notation access. Non-dict values (e.g., int, str, list) are returned as-is; dicts become _AttrDict.
is_process_running(pid)
Check if a process with the given PID is running.
Args: pid (int): The process ID to check.
Returns: bool: True if the process is running, False otherwise.