iota2.common.utils

This module contains decorators and utils functions

Functions

run(cmd[, desc, env, logger])

Launch a system command and raise an execption if fail

str2bool(val)

Convert a string vue to boolean usage: use in argParse as function to parse options :type val: str :param val: the value to convert

timer

perf_counter() -> float

wraps(wrapped[, assigned, updated])

Decorator factory to apply update_wrapper() to a wrapper function

Classes

RemoveInStringList(*args)

decorator used to remove element in return list according to strings

TimeIt(f)

chronometer decorator