[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.144.1.100: ~ $
�

2�Dgz��2�dZddlmZdddd�Z			ddd�ZdS)z$Bits and bytes related humanization.�)�annotations)z kBz MBz GBz TBz PBz EBz ZBz YB)z KiBz MiBz GiBz TiBz PiBz EiBz ZiBz YiB�KMGTPEZY)�decimal�binary�gnuF�%.1f�value�float | strr�boolr�format�str�returnc�`�|rtd}n|rtd}n
td}|s|rdnd}t|��}t|��}|dkr|sd|zS||kr|sd|zS||kr|rd	|zSt|��D]\}}	||d
zz}
||
krn�|||z|
zz|	z}|S)aPFormat a number of bytes like a human readable filesize (e.g. 10 kB).

    By default, decimal suffixes (kB, MB) are used.

    Non-GNU modes are compatible with jinja2's `filesizeformat` filter.

    Examples:
        ```pycon
        >>> naturalsize(3000000)
        '3.0 MB'
        >>> naturalsize(300, False, True)
        '300B'
        >>> naturalsize(3000, False, True)
        '2.9K'
        >>> naturalsize(3000, False, True, "%.3f")
        '2.930K'
        >>> naturalsize(3000, True)
        '2.9 KiB'
        >>> naturalsize(10**28)
        '10000.0 YB'
        >>> naturalsize(-4096, True)
        '-4.0 KiB'

        ```

    Args:
        value (int, float, str): Integer to convert.
        binary (bool): If `True`, uses binary suffixes (KiB, MiB) with base
            2<sup>10</sup> instead of 10<sup>3</sup>.
        gnu (bool): If `True`, the binary argument is ignored and GNU-style
            (`ls -sh` style) prefixes are used (K, M) with the 2**10 definition.
        format (str): Custom formatter.

    Returns:
        str: Human readable representation of a filesize.
    rrrii��z%d Bytez%d Bytesz%dB�)�suffixes�float�abs�	enumerate)r	rrr�suffix�base�bytes_�	abs_bytes�i�s�unit�rets            �q/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/humanize/filesize.py�naturalsizer
s��T�%��%����	�%��(�#����)�$���,�6�,�4�4��D�
�5�\�\�F��F���I��A�~�~�c�~��6�!�!��4������F�"�"��4���C���v�~���&�!�!�����1���A�����t����E�������-�.��2�C��J�N)FFr)
r	r
rrrrrr
rr
)�__doc__�
__future__rrr�r r�<module>r$sl��+�*�"�"�"�"�"�"�H�N��������	E�E�E�E�E�E�Er 

Filemanager

Name Type Size Permission Actions
__init__.cpython-311.pyc File 1.31 KB 0644
filesize.cpython-311.pyc File 2.61 KB 0644
i18n.cpython-311.pyc File 6.57 KB 0644
number.cpython-311.pyc File 20.53 KB 0644
time.cpython-311.pyc File 22.05 KB 0644