Current Path: > > opt > hc_python > > lib > python3.12 > site-packages > pip > _vendor > rich
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
__init__.py | File | 6090 bytes | May 23 2025 10:34:25. | |
__main__.py | File | 8477 bytes | May 23 2025 10:34:25. | |
_cell_widths.py | File | 10209 bytes | May 23 2025 10:34:25. | |
_emoji_codes.py | File | 140235 bytes | May 23 2025 10:34:25. | |
_emoji_replace.py | File | 1064 bytes | May 23 2025 10:34:25. | |
_export_format.py | File | 2128 bytes | May 23 2025 10:34:25. | |
_extension.py | File | 265 bytes | May 23 2025 10:34:25. | |
_fileno.py | File | 799 bytes | May 23 2025 10:34:25. | |
_inspect.py | File | 9655 bytes | May 23 2025 10:34:25. | |
_log_render.py | File | 3225 bytes | May 23 2025 10:34:25. | |
_loop.py | File | 1236 bytes | May 23 2025 10:34:25. | |
_null_file.py | File | 1394 bytes | May 23 2025 10:34:25. | |
_palettes.py | File | 7063 bytes | May 23 2025 10:34:25. | |
_pick.py | File | 423 bytes | May 23 2025 10:34:25. | |
_ratio.py | File | 5471 bytes | May 23 2025 10:34:25. | |
_spinners.py | File | 19919 bytes | May 23 2025 10:34:25. | |
_stack.py | File | 351 bytes | May 23 2025 10:34:25. | |
_timer.py | File | 417 bytes | May 23 2025 10:34:25. | |
_win32_console.py | File | 22755 bytes | May 23 2025 10:34:25. | |
_windows.py | File | 1925 bytes | May 23 2025 10:34:25. | |
_windows_renderer.py | File | 2783 bytes | May 23 2025 10:34:25. | |
_wrap.py | File | 3404 bytes | May 23 2025 10:34:25. | |
abc.py | File | 890 bytes | May 23 2025 10:34:25. | |
align.py | File | 10469 bytes | May 23 2025 10:34:25. | |
ansi.py | File | 6921 bytes | May 23 2025 10:34:25. | |
bar.py | File | 3263 bytes | May 23 2025 10:34:25. | |
box.py | File | 10831 bytes | May 23 2025 10:34:25. | |
cells.py | File | 5130 bytes | May 23 2025 10:34:25. | |
color.py | File | 18211 bytes | May 23 2025 10:34:25. | |
color_triplet.py | File | 1054 bytes | May 23 2025 10:34:25. | |
columns.py | File | 7131 bytes | May 23 2025 10:34:25. | |
console.py | File | 100565 bytes | May 23 2025 10:34:25. | |
constrain.py | File | 1288 bytes | May 23 2025 10:34:25. | |
containers.py | File | 5502 bytes | May 23 2025 10:34:25. | |
control.py | File | 6630 bytes | May 23 2025 10:34:25. | |
default_styles.py | File | 8257 bytes | May 23 2025 10:34:25. | |
diagnose.py | File | 998 bytes | May 23 2025 10:34:25. | |
emoji.py | File | 2501 bytes | May 23 2025 10:34:25. | |
errors.py | File | 642 bytes | May 23 2025 10:34:25. | |
file_proxy.py | File | 1683 bytes | May 23 2025 10:34:25. | |
filesize.py | File | 2484 bytes | May 23 2025 10:34:25. | |
highlighter.py | File | 9586 bytes | May 23 2025 10:34:25. | |
json.py | File | 5031 bytes | May 23 2025 10:34:25. | |
jupyter.py | File | 3252 bytes | May 23 2025 10:34:25. | |
layout.py | File | 14004 bytes | May 23 2025 10:34:25. | |
live.py | File | 14270 bytes | May 23 2025 10:34:25. | |
live_render.py | File | 3666 bytes | May 23 2025 10:34:25. | |
logging.py | File | 12458 bytes | May 23 2025 10:34:25. | |
markup.py | File | 8451 bytes | May 23 2025 10:34:25. | |
measure.py | File | 5305 bytes | May 23 2025 10:34:25. | |
padding.py | File | 4908 bytes | May 23 2025 10:34:25. | |
pager.py | File | 828 bytes | May 23 2025 10:34:25. | |
palette.py | File | 3396 bytes | May 23 2025 10:34:25. | |
panel.py | File | 11225 bytes | May 23 2025 10:34:25. | |
pretty.py | File | 36391 bytes | May 23 2025 10:34:25. | |
progress.py | File | 60357 bytes | May 23 2025 10:34:25. | |
progress_bar.py | File | 8162 bytes | May 23 2025 10:34:25. | |
prompt.py | File | 12447 bytes | May 23 2025 10:34:25. | |
protocol.py | File | 1391 bytes | May 23 2025 10:34:25. | |
py.typed | File | 0 bytes | May 23 2025 10:34:25. | |
region.py | File | 166 bytes | May 23 2025 10:34:25. | |
repr.py | File | 4431 bytes | May 23 2025 10:34:25. | |
rule.py | File | 4602 bytes | May 23 2025 10:34:25. | |
scope.py | File | 2843 bytes | May 23 2025 10:34:25. | |
screen.py | File | 1591 bytes | May 23 2025 10:34:25. | |
segment.py | File | 24743 bytes | May 23 2025 10:34:25. | |
spinner.py | File | 4364 bytes | May 23 2025 10:34:25. | |
status.py | File | 4424 bytes | May 23 2025 10:34:25. | |
style.py | File | 27059 bytes | May 23 2025 10:34:25. | |
styled.py | File | 1258 bytes | May 23 2025 10:34:25. | |
syntax.py | File | 35763 bytes | May 23 2025 10:34:25. | |
table.py | File | 40049 bytes | May 23 2025 10:34:25. | |
terminal_theme.py | File | 3370 bytes | May 23 2025 10:34:25. | |
text.py | File | 47552 bytes | May 23 2025 10:34:25. | |
theme.py | File | 3771 bytes | May 23 2025 10:34:25. | |
themes.py | File | 102 bytes | May 23 2025 10:34:25. | |
traceback.py | File | 35170 bytes | May 23 2025 10:34:25. | |
tree.py | File | 9451 bytes | May 23 2025 10:34:25. |
from types import TracebackType from typing import Optional, Type from .console import Console, RenderableType from .jupyter import JupyterMixin from .live import Live from .spinner import Spinner from .style import StyleType class Status(JupyterMixin): """Displays a status indicator with a 'spinner' animation. Args: status (RenderableType): A status renderable (str or Text typically). console (Console, optional): Console instance to use, or None for global console. Defaults to None. spinner (str, optional): Name of spinner animation (see python -m rich.spinner). Defaults to "dots". spinner_style (StyleType, optional): Style of spinner. Defaults to "status.spinner". speed (float, optional): Speed factor for spinner animation. Defaults to 1.0. refresh_per_second (float, optional): Number of refreshes per second. Defaults to 12.5. """ def __init__( self, status: RenderableType, *, console: Optional[Console] = None, spinner: str = "dots", spinner_style: StyleType = "status.spinner", speed: float = 1.0, refresh_per_second: float = 12.5, ): self.status = status self.spinner_style = spinner_style self.speed = speed self._spinner = Spinner(spinner, text=status, style=spinner_style, speed=speed) self._live = Live( self.renderable, console=console, refresh_per_second=refresh_per_second, transient=True, ) @property def renderable(self) -> Spinner: return self._spinner @property def console(self) -> "Console": """Get the Console used by the Status objects.""" return self._live.console def update( self, status: Optional[RenderableType] = None, *, spinner: Optional[str] = None, spinner_style: Optional[StyleType] = None, speed: Optional[float] = None, ) -> None: """Update status. Args: status (Optional[RenderableType], optional): New status renderable or None for no change. Defaults to None. spinner (Optional[str], optional): New spinner or None for no change. Defaults to None. spinner_style (Optional[StyleType], optional): New spinner style or None for no change. Defaults to None. speed (Optional[float], optional): Speed factor for spinner animation or None for no change. Defaults to None. """ if status is not None: self.status = status if spinner_style is not None: self.spinner_style = spinner_style if speed is not None: self.speed = speed if spinner is not None: self._spinner = Spinner( spinner, text=self.status, style=self.spinner_style, speed=self.speed ) self._live.update(self.renderable, refresh=True) else: self._spinner.update( text=self.status, style=self.spinner_style, speed=self.speed ) def start(self) -> None: """Start the status animation.""" self._live.start() def stop(self) -> None: """Stop the spinner animation.""" self._live.stop() def __rich__(self) -> RenderableType: return self.renderable def __enter__(self) -> "Status": self.start() return self def __exit__( self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType], ) -> None: self.stop() if __name__ == "__main__": # pragma: no cover from time import sleep from .console import Console console = Console() with console.status("[magenta]Covid detector booting up") as status: sleep(3) console.log("Importing advanced AI") sleep(3) console.log("Advanced Covid AI Ready") sleep(3) status.update(status="[bold blue] Scanning for Covid", spinner="earth") sleep(3) console.log("Found 10,000,000,000 copies of Covid32.exe") sleep(3) status.update( status="[bold red]Moving Covid32.exe to Trash", spinner="bouncingBall", spinner_style="yellow", ) sleep(5) console.print("[bold green]Covid deleted successfully")
SILENT KILLER Tool