yib.yconsole

yconsole extends rich.console to provide extra functions.

class yib.yconsole.Console(*, color_system: ~typing.Literal['auto', 'standard', '256', 'truecolor', 'windows'] | None = 'auto', force_terminal: bool | None = None, force_jupyter: bool | None = None, force_interactive: bool | None = None, soft_wrap: bool = False, theme: ~rich.theme.Theme | None = None, stderr: bool = False, file: ~typing.IO[str] | None = None, quiet: bool = False, width: int | None = None, height: int | None = None, style: str | ~rich.style.Style | None = None, no_color: bool | None = None, tab_size: int = 8, record: bool = False, markup: bool = True, emoji: bool = True, emoji_variant: ~typing.Literal['emoji', 'text'] | None = None, highlight: bool = True, log_time: bool = True, log_path: bool = True, log_time_format: str | ~typing.Callable[[~datetime.datetime], ~rich.text.Text] = '[%X]', highlighter: ~typing.Callable[[str | ~rich.text.Text], ~rich.text.Text] | None = <rich.highlighter.ReprHighlighter object>, legacy_windows: bool | None = None, safe_box: bool = True, get_datetime: ~typing.Callable[[], ~datetime.datetime] | None = None, get_time: ~typing.Callable[[], float] | None = None, _environ: ~typing.Mapping[str, str] | None = None)[source]

Bases: Console

fatal(*objects: Any, sep: str = ' ', end: str = '\n', style: str | Style | None = None, justify: Literal['default', 'left', 'center', 'right', 'full'] | None = None, overflow: Literal['fold', 'crop', 'ellipsis', 'ignore'] | None = None, no_wrap: bool | None = None, emoji: bool | None = None, markup: bool | None = None, highlight: bool | None = None, width: int | None = None, height: int | None = None, crop: bool = True, soft_wrap: bool | None = None, new_line_start: bool = False) None[source]
fatal(*args, **kwargs) None

Print the message then exit with code 1.

warning(*objects: Any, sep: str = ' ', end: str = '\n', style: str | Style | None = None, justify: Literal['default', 'left', 'center', 'right', 'full'] | None = None, overflow: Literal['fold', 'crop', 'ellipsis', 'ignore'] | None = None, no_wrap: bool | None = None, emoji: bool | None = None, markup: bool | None = None, highlight: bool | None = None, width: int | None = None, height: int | None = None, crop: bool = True, soft_wrap: bool | None = None, new_line_start: bool = False) None[source]
warning(*args, **kwargs) None

Print the message prefixed a yellow WARNING:.

error(*objects: Any, sep: str = ' ', end: str = '\n', style: str | Style | None = None, justify: Literal['default', 'left', 'center', 'right', 'full'] | None = None, overflow: Literal['fold', 'crop', 'ellipsis', 'ignore'] | None = None, no_wrap: bool | None = None, emoji: bool | None = None, markup: bool | None = None, highlight: bool | None = None, width: int | None = None, height: int | None = None, crop: bool = True, soft_wrap: bool | None = None, new_line_start: bool = False) None[source]
error(*args, **kwargs) None

Print the message prefixed a red ERROR:.