Chepy Internal

Colors

chepy.modules.internal.colors.blue(s: str) str

Blue color string if tty

Parameters

s (str) – String to color

Returns

Colored string

Return type

str

Examples

>>> from chepy.modules.internal.colors import blue
>>> print(BLUE("some string"))
chepy.modules.internal.colors.cyan(s: str) str

Cyan color string if tty

Parameters

s (str) – String to color

Returns

Colored string

Return type

str

Examples

>>> from chepy.modules.internal.colors import cyan
>>> print(CYAN("some string"))
chepy.modules.internal.colors.green(s: str) str

Green color string if tty

Parameters

s (str) – String to color

Returns

Colored string

Return type

str

Examples

>>> from chepy.modules.internal.colors import green
>>> print(GREEN("some string"))
chepy.modules.internal.colors.magenta(s: str) str

Magenta color string if tty

Parameters

s (str) – String to color

Returns

Colored string

Return type

str

Examples

>>> from chepy.modules.internal.colors import magenta
>>> print(MAGENTA("some string"))
chepy.modules.internal.colors.red(s: str) str

Red color string if tty

Parameters

s (str) – String to color

Returns

Colored string

Return type

str

Examples

>>> from chepy.modules.internal.colors import red
>>> print(RED("some string"))
chepy.modules.internal.colors.yellow(s: str) str

Yellow color string if tty

Parameters

s (str) – String to color

Returns

Colored string

Return type

str

Examples

>>> from chepy.modules.internal.colors import yellow
>>> print(YELLOW("some string"))
chepy.modules.internal.colors.yellow_background(s: str) str

Yellow color string if tty

Parameters

s (str) – String to color

Returns

Colored string

Return type

str