CLI & Terminal

PyColorful

Third-party Python package module — colorful. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.ansi.rgb_to_ansi16()Neutral
#
Signature
ansi.rgb_to_ansi16(r, g, b, use_bright)

ansi.rgb_to_ansi16 function.

.ansi.rgb_to_ansi256()Neutral
#
Signature
ansi.rgb_to_ansi256(r, g, b)

ansi.rgb_to_ansi256 function.

.ansi.round()Neutral
#
Signature
ansi.round(value)

ansi.round function.

.colors.parse_colors()Neutral
#
Signature
colors.parse_colors(path)

colors.parse_colors function.

.colors.parse_json_color_file()Neutral
#
Signature
colors.parse_json_color_file(path)

colors.parse_json_color_file function.

.colors.parse_rgb_txt_file()Neutral
#
Signature
colors.parse_rgb_txt_file(path)

colors.parse_rgb_txt_file function.

.colors.sanitize_color_palette()Neutral
#
Signature
colors.sanitize_color_palette(colorpalette)

colors.sanitize_color_palette function.

.core.resolve_modifier_to_ansi_code()Neutral
#
Signature
core.resolve_modifier_to_ansi_code(modifiername, colormode)

core.resolve_modifier_to_ansi_code function.

.core.style_string()Neutral
#
Signature
core.style_string(string, ansi_style, colormode, nested)

core.style_string function.

.core.translate_colorname_to_ansi_code()Neutral
#
Signature
core.translate_colorname_to_ansi_code(colorname, offset, colormode, colorpalette)

core.translate_colorname_to_ansi_code function.

Fully-Qualified Names

FQNField
colorfulfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import colorful