403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.6
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u119869361 ( 9600978)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/pip/_internal/commands/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/pip/_internal/commands/__pycache__/cache.cpython-313.pyc
�

�h����SSKrSSKrSSKJr SSKJrJr SSKJr SSK	J
r
Jr SSKJ
r
Jr SSKJr SSKJr SS	KJr \"\5r"S
S\5rg)�N)�Values)�Any�List)�Command)�ERROR�SUCCESS)�CommandError�PipError)�
filesystem)�	getLogger)�format_sizec�L�\rSrSrSrSrSrSSjrS\S	\	\
S\4S
jrS\S	\	\
SS4SjrS\S	\	\
SS4SjrS\S	\	\
SS4S
jrS\	\
SS4SjrS\	\
SS4SjrS\S	\	\
SS4SjrS\S	\	\
SS4SjrS\S\
S\
4SjrS\S\	\
4SjrS\S\
S\	\
4SjrSrg)�CacheCommand�aS
Inspect and manage pip's wheel cache.

Subcommands:

- dir: Show the cache directory.
- info: Show information about the cache.
- list: List filenames of packages stored in the cache.
- remove: Remove one or more package from the cache.
- purge: Remove all items from the cache.

``<pattern>`` can be a glob expression or a package name.
Tz�
        %prog dir
        %prog info
        %prog list [<pattern>] [--format=[human, abspath]]
        %prog remove <pattern>
        %prog purge
    �returnNc	��URRSSSSSSS9 URRSUR5 g)	Nz--format�store�list_format�human)r�abspathz:Select the output format among: human (default) or abspath)�action�dest�default�choices�helpr)�cmd_opts�
