HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/site-packages/pip/_vendor/rich/__pycache__/status.cpython-37.pyc
B

L��gI�	@s$ddlmZddlmZmZddlmZmZddlm	Z	ddl
mZddlm
Z
ddlmZGd	d
�d
e	�Zedk�r ddlmZdd
lmZe�Ze�d��rZed�e�d�ed�e�d�ed�ejddd�ed�e�d�ed�ejdddd�ed�WdQRXe�d�dS)�)�
TracebackType)�Optional�Type�)�Console�RenderableType)�JupyterMixin)�Live)�Spinner)�	StyleTypec@s�eZdZdZdddddd�eeeeee	e	d�d	d
�Z
eed�dd
��Z
edd�dd��Zd dddd�eeeeeeee	dd�dd�Zdd�dd�Zdd�dd�Zed�dd�Zdd�dd�Zeeeeeeedd�dd�ZdS)!�Statusa�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.
    N�dotszstatus.spinnerg�?g)@)�console�spinner�
spinner_style�speed�refresh_per_second)�statusrrrrrcCs<||_||_||_t||||d�|_t|j||dd�|_dS)N)�text�stylerT)rrZ	transient)rrrr
�_spinnerr	�
renderable�_live)�selfrrrrrr�r�;/tmp/pip-unpacked-wheel-hv55ucu3/pip/_vendor/rich/status.py�__init__s
zStatus.__init__)�returncCs|jS)N)r)rrrrr,szStatus.renderablercCs|jjS)z+Get the Console used by the Status objects.)rr)rrrrr0szStatus.console)rrr)rrrrrcCsz|dk	r||_|dk	r||_|dk	r*||_|dk	r^t||j|j|jd�|_|jj|jdd�n|jj|j|j|jd�dS)a�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.
        N)rrrT)Zrefresh)rrrr
rr�updater)rrrrrrrrr5sz
Status.updatecCs|j��dS)zStart the status animation.N)r�start)rrrrrUszStatus.startcCs|j��dS)zStop the spinner animation.N)r�stop)rrrrr YszStatus.stopcCs|jS)N)r)rrrr�__rich__]szStatus.__rich__cCs|��|S)N)r)rrrr�	__enter__`szStatus.__enter__)�exc_type�exc_val�exc_tbrcCs|��dS)N)r )rr#r$r%rrr�__exit__dszStatus.__exit__)N)�__name__�
__module__�__qualname__�__doc__rrr�strr�floatr�propertyr
rrrrr r!r"r�
BaseExceptionrr&rrrrrs.
"

r�__main__)�sleep)rz"[magenta]Covid detector booting up�zImporting advanced AIzAdvanced Covid AI Readyz[bold blue] Scanning for CovidZearth)rrz*Found 10,000,000,000 copies of Covid32.exez%[bold red]Moving Covid32.exe to TrashZbouncingBallZyellow)rrr�Nz&[bold green]Covid deleted successfully)�typesr�typingrrrrrZjupyterrZliver	rr
rrrr'�timer0r�logr�printrrrr�<module>s6b