Skip to main content
Glama

ClickUp Operator

by noah-vh
std.cpython-312.pyc64.5 kB
� lMgu����dZddlZddlmZmZddlmZddlmZmZm Z ddl m Z ddl m Z ddl mZdd lmZd d lmZd d lmZmZmZmZmZmZmZmZmZmZmZmZd Z gd�Z!Gd�de"�Z#Gd�de$�Z%Gd�de&�Z'Gd�de'e(�Z)Gd�de'e*�Z+Gd�de'e,�Z-d�Z.Gd�de/�Z0Gd�de/�Z1Gd �d!e/�Z2Gd"�d#e�Z3d$�Z4y)%z� Customisable progressbar decorator for iterators. Includes a default `range` iterator printing to `stderr`. Usage: >>> from tqdm import trange, tqdm >>> for i in trange(10): ... ... �N)� OrderedDict� defaultdict)�contextmanager)�datetime� timedelta�timezone)�Number)�time)�warn)�WeakSet�)�TMonitor) �CallbackIOWrapper� Comparable�DisableOnWriteError� FormatReplace�SimpleTextIOWrapper� _is_ascii�_screen_shape_wrapper�_supports_unicode� _term_move_up�disp_len� disp_trim�envwrapz*https://github.com/tqdm/tqdm#contributions)�tqdm�trange� TqdmTypeError� TqdmKeyError� TqdmWarning�TqdmExperimentalWarning�TqdmDeprecationWarning�TqdmMonitorWarningc� �eZdZy)rN��__name__� __module__� __qualname__���TC:\Users\noahv\Documents\GitHub\clickup-operator\.venv\Lib\site-packages\tqdm/std.pyrr ���r)rc� �eZdZy)rNr$r(r)r*rr$r+r)rc�$��eZdZdZd�fd� Z�xZS)rzqbase class for all tqdm warnings. Used for non-external-code-breaking errors, such as garbled printing. c���|�@|d|jjzdzt|�j�zdz�yt �|�|g|��i|��y)N� �: )� __class__r%�str�rstrip�super�__init__)�self�msg�fp_write�a�kr1s �r*r5zTqdmWarning.__init__-sR��� � � �T�D�N�N�3�3�3�d�:�S��X�_�_�=N�N�QU�U� V� �G� �S� *�1� *�� *r)�N)r%r&r'�__doc__r5� __classcell__)r1s@r*rr(s����+�+r)rc��eZdZdZy)r z(beta feature, unstable API and behaviourN�r%r&r'r<r(r)r*r r 4s��2�r)r c� �eZdZy)r!Nr$r(r)r*r!r!9s��r)r!c��eZdZdZy)r"z>tqdm monitor errors which do not affect external functionalityNr?r(r)r*r"r">s��H�r)r"c�J� ddlm}||i|��S#ttf$rYywxYw)zthreading RLockr��RLockN)� threadingrD� ImportError�OSError)�args�kwargsrDs r*�TRLockrJCs1�� �#��d�%�f�%�%�� �� !� � � �s � �"�"c�\�eZdZdZe�Zd�Zd�Zd�Zd�Z d�Z e d��Z e d��Z y ) �TqdmDefaultWriteLocka� Provide a default write lock for thread and multiprocessing safety. Works only on platforms supporting `fork` (so Windows is excluded). You must initialise a `tqdm` or `TqdmDefaultWriteLock` instance before forking in order for the write lock to work. On Windows, you need to supply the lock from the parent to the children as an argument to joblib or the parallelism lib you use. c��t|�}|j}|�|j�|j�|j|jfD�cgc]}|��|�� c}|_|�|j �yycc}wr;)�type�th_lock�acquire�create_mp_lock�mp_lock�locks�release)r6�cls� root_lock�lks r*r5zTqdmDefaultWriteLock.__init__Zsz���4�j���K�K� � � � � � � � ����$'�K�K����#=�P�#=�R���b�#=�P�� � � � � � � � !��Qs �A<�A<c�J�|jD]}|j|i|���yr;)rSrP)r6r9r:�locks r*rPzTqdmDefaultWriteLock.acquirefs#���J�J�D� �D�L�L�!� !�q� !�r)c�R�|jddd�D]}|j��y)N�����)rSrT)r6rYs r*rTzTqdmDefaultWriteLock.releasejs"���J�J�t��t�$�D� �L�L�N�%r)c�$�|j�yr;)rP�r6s r*� __enter__zTqdmDefaultWriteLock.__enter__n� �� � � �r)c�$�|j�yr;)rT)r6�excs r*�__exit__zTqdmDefaultWriteLock.__exit__qr_r)c�|�t|d�s ddlm}|�|_yy#tt f$r d|_YywxYw)NrRrrC)�hasattr�multiprocessingrDrRrFrG)rUrDs r*rQz#TqdmDefaultWriteLock.create_mp_lockts?���s�I�&� #�1�#�g�� �'�� ��)� #�"�� � #�s �"�;�;c�D�t|d�sJ�tdtd��y)NrOz!create_th_lock not needed anymore��� stacklevel)rdr r!�rUs r*�create_th_lockz#TqdmDefaultWriteLock.create_th_lock}s!���s�I�&�&�&� � 0�2H�UV�Wr)N)r%r&r'r<rJrOr5rPrTr^rb� classmethodrQrkr(r)r*rLrLLsS����h�G�  �"�����#��#��X��Xr)rLc ���eZdZdZdZddj eeeddd���zZ dZ d Z d Z d d d dddddd�Z de dfd�Zed��Zej"d��Zd�Zy)�Bara� `str.format`-able bar with format specifiers: `[width][type]` - `width` + unspecified (default): use `self.default_len` + `int >= 0`: overrides `self.default_len` + `int < 0`: subtract from `self.default_len` - `type` + `a`: ascii (`charset=self.ASCII` override) + `u`: unicode (`charset=self.UTF` override) + `b`: blank (`charset=" "` override) z 123456789#� �i�%i�%r[z zz[38;2;%d;%d;%dmzzzzzzzz)�BLACK�RED�GREEN�YELLOW�BLUE�MAGENTA�CYAN�WHITE� Nc��d|cxkrdks*ntdtd��tdtd|��}|dkDsJ�||_||_||_||_y)Nrr zclamping frac to range [0, 1]rgrh)r r�max�min�frac� default_len�charset�colour)r6r}r~rr�s r*r5z Bar.__init__�sU���D�~�A�~� �0�+�!� L��q�#�a��,�'�D��Q������ �&����� ��� r)c��|jSr;)�_colourr]s r*r�z Bar.colour�s ���|�|�r)c ���|sd|_y |j�|jvr#|j|j�|_y|ddk(r?t|�dk(r1|jt d�|dd|dd|ddfD��z|_yt �#t tf$r<td|�d d j|j��d �td � �d|_YywxYw)Nr�#�c3�4K�|]}t|d����y�w)�N)�int)�.0�is r*� <genexpr>zBar.colour.<locals>.<genexpr>�s����7N�(L�1�C��2�J�(L�s�r ��zUnknown colour (z"); valid choices: [hex (#00ff00), �, �]rgrh) r��upper�COLOURS�len� COLOUR_RGB�tuple�KeyError�AttributeErrorr �joinr)r6�values r*r�z Bar.colour�s�����D�L� � ��{�{�}�� � �,�#�|�|�E�K�K�M�:�� ��q��S��S��Z�1�_�#����7N�).�q���U�1�Q�Z��q���(L�7N�2N� N�� �����.�)� � ��� � �$�,�,�/�1��� ,� �D�L�  �s�>B� AB�B�AC#�"C#c�R�|ro|dj�} |j|j|jd�|}|dd}|r t |�}|dkr5||jz }n%|j}n|j }|j}t|�dz }tt |j|z|z�|�\}}|d|z}||kr|||z|d||z dz zz}|jr|j|z|jzS|S#t$r|j }Y��wxYw)Nr[)r9�u�brr ) �lower�ASCII�UTF�BLANKr�rr�r~r��divmodr}r�� COLOUR_RESET) r6� format_spec�_typer�N_BARS�nsyms� bar_length�frac_bar_length�ress r*� __format__zBar.__format__�s9�� ���O�)�)�+�E� /� $� � ����� � �K�E�R��*�#�2�.� ���[�)���A�:��d�.�.�.�F��)�)���l�l�G��%�%�F��G� �q� ��&,�S����V�1C�e�1K�-L�e�&T�#� �O��b�k�J�&�� �� ����0�0�7�1�:��*�AT�WX�AX�3Y�Y�C�8<� � �t�{�{�S� �4�#4�#4�4�L��L��)� '��,�,�� '�s�'D�D&�%D&)r%r&r'r<r�r��map�chr�ranger�r�r�r�r�r5�propertyr��setterr�r(r)r*rnrn�s��� � �E� ����#�c�5����#<�=�>� >�C� �E��L�&�J�"�:� �#�Z�J�!�J�8�G�*,�S������� �]�]� �� �$Mr)rnc� �eZdZdZdd�Zdd�Zy)�EMAa[ Exponential moving average: smoothing to give progressively lower weights to older values. Parameters ---------- smoothing : float, optional Smoothing factor in range [0, 1], [default: 0.3]. Increase to give more weight to recent values. Ranges from 0 (yields old value) to 1 (yields new value). c�.�||_d|_d|_y)Nr��alpha�last�calls)r6� smoothings r*r5z EMA.__init__�s���� ��� ��� r)Nc��d|jz }|�9|j|z||jzz|_|xjdz c_|jr|jd||jzz z S|jS)zk Parameters ---------- x : float New value to include in EMA. r r�)r6�x�betas r*�__call__z EMA.__call__�sl���4�:�:�~�� �=�� � �Q���� � �)9�9�D�I� �J�J�!�O�J�7;�z�z�t�y�y�A��� � � 2�2�3�P�t�y�y�Pr))�333333�?r;)r%r&r'r<r5r�r(r)r*r�r��s�� �� Qr)r�c ��eZdZdZdZdZe�Zed/d��Z ed��Z ed��Z ed��Z e d0d��Z d �Zed1d ��Zed ��Zed2d ��Zeed3d ���Zed��Zed��Zed��Zeddeeeeed��� d4d��Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"d�Z#e$d��Z%d�Z&d �Z'd5d!�Z(d"�Z)d6d#�Z*d7d$�Z+d%�Z,d1d&�Z-d8d'�Z.d8d(�Z/d8d)�Z0d9d*�Z1d+�Z2e$d,��Z3d:d-�Z4eed8d.���Z5y);rad Decorate an iterable object, returning an iterator which acts exactly like the original iterable, but prints a dynamically updating progressbar every time a value is requested. Parameters ---------- iterable : iterable, optional Iterable to decorate with a progressbar. Leave blank to manually manage the updates. desc : str, optional Prefix for the progressbar. total : int or float, optional The number of expected iterations. If unspecified, len(iterable) is used if possible. If float("inf") or as a last resort, only basic progress statistics are displayed (no ETA, no progressbar). If `gui` is True and this parameter needs subsequent updating, specify an initial arbitrary large positive number, e.g. 9e9. leave : bool, optional If [default: True], keeps all traces of the progressbar upon termination of iteration. If `None`, will leave only if `position` is `0`. file : `io.TextIOWrapper` or `io.StringIO`, optional Specifies where to output the progress messages (default: sys.stderr). Uses `file.write(str)` and `file.flush()` methods. For encoding, see `write_bytes`. ncols : int, optional The width of the entire output message. If specified, dynamically resizes the progressbar to stay within this bound. If unspecified, attempts to use environment width. The fallback is a meter width of 10 and no limit for the counter and statistics. If 0, will not print any meter (only stats). mininterval : float, optional Minimum progress display update interval [default: 0.1] seconds. maxinterval : float, optional Maximum progress display update interval [default: 10] seconds. Automatically adjusts `miniters` to correspond to `mininterval` after long display update lag. Only works if `dynamic_miniters` or monitor thread is enabled. miniters : int or float, optional Minimum progress display update interval, in iterations. If 0 and `dynamic_miniters`, will automatically adjust to equal `mininterval` (more CPU efficient, good for tight loops). If > 0, will skip display of specified number of iterations. Tweak this and `mininterval` to get very efficient loops. If your progress is erratic with both fast and slow iterations (network, skipping items, etc) you should set miniters=1. ascii : bool or str, optional If unspecified or False, use unicode (smooth blocks) to fill the meter. The fallback is to use ASCII characters " 123456789#". disable : bool, optional Whether to disable the entire progressbar wrapper [default: False]. If set to None, disable on non-TTY. unit : str, optional String that will be used to define the unit of each iteration [default: it]. unit_scale : bool or int or float, optional If 1 or True, the number of iterations will be reduced/scaled automatically and a metric prefix following the International System of Units standard will be added (kilo, mega, etc.) [default: False]. If any other non-zero number, will scale `total` and `n`. dynamic_ncols : bool, optional If set, constantly alters `ncols` and `nrows` to the environment (allowing for window resizes) [default: False]. smoothing : float, optional Exponential moving average smoothing factor for speed estimates (ignored in GUI mode). Ranges from 0 (average speed) to 1 (current/instantaneous speed) [default: 0.3]. bar_format : str, optional Specify a custom bar string formatting. May impact performance. [default: '{l_bar}{bar}{r_bar}'], where l_bar='{desc}: {percentage:3.0f}%|' and r_bar='| {n_fmt}/{total_fmt} [{elapsed}<{remaining}, ' '{rate_fmt}{postfix}]' Possible vars: l_bar, bar, r_bar, n, n_fmt, total, total_fmt, percentage, elapsed, elapsed_s, ncols, nrows, desc, unit, rate, rate_fmt, rate_noinv, rate_noinv_fmt, rate_inv, rate_inv_fmt, postfix, unit_divisor, remaining, remaining_s, eta. Note that a trailing ": " is automatically removed after {desc} if the latter is empty. initial : int or float, optional The initial counter value. Useful when restarting a progress bar [default: 0]. If using float, consider specifying `{n:.3f}` or similar in `bar_format`, or specifying `unit_scale`. position : int, optional Specify the line offset to print this bar (starting from 0) Automatic if unspecified. Useful to manage multiple bars at once (eg, from threads). postfix : dict or *, optional Specify additional stats to display at the end of the bar. Calls `set_postfix(**postfix)` if possible (dict). unit_divisor : float, optional [default: 1000], ignored unless `unit_scale` is True. write_bytes : bool, optional Whether to write bytes. If (default: False) will write unicode. lock_args : tuple, optional Passed to `refresh` for intermediate output (initialisation, iterating, and updating). nrows : int, optional The screen height. If specified, hides nested bars outside this bound. If unspecified, attempts to use environment height. The fallback is 20. colour : str, optional Bar colour (e.g. 'green', '#00ff00'). delay : float, optional Don't display until [default: 0] seconds have elapsed. gui : bool, optional WARNING: internal parameter - do not use. Use tqdm.gui.tqdm(...) instead. If set, will attempt to use matplotlib animations for a graphical output [default: False]. Returns ------- out : decorated iterator. ryNc���dD]R}t|�dkr=t|�dkr$t|�dkr |d�|�|��cS|d�|�|��cS|d�|�|��cS||z}�T|d�d |��S) a� Formats a number (greater than unity) with SI Order of Magnitude prefixes. Parameters ---------- num : float Number ( >= 1) to format. suffix : str, optional Post-postfix [default: '']. divisor : float, optional Divisor between prefixes [default: 1000]. Returns ------- out : str Number with Order of Magnitude SI unit postfix. )rpr:�M�G�T�P�E�Zg<�@g������X@g= ףp�#@z1.2fz2.1f�3.0fz3.1f�Y)�abs)�num�suffix�divisor�units r*� format_sizeofztqdm.format_sizeofrs���(<�D��3�x�%���s�8�e�#��3�x�%�'�"%�d��D�6�&��:�:�!�$�Z��v�f�X�6�6��d��D�6�&��2�2� �7�N�C�<��d��1�V�H�%�%r)c��tt|�d�\}}t|d�\}}|r |d�d|d�d|d��S|d�d|d��S)z� Formats a number of seconds as a clock time, [H:]MM:SS Parameters ---------- t : int Number of seconds. Returns ------- out : str [H:]MM:SS �<�d�:�02d)r�r�)�t�mins�s�h�ms r*�format_intervalztqdm.format_interval�s[����Q���$���a��d�B����1�+,�!�A��a��#�w�a��#�w�'�D�Q�s�G�1�Q�s�G�2D�Dr)c��|d�jdd�jdd�}t|�}t|�t|�kr|S|S)z� Intelligent scientific notation (.3g). Parameters ---------- n : int or float or Numeric A Number. Returns ------- out : str Formatted number. z.3gze+0ze+ze-0ze-)�replacer2r�)�n�fs r*� format_numztqdm.format_num�sI����g� � �u�d� +� 3� 3�E�4� @�� ��F����F�S��V�O�q�*��*r)c������|�t�dd����tjtjfvrBttjdd���ttjdd�����fd��dg���fd�}|S)z� Manage the printing and in-place updating of a line of characters. Note that if the string is longer than a line, then in-place updating may not work (it will print a new line at each refresh). �flushc��yr;r(r(r)r*�<lambda>z%tqdm.status_printer.<locals>.<lambda>�s��r)c��yr;r(r(r)r*r�z%tqdm.status_printer.<locals>.<lambda>����r)c��yr;r(r(r)r*r�z%tqdm.status_printer.<locals>.<lambda>�r�r)c�H���jt|����yr;)�writer2)r��fp�fp_flushs ��r*r8z%tqdm.status_printer.<locals>.fp_write�s��� �H�H�S��V� � �Jr)rc�h��t|�}�d|zdt�d|z d�zz�|�d<y)N� ror)rr{)r��len_sr8�last_lens ��r*� print_statusz)tqdm.status_printer.<locals>.print_status�s;����Q�K�E� �T�A�X��s�8�A�;��+>��'B�!B�C� D��H�Q�Kr))�getattr�sys�stderr�stdout)�filer�r�r�r8r�s @@@@r*�status_printerztqdm.status_printer�sr������2�w� �5�� �#�*�*�c�j�j�)� )� 6�G�C�J�J��� 6� 8� 6�G�C�J�J��� 6� 8� ��3�� � �r)c ��|r ||dzk\rd}|r|dvr|r||z}||z}|r||z}d}tj|�}|� |r|| z |z }|rd|z nd}tj}|r|r||�n|d�nd|zdz}|r|r||�n|d�ndd z|z}|r|dkDr|n|}|r||| � �}|� ||| � �nd}nt|�}|� t|�nd} | rd | znd } |r |r||z |z nd }|rtj|�nd} |r#|r!t j �t|��zn#t jd tj�}|r|dddk(}|r|n|dz}nd }d|�d|�d|�d|�d |�| �d� }id|�d|�d|�d|�d|�d|�d|�d|xsd �d|�d|r|dkDr|n|�d |�d!|�d"|�d#|�d$|�d%| �d&| �| |||||d'��|�}|�r*||z }|d(z}||d)�d*�z }|d k(r |dd+|ddzS|j|�,�| r'|j|�-�|s| jd.d �} nd/} t�} | j d6d0| i|��}!| j"s|!St%||rtd|t'|!�z �nd1|d2urt$j(n|xst$j*| �3�} t-| j.�st-| �r t| �} | j d6d0| i|��}"|r t1|"|�S|"S| r�|d4z }|j|d �5�t�} | j d6d0| i|��}!| j"s|!St%d |rtd|t'|!�z �nd1t$j2| �3�} | j d6d0| i|��}"|r t1|"|�S|"S|r|dznd �|�|�d|�d |�| �d� S#t$rY���wxYw#t$rt j}Y���wxYw)7a� Return a string-based progress bar given some parameters Parameters ---------- n : int or float Number of finished iterations. total : int or float The expected total number of iterations. If meaningless (None), only basic progress statistics are displayed (no ETA). elapsed : float Number of seconds passed since start. ncols : int, optional The width of the entire output message. If specified, dynamically resizes `{bar}` to stay within this bound [default: None]. If `0`, will not print any bar (only stats). The fallback is `{bar:10}`. prefix : str, optional Prefix message (included in total width) [default: '']. Use as {desc} in bar_format string. ascii : bool, optional or str, optional If not set, use unicode (smooth blocks) to fill the meter [default: False]. The fallback is to use ASCII characters " 123456789#". unit : str, optional The iteration unit [default: 'it']. unit_scale : bool or int or float, optional If 1 or True, the number of iterations will be printed with an appropriate SI metric prefix (k = 10^3, M = 10^6, etc.) [default: False]. If any other non-zero number, will scale `total` and `n`. rate : float, optional Manual override for iteration rate. If [default: None], uses n/elapsed. bar_format : str, optional Specify a custom bar string formatting. May impact performance. [default: '{l_bar}{bar}{r_bar}'], where l_bar='{desc}: {percentage:3.0f}%|' and r_bar='| {n_fmt}/{total_fmt} [{elapsed}<{remaining}, ' '{rate_fmt}{postfix}]' Possible vars: l_bar, bar, r_bar, n, n_fmt, total, total_fmt, percentage, elapsed, elapsed_s, ncols, nrows, desc, unit, rate, rate_fmt, rate_noinv, rate_noinv_fmt, rate_inv, rate_inv_fmt, postfix, unit_divisor, remaining, remaining_s, eta. Note that a trailing ": " is automatically removed after {desc} if the latter is empty. postfix : *, optional Similar to `prefix`, but placed at the end (e.g. for additional stats). Note: postfix is usually a string (not a dict) for this method, and will if possible be set to postfix = ', ' + postfix. However other types are supported (#382). unit_divisor : float, optional [default: 1000], ignored unless `unit_scale` is True. initial : int or float, optional The initial counter value [default: 0]. colour : str, optional Bar colour (e.g. 'green', '#00ff00'). Returns ------- out : Formatted meter and stats, ready to display. g�?N)Tr Fr z5.2f�?z/szs/)r�r�rpr)�seconds�����r0z| �/z [�<r�r��n_fmt�total� total_fmt�elapsed� elapsed_s�ncols�descr��rate�rate_fmt� rate_noinv�rate_noinv_fmt�rate_inv� rate_inv_fmt�postfix� unit_divisor)r�� remaining� remaining_s�l_bar�r_bar�eta�dr�z%|r[)r )� percentagez{desc}: z{l_bar}{bar}{r_bar}�barryT)rr��|)r r r()rr�r�r2� TypeErrorr�nowr� fromtimestampr�utc� OverflowErrorr{�updater�r�format� format_calledrnrr�r�rrrr�)#r�r�r�r��prefix�asciir�� unit_scaler�� bar_formatrr�initialr�� extra_kwargs� elapsed_str�inv_rater�rrrr�r�r� remaining_str�eta_dt�bool_prefix_colon_alreadyr r � format_dictr}r �full_bar�nobarr�s# r*� format_meterztqdm.format_meter�sD��L �Q�5�3�;�'��E� �*�I�5����#�� ��O�A��� �"���J��*�*�7�3� � �<�G���K�7�*�D�#�1�t�8����*�*� �!�3=�=��.�T�$�K�'*�d�3�59�:���)3�]�8� $�8�D�/� �D�)�+/�0� �$,��1� �<�.�� �!�!�\�:�E�FK�FW� �e�\�B�]`�I���F�E�&+�&7��E� �S�I� �(/�d�W�n�R�G�+/�5�U�Q�Y�$�&�a� �;?��,�,�Y�7�S� � "��%��l�l�n�y��'C�C�-5�-C�-C�A�x�|�|�-T� � �)/�����)<� %�7�F�V�d�]�E��E��U�G�1�Y�K�r�+��a� ��b�� �SZ�R[�[\�]��� ����U��$+�U��4?��� �{��%0��� �U� �#�F�L�b� �39�$� � ��X��\�H�t� � �� � #/�� � �n��/9�(�� �L�� �w��!/� ���&�y��U�6���� �" ��u�9�D����J� � �4�(��+� +�E���z��S�b�z�E�!�"�I�-�-� � � �U� � +���"�"�j�"�9��!+�!3�!3�J��!C�J�2� �$��H�%�J�%�%�B�(�B�k�B�E��)�)�� ��4�>C�3�q�%�(�5�/�"9�:��05�� �3�9�9�5�CS�C�G�G�"(�*�H��X�-�-�.�9�Z�3H� ��_� �#�*�#�#�@��@�K�@�C�,1�9�S�%�(� :�s� :� � �S�L�E� � � �U�q� � 9�$��H�%�J�%�%�B�(�B�k�B�E��)�)�� ��1�>C�3�q�%�(�5�/�"9�:��#&�9�9�V�=�H�$�*�#�#�@��@�K�@�C�,1�9�S�%�(� :�s� :�+1��� �b�9��g�d�V�2�k�]�"�X�J�w�i�q�J� K��u� � � ��� "��\�\�F� "�s%� N*�A N:�* N7�6N7�:O�Oc���tj|�}|j�5|jj |�|j rB|j �|j j�s t||j �|_ddd�|S#t$r/}tdt|�ztd��d|_Yd}~�=d}~wwxYw#1swY|SxYw)Nz>tqdm:disabling monitor support (monitor_interval = 0) due to: rgrhr) �object�__new__�get_lock� _instances�add�monitor_interval�monitor�reportr� Exceptionr r2r")rU�_�__�instance�es r*r)z tqdm.__new__�s����>�>�#�&�� �\�\�^� �N�N� � �x� (��#�#����)<�03� � �0B�0B�0D�-�"*�3��0D�0D�"E�C�K� ���� !�-��=�?B�1�v�F�+��;�,-�C�(�(�� -�����s0�AC�5B� C�#%C �C� C�C�Cc ���|jD�chc]'}||ur!t|d�rt|j���)}}t t t t|�dz��j|��Scc}w)zSkips specified instance.�posr ) r+rdr�r6r|�setr�r�� difference)rUr3�inst� positionss r*� _get_free_posztqdm._get_free_pos�sm��03�~�~�G�~�t��H�,���u�1E�����]�~� �G��3�u�S��^�a�/�0�1�<�<�Y�G�H�H��Gs�,A5c���|j5 |jj|�|jsq|j xsddz �t t�fd�|j��}|r:t|d���}|jd��t|j�|_ ddd�y#t$rY��wxYw#1swYyxYw) a5 Remove from list and reposition another unfixed bar to fill the new gap. This means that by default (where all nested bars are unfixed), order is not maintained but screen flicker/blank space is minimised. (tqdm<=4.44.1 moved ALL subsequent unfixed bars up.) �r c�>��t|d�xr�|jkS)Nr6)rdr6)r�r�s �r*r�z&tqdm._decr_instances.<locals>.<lambda>�s���g�a��/�A�D�A�E�E�M�Ar)c��|jSr;�r6)r�s r*r�z&tqdm._decr_instances.<locals>.<lambda>�s����r))�keyT��nolockN) �_lockr+�remover��gui�nrows�list�filterr|�clearr�r6)rUr3� instancesr9r�s @r*�_decr_instancesztqdm._decr_instances�s�����Y�Y� ����%�%�h�/� �<�<� ���,�"��1�� ��A��N�N�"$�%� ���y�o�>�D��J�J�d�J�+�"�8�<�<�0�D�H�%�Y��� �� ���Y�s.�C�B1�A=C�1 B=�:C�<B=�=C�C c���|�|ntj}|j||��5|j|�|j|�ddd�y#1swYyxYw)z5Print a message via tqdm (without overlap with bars).N)r�rC)r�r��external_write_moder�)rUr�r��endrCr�s r*r�z tqdm.write�sI���%�T�3�:�:�� � $� $�$�v� $� >� �H�H�Q�K� �H�H�S�M�?� >� >�s �#A�Ac#�K�|�|ntj} |s|j�j�g}t |dg�D]`}t |d�s�|j |k(std�||j fD��s�>|jd��|j|��bd��|D]}|jd��� |s|jj�yy#|s|jj�wwxYw�w)z� Disable tqdm within context and refresh tqdm when exits. Useful when writing to standard output stream Nr+�start_tc3�`K�|]&}|tjtjfv���(y�wr;)r�r�r�)r�r�s r*r�z+tqdm.external_write_mode.<locals>.<genexpr>�s(����FN�?L�!��c�j�j�#�*�*�5�5�}�s�,.TrB) r�r�r*rPr�rdr��allrJ�append�refreshrDrT)rUr�rCr�� inst_clearedr9s r*rNztqdm.external_write_mode�s������%�T�3�:�:�� $��� � ��&�&�(��L���\�2�6���4��+����B��#�FN�@B�D�G�G�}�FN�CN��J�J�d�J�+� �'�'��-�7� �$��� � �D� �)�%��� � �!�!�#���6�� � �!�!�#��s)�D�>C&�-C&�AC&�D�&D�Dc��||_y)zSet the global lock.N)rD)rUrYs r*�set_lockz tqdm.set_lock�s ���� r)c�P�t|d�st�|_|jS)z7Get the global lock. Construct it if it does not exist.rD)rdrLrDrjs r*r*z tqdm.get_lock�s"���s�G�$�,�.�C�I��y�y�r)c ���� ���ddlm}m}ddlm}ddlm�  |�5|dt��ddlm }ddd�d \}} dd l m � dd lm}ddlm}  ddlm}  ddlm} �j1���j3dd�g�d� ����fd� } | �� _| �|_| d�� _| d�|_| �|_| �| _| d�|_| d�|_| d�| _� | �|_| � | �| _| �| _| d�| _| d�| _|�|�| �|_| �|_y�� | ��_yy#1swY��>xYw#t$rd}Y��OwxYw#t$r> dd l m �n2#t$r& dd lm}dd l m}||f�n#t$rd�YnwxYwYnwxYwY���wxYw#t$r% ddlm} m}n#t$r ddlm} m}YnwxYwY���wxYw#t$r ddlm} Y���wxYw#t$r ddlm} n#t$rd} YnwxYwY���wxYw)ae Registers the current `tqdm` class with pandas.core. ( frame.DataFrame | series.Series | groupby.(generic.)DataFrameGroupBy | groupby.(generic.)SeriesGroupBy ).progress_apply A new instance will be created every time `progress_apply` is called, and each instance will automatically `close()` upon completion. Parameters ---------- tqdm_kwargs : arguments for the tqdm instance Examples -------- >>> import pandas as pd >>> import numpy as np >>> from tqdm import tqdm >>> from tqdm.gui import tqdm as tqdm_gui >>> >>> df = pd.DataFrame(np.random.randint(0, 100, (100000, 6))) >>> tqdm.pandas(ncols=50) # can use tqdm_gui, optional kwargs, etc >>> # Now you can use `progress_apply` instead of `apply` >>> df.groupby(0).progress_apply(lambda x: x**2) References ---------- <https://stackoverflow.com/questions/18603270/ progress-indicator-during-pandas-operations-python> r)�catch_warnings� simplefilter)� DataFrame)�Series�ignore)�category)�PanelN�NN)�_Rolling_and_Expanding)� Expanding)�Rolling)� SeriesGroupBy)�DataFrameGroupBy)rgrf)�GroupBy)� PanelGroupBy� deprecated_tc����������fd�}|S)Nc�������jdt|dd��}|�u� dk(r |j}nct|� �r t |�}nK� � t|� �s=|j dd�}|dk(rd}n|dk(rd }|j|j |z}� d� � d�d� d<n � dd|i����t |�dkDr:td t�jd tjj�� � dd l m } |�����fd�} t|� �|fi|���j#�S#t$r|j}Y�JwxYw#t $rY�PwxYw#�j#�wxYw)aT Parameters ---------- df : (DataFrame|Series)[GroupBy] Data (may be grouped). func : function To be applied on the (grouped) data. **kwargs : optional Transmitted to `df.apply()`. r��ngroupsN�applymap�axisr�index�columnsr z�Except func, normal arguments are intentionally not supported by `(DataFrame|Series|GroupBy).progress_apply`. Use keyword arguments instead.r��r8)�is_builtin_funcc����j�jr�j�jkrdnd���|i|��S)Nr r)r�)rr�r�)rHrI�funcr�s ��r*�wrapperzDtqdm.pandas.<locals>.inner_generator.<locals>.inner.<locals>.wrapper�s9��� �H�H����1�3�3����=�q�a�H�H���0��0�0r)r()�popr��size� isinstancer��get�shaper!r�r�r�r��pandas.core.commonrsrF�_is_builtin_funcr�close)�dfrurHrIr�rorsrvr�r^rcrUrj� df_function� tqdm_kwargss ` @������r*�innerz3tqdm.pandas.<locals>.inner_generator.<locals>.innerRsw���$������Y��1M�N���=�"�j�0� "����#�B��/� #�B���0�8�(��-C�D�%�z�z�&�!�4���7�?�#$�D�!�Y�.�#$�D� "���2�8�8�D�>� 9�� ��?�.�$�Q��A�&*�L��O��7�%�7�;�7�A��t�9�q�=�*�:�")����w�� � �8H�8H�!I� K�:�B��*�4�0�D� 1��3�7�2�{�3�G�F�v�F��G�G�I��+#�:�&(�&9�&9�O�:��!�����"�G�G�I�s0�;D4�E�E�4E � E � E�E�E0r()r�r�r^rcrUrjr�s` �����r*�inner_generatorz$tqdm.pandas.<locals>.inner_generatorQs���E �E �N�Lr)r�rn� aggregate� transform)�apply)�warningsr[r\�pandas.core.framer]�pandas.core.seriesr^� FutureWarning�pandasrarF�pandas.core.window.rollingrc�pandas.core.window�pandas.core.window.expandingrdre�pandas.core.groupby.genericrfrg�pandas.core.groupby.groupby�pandas.core.groupbyrhri�copyrw�progress_apply� progress_map�progress_applymap�progress_aggregate�progress_transform)rUr�r[r\r]rarerdrfrgrhrir�r^rcrjs`` @@@r*r�z tqdm.pandas�sd���F :�/�-� ��!��X� �>�(�"� (���� 2� I� P� A� D�  4� ;� $� @�"�&�&�(� �#�����=�>� �H �H �X!0� 1���'6�'8� �$�-�e�4���%4�U�%;� �"�#2�#4� � �*9�*;��'�&5�j�&A� �#�!0��!7� ��(7��(>��%� � �#2�#4�E� � � #�*9�*;�L� '�!0�!2���%4�[�%A��"�%4�[�%A��"� � �9�#8�%4�%6�G� "�'6�'8�I� $� #� /�4C�4E� "� 1�0�["�!��� ��E� �� � 2� 2�E��� 2�2�F�B�-4�i�-?�*��"�2�-1�*�2��  2�� 2��� P� P�W�W��� P�O�O� P�� P��� 4� 3� 3� 4�� � $� $�<��� $�#� � $�� $�s��F�E3�F�F� G�H � H#�3E=�8F� F�F� G�F#�"G�# G�-F>�=G�> G � G� G � G�G�G�G�G� H �&G/�.H �/H�H �H�H � H � H �H �# I �-H4�3I �4 I�?I �I�I �I �TQDM_T)r�r��miniters�positionrG)� is_method�typesc �J�|�tj}|rt|t|dd�xsd��}t ||��}| �t |d�r|j �sd} |�|� t|�}|td�k(rd}| rj||_ | |_ |j5|j|�|_|j j#|�ddd�||_||_||_y|r�d|_ |j5|j|�|_|j j#|�ddd�d |vr0t+d t|d tjj,�� ��t/d t1|�z��|�|�"|tjtj2fvs|r9|rt5�}|r+||�\}}nt5�}|r||�\}}|�|}|�|}| �d} d}nd}|�d}|�d}| � t7|� } |r| durt9| �s t1|�}|�d}||_ |xsd|_||_||_||_||_||_ ||_!||_"| |_#||_$| |_%| |_ | |_&| |_'||_(||_)||_*||_+||_,||_-||_.t_|�|_0t_|�|_1t_|�|_2||_3d|_4||_5tl|_7|r |jpdddi|��||_9||_|j5|�|j|�n| |_ddd�|sA|ju|j<�|_;|dkr|jy|jT��|jo�|_=|jz|_>y#ttf$rd}Y��wwxYw#1swY��xYw#1swY���xYw#t$r ||_4Y��wxYw#1swY��xYw)zsee tqdm.tqdm for argumentsN�encodingzutf-8)r�)� tqdm_instance�isattyT�inf�nestedzQ`nested` is deprecated and automated. Use `position` instead for manual control. r�rrzUnknown argument(s): rFrprU�� lock_argsr()?r�r�rr�rrdr�r�rr��float�iterable�disablerDr;r6r+rEr�r��leaver!r�rr2r�rrrr�r�r�rG� mininterval� maxintervalr��dynamic_minitersrr�rrrr��delayrF� dynamic_ncolsr�r��_ema_dn�_ema_dt� _ema_minitersrrr�r �_time� set_postfix� last_print_nr��sprU� last_print_trQ) r6r�r�r�r�r�r�r�r�r�rr�r�rr�r�rrr�rr� write_bytesr�rGr�r�rFrI�_dynamic_ncols�_ncols�_nrowsr�s r*r5z tqdm.__init__�s�� �<��:�:�D� �'��w�t�Z��>�I�'�K�D�#�4�t�<�� �?�w�t�X�6�t�{�{�}��G� �=�X�1� ��H� �� �E�%�L� ��E� �$�D�M�"�D�L�����-�-�d�3������&�&�t�,���D�F��D�J��D�J� � ��D�L�����-�-�d�3������&�&�t�,���v�%� '�C�$�T�7�C�J�J�4D�4D�E�G� E� �4�s�6�{�B�C�  E��]�e�m�$�3�:�:�s�z�z�:R�2R� �� 5� 7� � �#0��#6�L�E�5�!6�!8��!�%3�D�%9�N�F�F��}� &���}� &�� � ��H�#� �$� � � ��K� � ��K� �=�)�$�/�/�E� �%�t�+�I�e�4D��Z��J� � ��I�!�� ��J�B�� ��� ��� ������ ��� �&���&��� �� � 0����� ��� ��� �$���(����� �"����� ����*���"����9�~�� ��9�~�� � ��^���$����� ��� ��� � � '� �� � �:��:�'�:� $�������Z�Z�3;�3C�t�)�)�$�/�(��D�H����)�)�$�'�'�2�D�G���z�� � �t�~�~� �6�!�J�J�L����(�(�� ��y�~�.� ��� ��������f� '�&�� � '���Z�sH�# O�2O)�?2O6�P�P�O&�%O&�)O3�6P�P�P�P"c��|j�|jdkDS|j� td��t|j�S)Nrz/bool() undefined when iterable == total == None)r�r�r�boolr]s r*�__bool__z tqdm.__bool__Qs?�� �:�:� !��:�:��>� !� �=�=� ��M�N� N��D�M�M�"�"r)c�`�|j� |jSt|jd�r|jjdSt|jd�rt |j�St|jd�r|jj �St |dd�S)Nr{r�__len__�__length_hint__r�)r�r�rdr{r�r�r�r]s r*r�z tqdm.__len__Xs����-�-�/�D�J�J� /�+2�4�=�=�'�+J����$�$�Q�'� /�(/�t�}�}�i�'H��T�]�]�#� /�5<�D�M�M�K\�4]����.�.�0�  /� ��w��-�  /r)c��� |j}t|j�|_|j�||_S#t$r t d��wxYw#|_wxYw)Nz'tqdm' object is not reversible)r��reversed�__iter__r�r)r6�origs r*� __reversed__ztqdm.__reversed__`sY�� !��=�=�D�%�T�]�]�3�D�M��=�=�?� �D�M�� � ?��=�>� >� ?�� !�D�M�s� ?�)A�A�A� A c�h�t|jdd�}|�||�S||j�vS)N� __contains__)r�r�r�)r6�item�containss r*r�ztqdm.__contains__ks3���4�=�=�.�$�?��!)�!5�x��~�R�4�4�=�=�?�;R�Rr)c��|Sr;r(r]s r*r^ztqdm.__enter__os��� r)c�z� |j�y#t$r|||fdk(r�tdtd��YywxYw)N)NNNzAttributeError ignoredrgrh)r~r�r r)r6�exc_type� exc_value� tracebacks r*rbz tqdm.__exit__rsB�� F� �J�J�L��� F��)�Y�/�3E�E�� �)�;�1� E�  F�s ��$:�:c�$�|j�yr;)r~r]s r*�__del__z tqdm.__del__{s �� � � � r)c�:�|jdi|j��S)Nr()r&r#r]s r*�__str__z tqdm.__str__~s�� �t� � �4�4�#3�#3�4�4r)c�.�tt|dd��S)Nr6l)r�r�r]s r*� _comparableztqdm._comparable�s���7�4���0�1�1r)c��t|�Sr;)�idr]s r*�__hash__z tqdm.__hash__�s ���$�x�r)c#�6K�|j}|jr |D]}|���y|j}|j}|j}|j |j z}|j}|j} |D]b}|��|dz }||z |jk\s�|�} | |z } | |k\s�1| |k\s�7|j||z �|j}|j}�d ||_|j�y#||_|j�wxYw�w)z6Backward-compatibility to use: for x in tqdm(iterable)Nr ) r�r�r�r�r�rQr�r�r�r�rr~) r6r��objr�r�r�� min_start_tr�r �cur_t�dts r*r�z tqdm.__iter__�s �����=�=�� �<�<���� � � ��&�&� ��(�(� ��(�(� ��l�l�T�Z�Z�/� � �F�F���z�z�� ���� ��Q����|�#�t�}�}�4� �F�E���-�B��[�(�U�k�-A�� � �A� �$4�5�'+�'8�'8� �'+�'8�'8� � ��D�F� �J�J�L���D�F� �J�J�L�s0�A:D�= C=�C=�0C=�6.C=�%D�=D�Dc���|jry|dkr|xj|z c_|xj|z c_|j|jz |jk\�r�|j �}||j z }||j k\�rY||j|jzk\�r;|j �}|j|jz }|jr&|r$|r"|j|�|j|�|j|j��|jr�|jr5||jk\r&||j xs |jz|z |_n^|jr7|j!||j r|r|j |z ndz�|_nt#|j|�|_|j|_||_yyyy)ag Manually update the progress bar, useful for streams such as reading files. E.g.: >>> t = tqdm(total=filesize) # Initialise >>> for current_buffer in stream: ... ... ... t.update(len(current_buffer)) >>> t.close() The last line is highly recommended, but possibly not necessary if `t.update()` will be called in such a way that `filesize` will be exactly reached and printed. Parameters ---------- n : int or float, optional Increment to add to the internal counter of iterations [default: 1]. If using float, consider specifying `{n:.3f}` or similar in `bar_format`, or specifying `unit_scale`. Returns ------- out : bool or None True if a `display()` was triggered. Nrr�r T)r�r�r�r�r�r�r�rQr�r�r�r�rUr�r�r�r�r{)r6r�r�r��dns r*rz tqdm.update�s���4 �<�<� � �q�5� � � �� "� � ���!� �� �6�6�D�%�%� %���� 6��J�J�L�E���*�*�*�B��T�%�%�%�%�4�<�<�$�*�*�3L�*L�� � � ���V�V�d�/�/�/���>�>�b�R��L�L��$��L�L��$�� � �t�~�~� �6��(�(� �'�'�B�$�2B�2B�,B�(*�d�.>�.>�.R�$�BR�BR�(S�VX�(X�� ����(,�(:�(:��4�;K�;K�PR�$�"2�"2�R�"7�'(�*�)+�� � ),�D�M�M�2�(>�� �%)�F�F��!�$)��!��9+M�%� 7r)c�H���jryd�_t�j�}�j���j�j �j zkryt�dd��y�fd�} |d��j�|dk(n �j}�j5|r#d��_ �jd� �|d �n�jd|� �r |s|d �ddd�y#t$r}dt|�vrYd}~y�d}~wwxYw#1swYyxYw) z3Cleanup and (if leave=False) close the progressbar.NTr�c�N���jjt|��yr;)r�r�r2)r�r6s �r*r8ztqdm.close.<locals>.fp_writes��� �G�G�M�M�#�a�&� !r)rp�closedrc��yr;r(r(r)r*r�ztqdm.close.<locals>.<lambda>���tr)r@r/)r7r6r�)r�r�r6rLr�rQr�r�� ValueErrorr2r�rDr��display)r6r6r8r4r�s` r*r~z tqdm.close�s��� �<�<� ��� ��$�(�(�m�� ���T�"� � � �t�|�|�d�j�j�8� 8� � �4��t� $� ,� � "� � �R�L� !�J�J�.��q��D�J�J�� �Z�Z��+�� �� � �� �#�����<�<�B�C�<�0���T�N��Z��� ��3�q�6�!�� �� ���Z�s+�7C4�(AD�4 D�= D�D�D�D!c�~�|jry|s|jj�t|j�}||j xsdkrO|j |�|jd�|jjd�|j | �|s|jj�yy)zClear current bar display.Nr=rpr�) r�rDrPr�r6rG�movetor�r�r�rT)r6rCr6s r*rJz tqdm.clears��� �<�<� �� �J�J� � � ��$�(�(�m�� �$�*�*�"�� #� �K�K�� � �G�G�B�K� �G�G�M�M�$� � �K�K��� �� �J�J� � � �r)c���|jry|s6|r|jj|�sy|jj�|j�|s|jj �y)a� Force refresh the display of this bar. Parameters ---------- nolock : bool, optional If `True`, does not lock. If [default: `False`]: calls `acquire()` on internal lock. lock_args : tuple, optional Passed to internal lock's `acquire()`. If specified, will only `display()` if `acquire()` returns `True`. NFT)r�rDrPr�rT)r6rCr�s r*rUz tqdm.refresh-sZ�� �<�<� ���)�t�z�z�)�)�9�5� �� � �"�"�$� � � ��� �J�J� � � �r)c��|jry|j�}|xj||jz z c_||_y)z(Restart tqdm timer from last print time.N)r�r�rQr�)r6r�s r*�unpausez tqdm.unpauseHs8�� �<�<� �� � � �� � � ��� 1� 1�1�1� �!��r)c�@�d|_|�||_|jryd|_|j �x|_|_t|j�|_ t|j�|_ t|j�|_ |j�y)z� Resets to 0 iterations for repeated use. Consider combining with `leave=True`. Parameters ---------- total : int or float, optional. Total to use for the new bar. rN) r�r�r�r�r�r�rQr�r�r�r�r�rU)r6r�s r*�resetz tqdm.resetPsy����� � ��D�J� �<�<� ����+/�:�:�<�7���D�L��4�>�>�*�� ��4�>�>�*�� � ����0��� � � �r)c�F�|r|dznd|_|r|j�yy)z� Set/modify description of the progress bar. Parameters ---------- desc : str, optional refresh : bool, optional Forces refresh [default: True]. r0rpN�r�rU�r6r�rUs r*�set_descriptionztqdm.set_descriptionfs$��$(�D�4�K�R�� � � �L�L�N� r)c�@�|xsd|_|r|j�yy)z-Set/modify description without ': ' appended.rpNr�r�s r*�set_description_strztqdm.set_description_strts���J�B�� � � �L�L�N� r)c ���t|�gn|��t|j��D] }||�|<� �j�D]R}t�|t�r|j �|��|<�.t�|t �r�Bt �|��|<�Tdj�fd��j�D��|_|r|j�yy)a8 Set/modify postfix (additional stats) with automatic formatting based on datatype. Parameters ---------- ordered_dict : dict or OrderedDict, optional refresh : bool, optional Forces refresh [default: True]. kwargs : dict, optional Nr�c3�P�K�|]}|dz�|j�z���y�w)�=N)�strip)r�rArs �r*r�z#tqdm.set_postfix.<locals>.<genexpr>�s/�����!<�,:�S�"%�s��W�S�\�-?�-?�-A�!A�,:�s�#&) r�sorted�keysryr r�r2r�rrU)r6� ordered_dictrUrIrArs @r*r�ztqdm.set_postfixzs�����L�$8�b�l�K���&�+�+�-�(�C�!�#�;�G�C�L�)��<�<�>�C��'�#�,��/�#���w�s�|�<��� ���� �c�2�"�7�3�<�0��� � "��y�y�!<�,3�L�L�N�!<�<�� � � �L�L�N� r)c�J�t|�|_|r|j�yy)zS Postfix without dictionary expansion, similar to prefix handling. N)r2rrU)r6r�rUs r*�set_postfix_strztqdm.set_postfix_str�s ���1�v�� � � �L�L�N� r)c��|jjd|zt�| zz�t|jdd���y)Nr/r�c��yr;r(r(r)r*r�ztqdm.moveto.<locals>.<lambda>�s��$r))r�r�rr�)r6r�s r*r�z tqdm.moveto�s9�� ��� � �d�Q�h���A�2�!5�5�6�/������,�/�1r)c���|jr2t|d�s&td�|j|jddd��S|j r(|j |j �\|_|_|j|jt|d�r|j�|jz nd|j|j|j|j|j|j|j�r!|j!�|j�z nd|j"|j$|j&|j(|j*d�S) z'Public API for read-only member access.r�c��yr;r(r(r)r*r�z"tqdm.format_dict.<locals>.<lambda>�r�r)r�it)r�r�r�r�rQN)r�r�r�r�rGrrr�rr�rrrrr�)r�rdrr�r�r�r�r�rGr�rQr�rr�rr�r�rrrrr�r]s r*r#ztqdm.format_dict�s��� �<�<���f� 5��|��V�V�d�j�j�Q��.N�O� O� � � �%)�%7�%7����%@� "�D�J�� ����$�*�*�6=�d�I�6N�t�z�z�|�d�l�l�2�TU��Z�Z�$�*�*�� � ��Z�Z����$�/�/�7;�|�|�~�D�L�L�N�T�\�\�^�3�4��/�/�d�l�l� �-�-�$�,�,��k�k�#� #r)c��|�t|j�}|jxsd}||dz k\r ||k\ry|s|�d}t|d�s:t dt |j dtjj����|r|j|�|j|�|j�n|�|r|j| �y ) a� Use `self.sp` to display `msg` in the specified `pos`. Consider overloading this function when inheriting to use e.g.: `self.some_frontend(**self.format_dict)` instead of `self.sp`. Parameters ---------- msg : str, optional. What to display (default: `repr(self)`). pos : int, optional. Position to `moveto` (default: `abs(self.pos)`). r=r Fz ... (more hidden) ...r�zAPlease use `tqdm.gui.tqdm(...)` instead of `tqdm(..., gui=True)` r�rrT) r�r6rGrdr!r�r�r�r�r�r�r�r�)r6r7r6rGs r*r�z tqdm.display�s��� �;��d�h�h�-�C�� � � �b�� �%�!�)� ��e�|���c�k�.���t�T�"�(�6� ����'�3�:�:�3C�3C�D�F� F� � �K�K�� � ���#�+�� � ��3�7� � �K�K��� �r)c+�K�|dd|i|��5}|rd|_d|_d|_t|j||���ddd�y#1swYyxYw�w)a� stream : file-like object. method : str, "read" or "write". The result of `read()` and the first argument of `write()` should have a `len()`. >>> with tqdm.wrapattr(file_obj, "read", total=file_obj.size) as fobj: ... while True: ... chunk = fobj.read(chunk_size) ... if not chunk: ... break r��BTiNr()r�rrrr)rU�stream�methodr��bytesr�r�s r*�wrapattrz tqdm.wrapattr�sP����� ,�u� ,� � ,������#�� �!%���#�A�H�H�f�f�=� =� -� ,� ,�s� A�1A� A�A� A)rp��) NrpFr�FNNNrrNr;)Nr/F)NF)NNNTNNg�������?g$@NNFr�FFr�NrNNrFNNNgF)r )F)FN)NT)rpTrb)6r%r&r'r<r-r.r r+� staticmethodr�r�r�r�r&r)rlr;rLr�rrNrXr*r�rr�r�r5r�r�r�r�r^rbr�r�r�r�r�r�rr~rJrUr�r�r�r�r�r�r�r#r�rr(r)r*rr�s.��v�p���G���J��&��&�:�E��E�$�+��+�$����2�QU�KO�:>�DK��DK�L� �I��I� �1��1�:������$���$�8�������� �uF��uF�p �W��e�c�W\�9<�s�-L�M�NR�IM�BG�NO�MR�IN� U)�M�U)�n#�/� !�S��F��5��2��2��$�LA�F*#�X!� �6"��, �� �>�2� �#��#�""�H��>���>r)rc�&�tt|�fi|��S)z*Shortcut for tqdm(range(*args), **kwargs).)rr�)rHrIs r*rr�s�� ��t� � '�� '�'r))5r<r�� collectionsrr� contextlibrrrr�numbersr r r�r �weakrefr �_monitorr�utilsrrrrrrrrrrrr� __author__�__all__rrr�r�Warningrr�r �DeprecationWarningr!�RuntimeWarningr"rJr(rLrnr�rrr(r)r*�<module>rs���� �0�%�2�2������ � � � � :� � !��  �I� � �8� � +�'� +� �k�=� �  �[�*<� �  ��n� �  �4X�6�4X�nPM�&�PM�fQ�&�Q�>z>�:�z>�z'(r)

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/noah-vh/mcp-server-clickup'

If you have feedback or need assistance with the MCP directory API, please join our Discord server