AutoArchive._infrastructure.utils

Common helpers.

Sub-Packages

Modules

utils

Utils and Constants classes.

class AutoArchive._infrastructure.utils.utils.Constants[source]

Bases: object

Defines various “global” constants.

DEBUG = None

Debugging support.

class AutoArchive._infrastructure.utils.utils.Utils[source]

Bases: object

Various utility methods.

classmethod fatalExit(msg, appName=None)[source]

Prints msg to standard error and exits with exit code 2.

classmethod printError(msg, appName=None)[source]

Prints msg as an error to standard error.

classmethod printWarning(msg, appName=None)[source]

Prints msg as a warning to standard error.

static uniq(decorated)[source]

Decorator that filters out duplicate elements from an iterable returned by decorated function.