HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/rich/__pycache__/status.cpython-310.pyc
o

;jH�@s:ddlmZddlmZmZddlmZmZddlm	Z	ddl
mZddlm
Z
ddlmZGd	d
�d
e	�Zedkr�ddlmZdd
lmZe�Ze�d��>Zed�e�d�ed�e�d�ed�ejddd�ed�e�d�ed�ejdddd�ed�Wd�n1s�wYe�d�dSdS)�)�
TracebackType)�Optional�Type�)�Console�RenderableType)�JupyterMixin)�Live)�Spinner)�	StyleTypec
@s�eZdZdZdddddd�ded	eed
edede	d
e	fdd�Z
edefdd��Z
ed&dd��Z	d'dddd�deed
eedeedee	ddf
dd�Zd(dd�Zd(dd�Zdefdd�Zd)dd �Zd!eeed"eed#eeddfd$d%�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.
    NZdotszstatus.spinnerg�?g)@)�console�spinner�
spinner_style�speed�refresh_per_second�statusr
rrrrcCs<||_||_||_t||||d�|_t|j||dd�|_dS)N��text�stylerT)r
rZ	transient)rrrr
�_spinnerr	�
renderable�_live)�selfrr
rrrr�r�?/opt/saltstack/salt/lib/python3.10/site-packages/rich/status.py�__init__s
�zStatus.__init__�returncC�|jS�N)r�rrrrr,szStatus.renderablercCs|jjS)z+Get the Console used by the Status objects.)rr
r rrrr
0szStatus.console)rrrcCs||dur||_|dur||_|dur||_|dur0t||j|j|jd�|_|jj|jdd�dS|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.
        NrT)Zrefresh)rrrr
rr�updater)rrrrrrrrr!5s�
�z
Status.updatecC�|j��dS)zStart the status animation.N)r�startr rrrr#U�zStatus.startcCr")zStop the spinner animation.N)r�stopr rrrr%Yr$zStatus.stopcCrr)rr rrr�__rich__]szStatus.__rich__cCs|��|Sr)r#r rrr�	__enter__`szStatus.__enter__�exc_type�exc_val�exc_tbcCs|��dSr)r%)rr(r)r*rrr�__exit__dszStatus.__exit__)rrr)rN)rr)�__name__�
__module__�__qualname__�__doc__rrr�strr�floatr�propertyr
rr
r!r#r%r&r'r�
BaseExceptionrr+rrrrrsj������
�������
�
 


����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�typingrrr
rrZjupyterrZliver	rr
rrrr,�timer5r�logr!�printrrrr�<module>s>b


�
��