Tools

class libs.Tools
static check_ready()

Check status that service is ready or not

Returns:bool of status
static error_report()

Report errors as message

Returns:string
static get_time(time_format: str = '%b %d %Y %H:%M:%S %Z')

Get datetime with format

Parameters:time_format – string of format codes
Returns:
static lists_separate(lists: list, numbers: int)

Split lists to average

Parameters:
  • lists – list you want to separate
  • numbers – numbers in part you want
Returns:

static logger(error_msg, silent: bool = True)

Journal or print error message

Returns:
static set_ready(status: bool)

Set status whether service is ready or not

Parameters:status – bool of status
Returns: