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__/scope.cpython-37.pyc
B

L��g�	@s�ddlmZddlmZmZmZmZddlmZddl	m
Z
ddlmZddl
mZddlmZmZertdd	lmZd
ddd
d
d
�deeeeeeeedd�dd�Zedkr�ddlmZe�eed
d�dd�Zedd�e�d
S)�)�Mapping)�
TYPE_CHECKING�Any�Optional�Tuple�)�ReprHighlighter)�Panel)�Pretty)�Table)�Text�TextType)�ConsoleRenderableNTF)�title�	sort_keys�
indent_guides�
max_length�
max_stringzMapping[str, Any]r)�scoperrrrr�returnc
Cs�t�}tjddd�}|jdd�tttftttfd�dd�}|rTt|�	�|d	�n|�	�}	xH|	D]@\}
}t
�|
|
�d
�r~dndfd
�}|�
|t|||||d��qbWtj||ddd�S)a�Render python variables in a given scope.

    Args:
        scope (Mapping): A mapping containing variable names and values.
        title (str, optional): Optional title. Defaults to None.
        sort_keys (bool, optional): Enable sorting of items. Defaults to True.
        indent_guides (bool, optional): Enable indentation guides. Defaults to False.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to None.

    Returns:
        ConsoleRenderable: A renderable object.
    )rrF)�padding�expand�right)Zjustify)�itemrcSs|\}}|�d�|��fS)z2Sort special variables first, then alphabetically.�__)�
startswith�lower)r�key�_�r�:/tmp/pip-unpacked-wheel-hv55ucu3/pip/_vendor/rich/scope.py�
sort_items)sz render_scope.<locals>.sort_items)rrzscope.key.specialz	scope.key)z =zscope.equals)�highlighterrrrzscope.border)rZborder_styler)rrZgridZ
add_columnr�strr�bool�sorted�itemsrZassemblerZadd_rowr
r	Zfit)
rrrrrrr"Zitems_tabler!r&r�valueZkey_textrrr �render_scopes, r(�__main__)�print)�foo�barrcCsFddddddddg}dd	d
ddd
gdgdd�}ttt�ddd��dS)Nr���TFzHello Worldz1.1ZconfirmFruitPurchaseZappleZorangeZmangoesZpomelog+����?Z	194521489)�version�method�params�idz	[i]locals)rr)r*r(�locals)r+r,Zlist_of_thingsZdict_of_thingsrrr �testKsr5g�k	��W4@g��?$	@)�collections.abcr�typingrrrrr"rZpanelr	�prettyr
�tabler�textrr
�consolerr$�intr(�__name__Zpip._vendor.richr*�floatr5rrrr �<module>s(0