Tools

class LOGS.Auxiliary.Tools.Tools[source]

Bases: object

classmethod checkAndConvert(value, fieldType, fieldName=None, converter=None, allowNone=False, initOnNone=False)[source]
Return type:

TypeVar(_T)

static checkDirectory(dir)[source]
classmethod checkListAndConvert(value, fieldType, fieldName=None, converter=None, allowNone=False, singleToList=False, length=-1)[source]
Return type:

List[TypeVar(_T)]

static convertToNativeNewline(text)[source]
classmethod eclipsesJoin(seperator, items, maxCount=3)[source]
classmethod getHumanReadableSize(size, suffix='B')[source]
classmethod getTypeFromTypeEntry(item, types)[source]
messageStrMaxLength = 25
static namedSwitchConverter(switchList)[source]
Return type:

Dict[str, bool]

classmethod numberPlural(word, count)[source]
classmethod osPathSeparators()[source]
classmethod plural(word, count)[source]
classmethod sanitizeFileName(fileName, defaultName='Unknown')[source]
static stringToId(s)[source]
classmethod truncString(text, length=30)[source]
Return type:

str

classmethod unbufferStdout()[source]
classmethod uuidConverter(value)[source]
classmethod wordToPlural(word)[source]
class LOGS.Auxiliary.Tools.Unbuffered(stream)[source]

Bases: object

write(data)[source]
writelines(data)[source]
class LOGS.Auxiliary.Tools.UnbufferedStdout[source]

Bases: Unbuffered