manafa.utils package

Submodules

manafa.utils.Logger module

class manafa.utils.Logger.LogSeverity(value)[source]

Bases: enum.Enum

An enumeration.

ERROR = 'Error'
FATAL = 'Fatal'
INFO = 'Info'
SUCCESS = 'Success'
WARNING = 'Warning'
manafa.utils.Logger.getColor(sev)[source]
manafa.utils.Logger.log(message, log_sev=<LogSeverity.INFO: 'Info'>, time=1646224292.1531498)[source]

manafa.utils.Utils module

manafa.utils.Utils.execute_shell_command(cmd, args=[])[source]
manafa.utils.Utils.get_pack_dir(packname='manafa')[source]
manafa.utils.Utils.get_reference_dir(packname)[source]
manafa.utils.Utils.get_resources_dir(packname='manafa', default_res_dir='resources')[source]
manafa.utils.Utils.get_results_dir(packname='manafa', default_results_dir='results')[source]
manafa.utils.Utils.is_float(string)[source]
manafa.utils.Utils.mega_find(basedir, pattern='*', maxdepth=999, mindepth=0, type_file='n')[source]

manafa.utils.dateUtils module

manafa.utils.dateUtils.batStatResetTimeToTimeStamp(matime, timezone='UTC')[source]
manafa.utils.dateUtils.convertBatStatTimeToTimeStamp(batstattime, timezone='EST')[source]
manafa.utils.dateUtils.convertDateToTimeStamp(date, timezone='EST')[source]
manafa.utils.dateUtils.convertToUnixTimestamp(batstattime)[source]
manafa.utils.dateUtils.epochToDate(ts)[source]

Module contents