scglue.utils

Miscellaneous utilities

Functions

get_chained_attr

Get attribute from an object, with support for chained attribute names.

get_rs

Get random state object

logged

Add logger as an attribute

run_command

Run an external command and get realtime output

Classes

ConfigManager

Global configurations

ConstrainedDataFrame

Data frame with certain format constraints

DelayedKeyboardInterrupt

Shield a code block from keyboard interruptions, delaying handling till the block is finished (adapted from https://stackoverflow.com/a/21919644).

LogManager

Manage loggers used in the package

SingletonMeta

Ensure singletons via a meta class