Files
witness-fracture/.venv/lib/python3.12/site-packages/tqdm/__pycache__/cli.cpython-312.pyc
T

136 lines
15 KiB
Plaintext
Raw Normal View History

2025-06-23 17:55:02 -05:00
Ë
y»Yh+ãó
—dZddlZddlZddlZddlmZddlmZddl m
Z
m Z m Z ddl
mZdgZej e«Zd „Zd
d d „d
fd„Zej*d«Zej*d«ZdZdZej4dfd„Zy)zI
Module version for monitoring CLI pipes (`... | python -m tqdm | ...`).
éN)Ú literal_eval)Úindenté)Ú TqdmKeyErrorÚ
TqdmTypeErrorÚtqdm)Ú __version__ÚmaincóÒ—tj||f«d|vr4|jd«D]} t||«cSt |›d|›�«‚|dk(r"|dk(s|dk(ry|dk(ryt |dz|z«‚|d k(rat |«d
k(r|j
«Stjd |«rtd |›d �«j
«St |›d|›�«‚|d
k(r|S|dk(r t|«S|dk(r t|«St |›d|›�«‚#t$rYŒôwxYw#t$r}t |›d|›�«|‚d}~wwxYw#t$r}t |›d|›�«|‚d}~wwxYw)Nz or z : ÚboolÚTrueÚTÚFalseFÚchrrz^\\\w+$ú"ÚstrÚintÚfloat)
ÚlogÚdebugÚsplitÚcastrÚlenÚencodeÚreÚmatchÚevalrÚ
ValueErrorr)ÚvalÚtypÚtÚexcs úQ/mnt/c/fieldcraft/witness-fracture/.venv/lib/python3.12/site-packages/tqdm/cli.pyrrs¦€Ü‡I�Iˆs�CˆjÔØ
��}Ø—‘˜6Ó"ò ˆAð
ܘC “|Ò#ð ô
˜s˜e 3 s eÐ,Ó-Ð-ð ˆf‚}Ø �6ŠM˜s bšyØØ �'Š>ØÜ˜C %™K¨#Ñ-Ó.Ð.Ø
ˆe‚|Ü ˆs‹8�qŠ=Ø—:‘:“<Ð Ü
�8‰8�J Ô $ܘ!˜C˜5 ˜
Ó#×*Ñ*Ó,Ð ,ܘs˜e 3 s eÐ,Ó-Ð-Ø
ˆe‚|؈
Ø
ˆe‚|ð ;Ü�s“8ˆOð ˆg‚~ð ;ܘ“:Ð ô ˜3˜%˜s 3 %Ð(Ó
)Ð)øô;!ò
Ùð
ûô,ò ;Ü 3 % s¨3¨%Ð 0Ó1°sÐ :ûð ;ûô
ò ;Ü 3 % s¨3¨%Ð 0Ó1°sÐ :ûð ;úsA± DÃ*
D%Ã;
EÄ D"Ä!D"Ä% EÄ.D?Ä?EÅ E&ÅE!Å!E&ó\nécó—y©N©)rs r#ú<lambda>r)8ó�óTc ó@—|j}|sB |j|«}|st|dd„««y||«|t|««ŒAd}t|«} |j|«}|sY|rC||«|r|d|j |«z«n|j |«D]
}
||
«Œ t|dd„««y |j
|«}
|
dkr||z
}n7|||d|
t|«zz«||rdn||d|
z«d}||
| zd}ŒSŒÁ)aZ
Params
------
fin : binary file with `read(buf_size : int)` method
fout : binary file with `write` (and optionally `flush`) methods.
callback : function(float), e.g.: `tqdm.update`
callback_len : If (default: True) do `callback(len(buffer))`.
Otherwise, do `callback(data) for data in buffer.split(delim)`.
Úflushcó—yr'r(r(r+r#r)zposix_pipe.<locals>.<lambda>Jr*r+Nr+rcó—yr'r(r(r+r#r)zposix_pipe.<locals>.<lambda>ar*r+r)ÚwriteÚreadÚgetattrrÚcountrÚfind) ÚfinÚfoutÚdelimÚbuf_sizeÚcallbackÚ callback_lenÚfp_writeÚtmpÚbufÚ len_delimÚis r#Ú
posix_piper@7sB€ð�z‰z€Há ØØ—(‘(˜8Ó$ˆCñØ4”˜˜g¡|Ó4Ô6Øá �SŒMÙ ”S˜“XÔ ðð €CÜ�E“
€Ià
Ø�h‰h�xÓ ˆñÙÙ˜”
Ùá˜Q §¡¨5Ó!1Ñ1Õ2à ŸY™Y uÓ-ò$˜Ù  � ð$à 0ŒG�D˜'¡<Ó 0Ô 2Ø àØ—‘˜“ˆAØ�1ŠuØ�s‘
�ØÙ �S˜3˜ ¤C¨£J¡Ð/Ñ/Ô 0á ™,‘Q¨S°3°r¸°7©]Ô <؈CØ�a˜)‘m�nÐ%ˆCðð! r+z\n {4}(\S+)\s{2,}:\s*([^,]+)z\s*(?<!\S)--?([^\s=]+)(\s+|=|$))ÚiterableÚguiÚoutÚfilea 
Extra CLI Options
-----------------
name : type, optional
TODO: find out why this is needed.
delim : chr, optional
Delimiting character [default: '\n']. Use '\0' for null.
N.B.: on Windows systems, Python converts '\n' to '\r\n'.
buf_size : int, optional
String buffer size in bytes [default: 256]
used when `delim` is specified.
bytes : bool, optional
If true, will count bytes, ignore `delim`, and default
`unit_scale` to True, `unit_divisor` to 1024, and `unit` to 'B'.
tee : bool, optional
If true, passes `stdin` to both `stderr` and `stdout`.
update : bool, optional
If true, will treat input as newly elapsed iterations,
i.e. numbers to pass to `update()`. Note that this is slow
(~2e5 it/s) since every input must be decoded as a number.
update_to : bool, optional
If true, will treat input as total elapsed iterations,
i.e. numbers to assign to `self.n`. Note that this is slow
(~2e5 it/s) since every input must be decoded as a number.
null : bool, optional
If true, will discard input (no stdout).
manpath : str, optional
Directory in which to install tqdm man pages.
comppath : str, optional
Directory in which to place tqdm completion.
log : str, optional
CRITICAL|FATAL|ERROR|WARN(ING)|[default: 'INFO']|DEBUG|NOTSET.
c óî
‡‡‡‡‡ ‡!—‰€tjddŠ ‰jd«}‰|dz}t
jtt |«d¬«tjdkrtjnttjd «tz}ttj!|««}t"D]}|j%|«Œt&j)t+|j-«««tj/|«}t1|ddd
…|d dd
…|d
dd
…«} d j3d
„| D««}d}
|
dz|j5d«zdz}t7ˆfd„dD««r<tj8j;t<dz«tj>d«n�t7ˆfd„dD««r8tj8j;|dz«tj>d«n5‰r3‰ddd dk7r(tj@j;d‰d›d|
›�«tBj/dj3dg‰z««Štt1‰ddd
…‰d
dd
…««} t&j)| «| j%dd«d‰i} | j-«D]*\}}
|jEdd«} tG|
||«| |<Œ,t&j)dtM| «z«| j%d d!«}| j%d"d!«}| j%d#d!«}tO|||f«dkDr tKd$«‚ | j%d%d&«}| j%d'd(«}| j%d)d!«}| j%d*d«}| j%d+d«}| j%d,d!«rGd-„d.tP«}ntj8}t|d/|«}ttjRd/tjR«}|s|rM ddl*Šdd1l.m/}ˆfd2„}|�|d3||«d3z «|�|d4||«d5z «tj>d«|r6|j:Š t‰d/‰«j:ŠGˆˆˆ fd6„d.tP«}|ry| jad7d8«| jad9d«| jad:d;«t&j)| «tdAi| ¤Ž5Š!tc||d |‰!jd«ddd«y|d(k(ryt&j)| «|j:}|s|r:tdAi| ¤Ž5Š!|rˆ!fd<„}nˆ!fd=„}|D]}||«||«Œ ddd«yt|fi| ¤ŽD]
}||«Œ yt&j)| «tdAi| ¤Ž5Š!d!}|rˆ!fd>„}n|rˆ!fd?„}n‰!jd}d}tc||||||«ddd«y#t$r.‰D]#}|j d«sŒ|t d«d}nd}Y�ŒwxYw#tH$r}tKtM|««‚d}~wwxYw#tV$r
dd0l,m-ŠY�ŒDwxYw#1swYyxYw#1swYyxYw#1swYyxYw#tf$rP‰j;d@|
z«tjRtj8j:c}Š |D]
}‰ |«Œ ‚wxYw)Bzƒ
Parameters (internal use only)
---------
fp : file-like object for tqdm
argv : list (default: sys.argv[1:])
Nrz--logz--log=ÚINFOz/%(levelname)s:%(module)s:%(lineno)d:%(message)s)ÚlevelÚformat)éé
z rIérc3ó K—|]F}|dtvr9|ddk(rdndj|djdd«|dg|dd¢­Ž–—ŒHy­w)rrr z
--{0} : {2}{3}z
--{0}=<{1}> : {2}{3}Ú_ú-N)ÚUNSUPPORTED_OPTSrHÚreplace)Ú.0Úotds r#ú <genexpr>zmain.<locals>.<genexpr>Äsjèø€òMð¨S°©VÔ;KÑ-Kð5¨#¨a©&°FÒ*:Ñ&Ø,¯f©fؘ‘V—^‘^ C¨Ó-¨s°1©vðAà8;¸A¸B¸öAñMùs‚A Az!Usage:
tqdm [--help | options]
z^
Options:
-h, --help Print this help and exit.
-v, --version Print version and exit.
ú
c3ó&•K—|]}|‰v–—Œ
y­wr'r(©rQÚvÚargvs €r#rSzmain.<locals>.<genexpr>Ñsøèø€Ò
2˜ˆ1�Œ9Ñ
2ùóƒ)z-vz --versionrc3ó&•K—|]}|‰v–—Œ
y­wr'r(rVs €r#rSzmain.<locals>.<genexpr>Ôsøèø€Ò 1˜1ˆQ�$ŒYÑ 1ùrY)z-hz--helpz--zError:Unknown argument:ú rrTrDrNrMzargs:ÚbytesFÚupdateÚ update_toz1Can only have one of --bytes --update --update_tor8r%r7r$ÚteeÚmanpathÚcomppathÚnullcó—eZdZed„«Zy)úmain.<locals>.stdoutcó—yr'r()rMs r#r0zmain.<locals>.stdout.writeýs€àr+N©Ú__name__Ú
__module__Ú __qualname__Ú staticmethodr0r(r+r#Ústdoutrdüs„Øñóñr+rkÚbuffer)Ú resources)ÚPathc󘕗‰jd«|z }|j|j««tj d|«y)zcopy resource `name` to `dst`rz
written:%sN)ÚfilesÚ write_bytesÚ
read_bytesrÚinfo)ÚnameÚdstÚfirms €r#Úcpzmain.<locals>.cp s6ø€à—_‘_ VÓ,¨tÑ3�Ø—‘ §
¡
£Ô0Ü—‘˜ sÕ+r+ztqdm.1z
completion.shztqdm_completion.shcó&•—eZdZeˆˆˆfd„«Zy)rdcó|•—tj‰¬«5‰|«ddd«‰|«y#1swYŒxYw)N)rD)rÚexternal_write_mode)ÚxÚfpr;Ú stdout_writes €€€r#r0zmain.<locals>.stdout.writes4ø€ä×1Ñ1°rÔ:ñ$Ù  œ ÷$á  •O÷$ð$ús˜ 2²;Nrf)r|r;r}s€€€r#rkzmain.<locals>.stdoutsø„Øõ$óñ$r+ÚunitÚBÚ
unit_scaleÚ unit_divisoricóV•—‰jt|j«««yr'©r]ÚnumericÚdecode©r?r!s €r#r9zmain.<locals>.callback,sø€ØŸH™H¤W¨Q¯X©X«ZÓ%8Õ9r+cóp•—‰jt|j««‰jz
«yr'©r]r„r…Únr†s €r#r9zmain.<locals>.callback/s#ø€ØŸH™H¤W¨Q¯X©X«ZÓ%8¸1¿3¹3Ñ%>Õ?r+cóV•—‰jt|j«««yr'rƒr†s €r#r9zmain.<locals>.callback<sø€ØŸ™¤¨¯©«Ó!4Õ5r+cóp•—‰jt|j««‰jz
«yr'rˆr†s €r#r9zmain.<locals>.callback?s#ø€ØŸ™¤¨¯©«Ó!4°q·s±sÑ!:Õ;r+z
Error:
r()4ÚsysrXÚindexrÚ