/usr/lib/fixperms/venv/lib/python3.13/site-packages/rads
NameSizeModeActions
__pycache__/-0755rm
color.py21250644editdlrm
semaphore.py52560644editdlrm
vz.py179180644editdlrm
_email.py31310644editdlrm
_fsquota.py79990644editdlrm
_globals.py16280644editdlrm
_input.py26300644editdlrm
_locking.py20320644editdlrm
_logging.py68240644editdlrm
_sa.py31410644editdlrm
_tickets.py16670644editdlrm
_users.py192390644editdlrm
_yaml.py13140644editdlrm
__init__.py33170644editdlrm
Edit: /usr/lib/fixperms/venv/lib/python3.13/site-packages/rads/color.py (2125B)
"""Functions for colorizing console text Example individually coloring a print argument: ``print(rads.color.red('test'))`` Example coloring a list and using star-args to print: ``print(*rads.color.red('a', 'b'))`` """ from collections.abc import Iterable def _colorize(*args: str | Iterable, color: str) -> str | Iterable: out = [f'{color}{x}\033[0m' for x in args] if not out: return '' if len(out) == 1: return out[0] return out def red(*args: str | Iterable) -> str | Iterable: """Color console text red Args: args: text to colorize """ return _colorize(*args, color='\33[91;1m') def green(*args: str | Iterable) -> str | Iterable: """Color console text green Args: args: text to colorize """ return _colorize(*args, color='\033[92;1m') def yellow(*args: str | Iterable) -> str | Iterable: """Color console text yellow Args: args: text to colorize """ return _colorize(*args, color='\033[93;1m') def blue(*args: str | Iterable) -> str | Iterable: """Color console text blue Args: args: text to colorize """ return _colorize(*args, color='\033[94;1m') def magenta(*args: str | Iterable) -> str | Iterable: """Color console text magenta Args: args: text to colorize """ return _colorize(*args, color='\033[95m') def cyan(*args: str | Iterable) -> str | Iterable: """Color console text cyan Args: args: text to colorize """ return _colorize(*args, color='\033[96m') def bold(*args: str | Iterable) -> str | Iterable: """Color console text bold Args: args: text to colorize """ return _colorize(*args, color='\033[1m') def underline(*args: str | Iterable) -> str | Iterable: """Color console text underline Args: args: text to colorize """ return _colorize(*args, color='\033[4m') def invert(*args: str | Iterable) -> str | Iterable: """Color console text inverted Args: args: text to colorize """ return _colorize(*args, color='\033[7m')