taegel.views package
Submodules
taegel.views.log module
- taegel.views.log.print(msg: str, title=False)
Just display some text on the screen. Just to make it easer to add some logic on the display before doing it, but it just do that for now…
- Parameters
msg (str) – Text to display:
- taegel.views.log.warning(msg: str)
Print an message in the srcreen, but with an simple “warning” sign before the text.
- Parameters
msg (str) – Text to display:
taegel.views.progress module
- taegel.views.progress.downloading(ppipe: Connection, total: int, done: int) None
Display a progress bar that recives the progress information throught parent pipe channel.
- Parameters
ppipe (Connection) – Parent pipe channel to recive information.
total (int) – Total steps to comple the progress bar.
- taegel.views.progress.downloading_handler(ppipe: Connection, prog: Progress, task: TaskID) None
Log handler for the
downloading()
progress bar, this recives the info sended throught the parent pipe and update the task with that.- Parameters
ppipe (Connection) – Parent pipe to recive the log status.
prog (Progress) – Progress bar to update and display the log messages.
task (TaskID) – Task to be updated.
- taegel.views.progress.idle(description: str) Callable
Decorator that keep displaying a simple idle progress bar until the decorated function ends.
- Parameters
description (str) – Task name to display aside with the bar.
- taegel.views.progress.idle_config: list[Any] = [<rich.progress.SpinnerColumn object>, '{task.description}', <rich.progress.BarColumn object>]
Configuration for the idle progress bar display
- taegel.views.progress.progress_config: list[Any] = [<rich.progress.SpinnerColumn object>, '{task.description}', <rich.progress.BarColumn object>, <rich.progress.TextColumn object>]
Configuration for the download process progress bar display