quark.utils package

Submodules

quark.utils.colors module

quark.utils.colors.black(text)
quark.utils.colors.blue(text)
quark.utils.colors.bold(text)
quark.utils.colors.color(text, color_code)

Colorize text. @param text: text. @param color_code: color. @return: colorized text.

quark.utils.colors.cyan(text)
quark.utils.colors.green(text)
quark.utils.colors.lightblue(text)
quark.utils.colors.lightyellow(text)
quark.utils.colors.magenta(text)
quark.utils.colors.red(text)
quark.utils.colors.white(text)
quark.utils.colors.yel(text)
quark.utils.colors.yellow(text)

quark.utils.out module

quark.utils.tools module

quark.utils.tools.remove_dup_list(element)

Remove the duplicate elements in given list.

quark.utils.weight module

class quark.utils.weight.LEVEL_INFO

Bases: enum.Enum

An enumeration.

High = 'High Risk'
LOW = 'Low Risk'
Moderate = 'Moderate Risk'
class quark.utils.weight.Weight(score_sum, weight_sum)

Bases: object

calculate()

Module contents