add_option�parser�insert_option_group)�selfs �>/usr/lib/python3/dist-packages/pip/_internal/commands/cache.py�add_options�CacheCommand.add_options(sE���
�
� � �����(�M�
	!�	
�	
���'�'��4�=�=�9��options�argsc��URURURURURS.nUR
(d[RS5 [$U(a	USU;a4[RSSR[U555 [$USnX4"XSS5 [$![a2n[RURS5 [sSnA$SnAff=f)N)�dir�info�list�remove�purgez<pip cache commands can not function since cache is disabled.rzNeed an action (%s) to perform.z, �)�
get_cache_dir�get_cache_info�list_cache_items�remove_cache_items�purge_cache�	cache_dir�logger�errorr�join�sortedr
r&r)r r%r&�handlersr�es      r!�run�CacheCommand.run4s����%�%��'�'��)�)��-�-��%�%�
��� � ��L�L�W�X��L��t�A�w�h�.��L�L�1��	�	�&��*�+�
��L��a���	���W�1�2�h�/�
���	�	��L�L������#��L��	�s�1
C�
D�'C;�5D�;Dc�f�U(a[S5e[RUR5 g)N�Too many arguments)r	r4r)r3�r r%r&s   r!r.�CacheCommand.get_cache_dirTs#����3�4�4����G�%�%�&r$c
�D�U(a[S5e[URU55n[URUS55nUR	US5nUR	US5nUR	US5n[
R"[
R"U5[
R"U5-5n[
R"U5n	[R"S5RUUUUUUU	S9R5n
[RU
5 g)Nr=�*�http-v2�http�wheelsa
                    Package index page cache location (pip v23.3+): {http_cache_location}
                    Package index page cache location (older pips): {old_http_cache_location}
                    Package index page cache size: {http_cache_size}
                    Number of HTTP files: {num_http_files}
                    Locally built wheels location: {wheels_cache_location}
                    Locally built wheels size: {wheels_cache_size}
                    Number of locally built wheels: {package_count}
                )�http_cache_location�old_http_cache_location�http_cache_size�num_http_files�wheels_cache_location�
package_count�wheels_cache_size)r	�len�_find_http_files�_find_wheels�
_cache_dirrr
�directory_size�format_directory_size�textwrap�dedent�format�stripr4r))r r%r&rH�num_packagesrErFrIrGrK�messages           r!r/�CacheCommand.get_cache_infoZs
����3�4�4��T�2�2�7�;�<���4�,�,�W�c�:�;��"�o�o�g�y�A��"&�/�/�'�6�"B�� $����� B��$�0�0��%�%�&9�:��'�'�(?�@�
A�
��'�<�<�=R�S��
�O�O��

��V�$7�(?� /�-�&;�*�"3����U�W�+	�0	���G�r$c���[U5S:�a[S5eU(aUSnOSnURX5nURS:XaUR	U5 gURU5 g)Nr-r=rrAr)rLr	rNr�format_for_human�format_for_abspath)r r%r&�pattern�filess     r!r0�CacheCommand.list_cache_items�sd���t�9�q�=��3�4�4���1�g�G��G��!�!�'�3�����'�)��!�!�%�(��#�#�E�*r$r]c�r�U(d[RS5 g/nUHPn[RR	U5n[
R"U5nURSUSUS35 MR [RS5 [RSR[U555 g)NzNo locally built wheels cached.z - z (�)zCache contents:
�
)
r4r)�os�path�basenamer�format_file_size�appendr6r7)r r]�results�filename�wheel�sizes      r!rZ�CacheCommand.format_for_human�s�����K�K�9�:�����H��G�G�$�$�X�.�E��.�.�x�8�D��N�N�S���r�$��q�1�2��	���'�(����D�I�I�f�W�o�.�/r$c�n�U(a.[RSR[U555 gg)Nra)r4r)r6r7)r r]s  r!r[�CacheCommand.format_for_abspath�s#����K�K��	�	�&��-�0�1�r$c��[U5S:�a[S5eU(d[S5eURXS5nSnUSS:XaX0RU5-
nOUSUSS3-
nU(d[RU5 SnUHRnU[R"U5R-
n[R"U5 [RS	U5 MT [RS
[U5[U55 g)Nr-r=zPlease provide a patternrzNo matching packagesrAz for pattern "�"z
Removed %szFiles removed: %s (%s))
rLr	rNrMr4�warningrb�stat�st_size�unlink�verboser)r
)r r%r&r]�no_matching_msg�
bytes_removedrhs       r!r1�CacheCommand.remove_cache_items�s����t�9�q�=��3�4�4���9�:�:��!�!�'��7�3��0����7�c�>��*�*�7�3�3�E�
���Q��y��:�:�O���N�N�?�+��
��H��R�W�W�X�.�6�6�6�M��I�I�h���N�N�<��2��	���,�c�%�j�+�m�:T�Ur$c�L�U(a[S5eURUS/5$)Nr=rA)r	r1r>s   r!r2�CacheCommand.purge_cache�s&����3�4�4��&�&�w���6�6r$�subdirc�V�[RRURU5$)N)rbrcr6r3)r r%rzs   r!rO�CacheCommand._cache_dir�s���w�w�|�|�G�-�-�v�6�6r$c��URUS5nURUS5n[R"US5[R"US5-$)NrCrBrA�rOr�
find_files)r r%�old_http_dir�new_http_dirs    r!rM�CacheCommand._find_http_files�sN�����w��7�����w�	�:���$�$�\�3�7�*�:O�:O��#�;
�
�	
r$r\c�l�URUS5nUSU;aSOS-n[R"X25$)NrD�-z*.whlz-*.whlr~)r r%r\�	wheel_dirs    r!rN�CacheCommand._find_wheels�s7���O�O�G�X�6�	�$��w��W�H�E���$�$�Y�8�8r$�)rN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�ignore_require_venv�usager"rr�str�intr:rr.r/r0rZr[r1r2rOrMrN�__static_attributes__r�r$r!rrsR�����
�E�
:��6���c���s��@'�V�'�4��9�'��'�(�f�(�D��I�(�$�(�T
+��
+�d�3�i�
+�D�
+�0�d�3�i�0�D�0�2��S�	�2�d�2�V�&�V��S�	�V�d�V�67�6�7��c��7�t�7�7�&�7�#�7�#�7�
��
�4��9�
�9�F�9�S�9�T�#�Y�9r$r)rbrR�optparser�typingrr�pip._internal.cli.base_commandr�pip._internal.cli.status_codesrr�pip._internal.exceptionsr	r
�pip._internal.utilsr�pip._internal.utils.loggingr�pip._internal.utils.miscr
r�r4rr�r$r!�<module>r�s;��	����2�9�;�*�1�0�	�8�	��T9�7�T9r$

Youez - 2016 - github.com/yon3zu
LinuXploit