관리-도구
편집 파일: status.cpython-38.pyc
U &?�fH � @ s$ d dl mZ d dlmZmZ ddlmZmZ ddlm Z ddl mZ ddlm Z ddlmZ G d d � d e �Zedk�r d dlmZ dd lmZ e� Ze�d��rZed� e�d� ed� e�d� ed� ejddd� ed� e�d� ed� ejdddd� ed� W 5 Q R X e�d� dS )� )� TracebackType)�Optional�Type� )�Console�RenderableType)�JupyterMixin)�Live)�Spinner)� StyleTypec @ s� e Zd ZdZdddddd�eee eee e d�d d �Z eed�dd ��Z edd�dd��Zd dddd�ee ee ee ee dd�dd�Zdd�dd�Zdd�dd�Zed�dd�Zd d�dd�Zeee ee ee dd�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)�statusr r r r r c C s<