403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3.14/importlib/metadata/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.14/importlib/metadata/__pycache__/__init__.cpython-314.pyc
+
��3j+���N�^RIHt^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RI	t	^RI
t
^RIt^RIt^RI
t
^RIt^RIt^RIt^RIt^RIt^RIHt^RIHtHt^RIHtHt^RIHtHt^RIHtHt^RI H!t!^R	I"H#t#^R
I$H%t%^RIH&t&^RI'H(t(H)t)H*t*H+t+H,t,H-t-H.t.H/t/.RAOt0!RR]14t2!RR4t3!RR4t4!RR]54t6!RR]
Pn4t8!RR4t9!RR4t:!RR
]:4t;!RR]%4t<!RR 4t=!R!R"4t>!R#R$4t?!R%R&]<4t@!R'R(];4tAR)R*ltBR+R,ltCR-R.ltDR/R0ltE]P�!]]P�!R14R27tHR3R4ltIR5R6ltJR7R8ltKR9R:ltLR;tMR<R=ltNR>R?ltOR@tPR#)B�)�annotationsN)�_meta)�FreezableDefaultDict�Pair)�method_cache�	pass_none)�always_iterable�unique_everseen)�PackageMetadata�
SimplePath)�suppress)�
import_module)�MetaPathFinder)�starmap)�Any�Iterable�List�Mapping�Match�Optional�Set�cast�Distribution�DistributionFinder�PackageNotFoundErrorc�<�]tRt^1tRtRRlt]RRl4tRtR#)rzThe package was not found.c��V^8�dQhRR/#���return�str�)�formats"�2/usr/lib/python3.14/importlib/metadata/__init__.py�__annotate__�!PackageNotFoundError.__annotate__4s��@�@��@�c	� �RVP2#)z"No package metadata was found for ��name��selfs&r$�__str__�PackageNotFoundError.__str__4s��3�D�I�I�;�?�?r'c��V^8�dQhRR/#rr")r#s"r$r%r&8s����c�r'c	�"�VPwpV#�N)�args�r,r*s& r$r*�PackageNotFoundError.name7s���)�)����r'r"N)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__r-�propertyr*�__static_attributes__r"r'r$rr1s��$�@����r'c��]tRt^=tRt]P!R4P4t]	R4t
]R	Rl4t]RRl4t
RtR#)
�	Sectioneda8
A simple entry point config parser for performance

>>> for item in Sectioned.read(Sectioned._sample):
...     print(item)
Pair(name='sec1', value='# comments ignored')
Pair(name='sec1', value='a = 1')
Pair(name='sec1', value='b = 2')
Pair(name='sec2', value='a = 2')

>>> res = Sectioned.section_pairs(Sectioned._sample)
>>> item = next(res)
>>> item.name
'sec1'
>>> item.value
Pair(name='a', value='1')
>>> item = next(res)
>>> item.value
Pair(name='b', value='2')
>>> item = next(res)
>>> item.name
'sec2'
>>> item.value
Pair(name='a', value='2')
>>> list(res)
[]
zm
        [sec1]
        # comments ignored
        a = 1
        b = 2

        [sec2]
        a = 2
        c	�H�RVPWPR74#)c3�"�TFEpVPfKVP\P!VP4R7x�KG	R#5i)N)�value)r*�_replacer�parser@)�.0�sections& r$�	<genexpr>�*Sectioned.section_pairs.<locals>.<genexpr>hs>���
�<���|�|�
>�G���4�:�:�g�m�m�#<��=�=�<�s
�A�8A)�filter_)�read�valid)�cls�texts&&r$�
section_pairs�Sectioned.section_pairsfs#��
��8�8�D�)�)�8�<�
�	
r'Nc#	�,"�\V\\PVP	444pRpVFUpVPR4;'dVP
R4pV'dVPR4pKH\W44x�KW	R#5i)N�[�]z[])�filter�mapr!�strip�
splitlines�
startswith�endswithr)rKrG�linesr*r@�
section_matchs&&    r$rH�Sectioned.readnsr����w��C�I�I�t���/@� A�B�����E�!�,�,�S�1�I�I�e�n�n�S�6I�M���{�{�4�(����t�#�#��s�AB�B�.&Bc��V^8�dQhRR/#)r�liner!r")r#s"r$r%�Sectioned.__annotate__zs��1�1�C�1r'c	�B�T;'dVPR4'*#)�#)rU)r[s&r$rI�Sectioned.validys���0�0�D�O�O�C�0�0�0r'r"r1)r5r6r7r8r9�textwrap�dedent�lstrip�_sample�classmethodrL�staticmethodrHrIr;r"r'r$r=r==sd���8�o�o�	�
�
�f�h���
��
��$��$��1��1r'r=c��]tRt^~t$Rt]P!R4tR]R&R]R&R]R&Rt	R]R	&R
Rlt
RR
lt]RRl4t
]RRl4t]RRl4tRtRtRtRtRtRtRtRRltRtR#)�
EntryPointapAn entry point as defined by Python packaging conventions.

See `the packaging docs on entry points
<https://packaging.python.org/specifications/entry-points/>`_
for more information.

>>> ep = EntryPoint(
...     name=None, group=None, value='package.module:attr [extra1, extra2]')
>>> ep.module
'package.module'
>>> ep.attr
'attr'
>>> ep.extras
['extra1', 'extra2']
zH(?P<module>[\w.]+)\s*(:\s*(?P<attr>[\w.]+)\s*)?((?P<extras>\[.*\])\s*)?$r!r*r@�groupNzOptional[Distribution]�distc�(�V^8�dQhRRRRRRRR/#)rr*r!r@rhr �Noner")r#s"r$r%�EntryPoint.__annotate__�s(��?�?�S�?��?�S�?�T�?r'c	�>�\V4PWVR7R#��r*r@rhN��vars�update)r,r*r@rhs&&&&r$�__init__�EntryPoint.__init__�s���T�
���t���>r'c��V^8�dQhRR/#)rr rr")r#s"r$r%rl�s��8�8�c�8r'c
�:�\\VPPVP44p\VP
R44p\RVP
R4;'gRPR44p\P!\W24#)z�Load the entry point from its definition. If only a module
is indicated by the value, return that module. Otherwise,
return the named object.
�moduleN�attr��.)rr�pattern�matchr@rrhrQ�split�	functools�reduce�getattr)r,r|rw�attrss&   r$�load�EntryPoint.load�sq��
�U�D�L�L�.�.�t�z�z�:�;���u�{�{�8�4�5���t�e�k�k�&�1�7�7�R�>�>�s�C�D�������7�7r'c��V^8�dQhRR/#rr")r#s"r$r%rl�s��%�%��%r'c	�z�VPPVP4pVfQhVPR4#)Nrw�r{r|r@rh�r,r|s& r$rw�EntryPoint.module�s5�����"�"�4�:�:�.��� � � ��{�{�8�$�$r'c��V^8�dQhRR/#rr")r#s"r$r%rl�s��#�#�c�#r'c	�z�VPPVP4pVfQhVPR4#)Nrxr�r�s& r$rx�EntryPoint.attr�s5�����"�"�4�:�:�.��� � � ��{�{�6�"�"r'c��V^8�dQhRR/#�rr z	List[str]r")r#s"r$r%rl�s��?�?�	�?r'c	��VPPVP4pVfQh\P!RVPR4;'gR4#)Nz\w+�extrasry)r{r|r@�re�findallrhr�s& r$r��EntryPoint.extras�sH�����"�"�4�:�:�.��� � � ��z�z�&�%�+�+�h�"7�"=�"=�2�>�>r'c	�<�\V4PVR7V#)�rirp)r,ris&&r$�_for�EntryPoint._for�s���T�
���t��$��r'c
�a�V3RlV4p\\\PVP	4V44#)a�
EntryPoint matches the given parameters.

>>> ep = EntryPoint(group='foo', name='bar', value='bing:bong [extra1, extra2]')
>>> ep.matches(group='foo')
True
>>> ep.matches(name='bar', value='bing:bong [extra1, extra2]')
True
>>> ep.matches(group='foo', name='other')
False
>>> ep.matches()
True
>>> ep.matches(extras=['extra1', 'extra2'])
True
>>> ep.matches(module='bing')
True
>>> ep.matches(attr='bong')
True
c3�<<"�TFp\SV4x�K	R#5ir1�r�)rC�paramr,s& �r$rE�%EntryPoint.matches.<locals>.<genexpr>�s����:�6�%���u�%�%�6�s�)�allrR�operator�eq�values)r,�paramsr�sf, r$�matches�EntryPoint.matches�s-���(;�6�:���3�x�{�{�F�M�M�O�U�;�<�<r'c	�H�VPVPVP3#r1ror+s&r$�_key�EntryPoint._key�s���y�y�$�*�*�d�j�j�0�0r'c	�D�VP4VP48#r1�r��r,�others&&r$�__lt__�EntryPoint.__lt__�s���y�y�{�U�Z�Z�\�)�)r'c	�D�VP4VP48H#r1r�r�s&&r$�__eq__�EntryPoint.__eq__�s���y�y�{�e�j�j�l�*�*r'c	��\R4h)z!EntryPoint objects are immutable.)�AttributeError)r,r*r@s&&&r$�__setattr__�EntryPoint.__setattr__�s���@�A�Ar'c	�\�RVP:RVP:RVP:R2#)zEntryPoint(name=z, value=z, group=�)ror+s&r$�__repr__�EntryPoint.__repr__�s2���t�y�y�m�8�D�J�J�>�B��Z�Z�N�!�
%�	
r'c��V^8�dQhRR/#)rr �intr")r#s"r$r%rl�s��!�!�#�!r'c	�4�\VP44#r1)�hashr�r+s&r$�__hash__�EntryPoint.__hash__�s���D�I�I�K� � r'r")r5r6r7r8r9r��compiler{�__annotations__rirsr�r:rwrxr�r�r�r�r�r�r�r�r�r;r"r'r$rgrg~s���� �j�j�	%��G�
� �I��J��J�#'�D�
 �'�?�8��%��%�
�#��#�
�?��?�
�=�.1�*�+�B�
�!�!r'rgc��]tRt^�tRtR
tRRltRtRRlt]	RRl4t
]	R	R
l4t]R4t
]R4tR
tR#)�EntryPointsz;
An immutable collection of selectable EntryPoint objects.
c� �V^8�dQhRRRR/#)rr*r!r rgr")r#s"r$r%�EntryPoints.__annotate__s��!�!��!�
�!r'c
��\\VPVR744# \d
\	T4hi;i)z+
Get the EntryPoint in self matching name.
r))�next�iter�select�
StopIteration�KeyErrorr3s&&r$�__getitem__�EntryPoints.__getitem__s;��	!���T�[�[�d�[�3�4�5�5���	!��4�.� �	!�s�#&�=c
�P�VPP:R\V4:R2#)zb
Repr with classname and tuple constructor to
signal that we deviate from regular tuple behavior.
�(r�)�	__class__r5�tupler+s&r$r��EntryPoints.__repr__
s��
 �>�>�2�2�E�$�K�@�@r'c��V^8�dQhRR/#�rr r�r")r#s"r$r%r�s��F�F�+�Fr'c
�.a�\V3RlV44#)z^
Select entry points from self that match the
given parameters (typically group and/or name).
c3�Z<"�TF qP!R/SB'gKVx�K"	R#5i�Nr")r�)rC�epr�s& �r$rE�%EntryPoints.select.<locals>.<genexpr>s����E��"�
�
�0D�V�0D�2�2��s�+�
+)r�)r,r�s&lr$r��EntryPoints.selects���
�E��E�E�Er'c��V^8�dQhRR/#�rr zSet[str]r")r#s"r$r%r�s��(�(�x�(r'c
�B�VUu0uFqPkK	up#uupi)z2
Return the set of all names of all entry points.
r)�r,r�s& r$�names�EntryPoints.namess��
#'�'�$�B���$�'�'��'��c��V^8�dQhRR/#r�r")r#s"r$r%r� s��)�)��)r'c
�B�VUu0uFqPkK	up#uupi)z3
Return the set of all groups of all entry points.
)rhr�s& r$�groups�EntryPoints.groupss��
$(�(�4�R���4�(�(��(r�c	�Fa�V!V3RlVPV444#)c3�D<"�TFqPS4x�K	R#5ir1)r�)rCr�ris& �r$rE�-EntryPoints._from_text_for.<locals>.<genexpr>(s����@�+?�R�7�7�4�=�=�+?��� )�
_from_text)rJrKris&&fr$�_from_text_for�EntryPoints._from_text_for&s����@�3�>�>�$�+?�@�@�@r'c	�N�R\PT;'gR44#)c3�"�TFEp\VPPVPPVPR7x�KG	R#5irn)rgr@r*)rC�items& r$rE�)EntryPoints._from_text.<locals>.<genexpr>,s9���
�;��
�D�J�J�O�O�4�:�:�3C�3C�4�9�9�U�U�;�s�A
Ary)r=rL)rKs&r$r��EntryPoints._from_text*s%��
�!�/�/��
�
��;�
�	
r'r"N)r5r6r7r8r9�	__slots__r�r�r�r:r�r�rdr�rer�r;r"r'r$r�r��sq����I�!�A�F��(��(��)��)��A��A��
��
r'r�c�b�]tRtRt$RtR]R&R]R&R]R&RR	R
lltRRltR
RltRt	R#)�PackagePathi2z"A reference to a path in a packagezOptional[FileHash]r�r��sizerric� �V^8�dQhRRRR/#)r�encodingr!r r")r#s"r$r%�PackagePath.__annotate__9s��:�:�#�:�C�:r'c	�B�VP4PVR7#)�r�)�locate�	read_text)r,r�s&&r$r��PackagePath.read_text9s���{�{�}�&�&��&�9�9r'c��V^8�dQhRR/#)rr �bytesr")r#s"r$r%r�<s��*�*�U�*r'c	�>�VP4P4#r1)r��
read_bytesr+s&r$�read_binary�PackagePath.read_binary<s���{�{�}�'�'�)�)r'c��V^8�dQhRR/#)rr rr")r#s"r$r%r�?s��+�+�
�+r'c
�8�VPPV4#)z'Return a path-like object for this path)ri�locate_filer+s&r$r��PackagePath.locate?s���y�y�$�$�T�*�*r'r"N)�utf-8)
r5r6r7r8r9r�r�r�r�r;r"r'r$r�r�2s*��,�
��

�I�
��:�*�+�+r'r�c�.�]tRtRtRRltRRltRtR#)�FileHashiDc� �V^8�dQhRRRR/#)r�specr!r rkr")r#s"r$r%�FileHash.__annotate__Es��7�7�S�7�T�7r'c	�B�VPR4wVnq nR#)�=N)�	partition�moder@)r,r	�_s&& r$rs�FileHash.__init__Es��#'�>�>�#�#6� ��	�1�jr'c��V^8�dQhRR/#rr")r#s"r$r%r
Hs��C�C�#�Cr'c	�<�RVPRVPR2#)z<FileHash mode: z value: �>�rr@r+s&r$r��FileHash.__repr__Hs��!�$�)�)��H�T�Z�Z�L��B�Br'rN)r5r6r7r8rsr�r;r"r'r$rrDs��7�C�Cr'rc�(a�]tRtRtV3RltRtV;t#)�DeprecatedNonAbstractiLc		�V<�\P!V4UUu0uFp\V4FqDkK	K	pppVUu0uF#p\\W4RR4'gK!VkK%	ppV'd!\P
!RV2\^R7\SV`!V4#uuppiuupi)�__isabstractmethod__FzUnimplemented abstract methods )�
stacklevel)	�inspect�getmrorqr��warnings�warn�DeprecationWarning�super�__new__)rJr2�kwargs�subclassr*�	all_names�abstractr�s&*,    �r$r!�DeprecatedNonAbstract.__new__Ns����!(����!4�
�!4�X��h���D��D�!4�	�
�
"�
�!���w�s�)�+A�5�I�
�D�!�	�
�
��M�M�1�(��<�"��
�
�w��s�#�#��
��
s�B �B&�!B&r")r5r6r7r8r!r;�
__classcell__�r�s@r$rrLs
���$�$r'rc��]tRtRtRt]PRRl4t]PRRl4t]	RRl4t
]	R	R
/RRll4t]R
Rl4t
]R4t]RRl4t]RRl4t]R4t]RRl4t]RRl4t]RRl4tRtRtRt]RRl4tR tR!t]	R"4t]R#4t]R$4tR%tR&t R
#)'ri`a*
An abstract Python distribution package.

Custom providers may derive from this class and define
the abstract methods to provide a concrete implementation
for their environment. Some providers may opt to override
the default implementation of some properties to bypass
the file-reading mechanism.
c��V^8�dQhRR/#)rr �
Optional[str]r")r#s"r$r%�Distribution.__annotate__ls����]�r'c
��R#)a`Attempt to load metadata file given by the name.

Python distribution metadata is organized by blobs of text
typically represented as "files" in the metadata directory
(e.g. package-1.0.dist-info). These files include things
like:

- METADATA: The distribution metadata including fields
  like Name and Version and Description.
- entry_points.txt: A series of entry points as defined in
  `the entry points spec <https://packaging.python.org/en/latest/specifications/entry-points/#file-format>`_.
- RECORD: A record of files according to
  `this recording spec <https://packaging.python.org/en/latest/specifications/recording-installed-packages/#the-record-file>`_.

A package may provide any set of files, including those
not listed here or none at all.

:param filename: The name of the file in the distribution info.
:return: The text if found, otherwise None.
Nr"�r,�filenames&&r$r��Distribution.read_textk��r'c� �V^8�dQhRRRR/#�r�path�str | os.PathLike[str]r rr")r#s"r$r%r,�s���� 6��:�r'c
��R#)zI
Given a path to a file in this distribution, return a SimplePath
to it.
Nr"�r,r4s&&r$r�Distribution.locate_file�r1r'c� �V^8�dQhRRRR/#)rr*r!r rr")r#s"r$r%r,�s��-�-�S�-�\�-r'c
��V'g\R4h\\VPVR744# \d
\T4hi;i)avReturn the Distribution for the given package name.

:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
    package, if found.
:raises PackageNotFoundError: When the named package's distribution
    metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
z A distribution name is required.r))�
ValueErrorr�r��discoverr�r)rJr*s&&r$�	from_name�Distribution.from_name�sM����?�@�@�	-���S�\�\�t�\�4�5�6�6���	-�&�t�,�,�	-�s	�#9�A�contextNc� �V^8�dQhRRRR/#)rr?z$Optional[DistributionFinder.Context]r �Iterable[Distribution]r")r#s"r$r%r,�s��
�
�=�
�	�
r'c
��a�S'dV'd\R4hS;'g\P!R/VBo\PPV3RlVP
444#)a
Return an iterable of Distribution objects for all packages.

Pass a ``context`` or pass keyword arguments for constructing
a context.

:context: A ``DistributionFinder.Context`` object.
:return: Iterable of Distribution objects for packages matching
  the context.
z cannot accept context and kwargsc3�2<"�TFq!S4x�K	R#5ir1r")rC�resolverr?s& �r$rE�(Distribution.discover.<locals>.<genexpr>�s����-
�.G�(�H�W���.G�s�r")r;r�Context�	itertools�chain�
from_iterable�_discover_resolvers)rJr?r"s&d,r$r<�Distribution.discover�s_����v��?�@�@��A�A�/�7�7�A�&�A�����,�,�-
�.1�.E�.E�.G�-
�
�	
r'c� �V^8�dQhRRRR/#)rr4r5r rr")r#s"r$r%r,�s��4�4�'�4�L�4r'c
�@�\\P!V44#)z�Return a Distribution for the indicated metadata path.

:param path: a string or path-like object
:return: a concrete Distribution instance for the path
)�PathDistribution�pathlib�Path�r4s&r$�at�Distribution.at�s�� ����T� 2�3�3r'c
�H�R\P4p\RV4#)z9Search the meta_path for resolvers (MetadataPathFinders).c3�<"�TFp\VRR4x�K	R#5i)�find_distributionsNr�)rC�finders& r$rE�3Distribution._discover_resolvers.<locals>.<genexpr>�s ���
�FS�F�G�F�0�$�7�7�m�s�N)�sys�	meta_pathrQ)�declareds r$rJ� Distribution._discover_resolvers�s$��
�FI�m�m�
���d�H�%�%r'c��V^8�dQhRR/#)rr �_meta.PackageMetadatar")r#s"r$r%r,�s��B�B�/�Br'c
��^RIHpVPR4;'g+VPR4;'gVPR4p\\V4pVP\P!V44#)aFReturn the parsed metadata for this Distribution.

The returned object will have keys that name the various bits of
metadata per the
`Core metadata specifications <https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata>`_.

Custom providers may provide the METADATA file or override this
property.
)�	_adapters�METADATAzPKG-INFOry)ryr`r�rr!�Message�email�message_from_string)r,r`�opt_textrKs&   r$�metadata�Distribution.metadata�sr��	 �
�N�N�:�&�
"�
"��~�~�j�)�
"�
"�
�~�~�b�!�
	��C��"��� � ��!:�!:�4�!@�A�Ar'c��V^8�dQhRR/#rr")r#s"r$r%r,�s��%�%�c�%r'c
�(�VPR,#)z8Return the 'Name' metadata for the distribution package.�Name�rfr+s&r$r*�Distribution.name�s���}�}�V�$�$r'c
�@�\PVP4#)z(Return a normalized version of the name.)�Prepared�	normalizer*r+s&r$�_normalized_name�Distribution._normalized_name�s���!�!�$�)�)�,�,r'c��V^8�dQhRR/#rr")r#s"r$r%r,�s��(�(��(r'c
�(�VPR,#)z;Return the 'Version' metadata for the distribution package.�Versionrkr+s&r$�version�Distribution.version�s���}�}�Y�'�'r'c��V^8�dQhRR/#r�r")r#s"r$r%r,�s��T�T�k�Tr'c
�L�\PVPR4V4#)z�
Return EntryPoints for this distribution.

Custom providers may provide the ``entry_points.txt`` file
or override this property.
zentry_points.txt)r�r�r�r+s&r$�entry_points�Distribution.entry_points�s!���)�)�$�.�.�9K�*L�d�S�Sr'c��V^8�dQhRR/#)rr �Optional[List[PackagePath]]r")r#s"r$r%r,�s��(
�(
�2�(
r'c
��aa�RV3Rllo\V3Rl4p\R4pT!T!SP4;'g)SP4;'gSP444#)a�Files in this distribution.

:return: List of PackagePath for this distribution or None

Result is `None` if the metadata file that enumerates files
(i.e. RECORD for dist-info, or installed-files.txt or
SOURCES.txt for egg-info) is missing.
Result may be empty if the metadata exists but is empty.

Custom providers are recommended to provide a "RECORD" file (in
``read_text``) or override this property to allow for callers to be
able to resolve filenames provided by the package.
c�<�\V4pV'd\V4MRVnV'd\V4MRVnSVnV#r1)r�rr�r�r�ri)r*r��size_str�resultr,s&&& �r$�	make_file�%Distribution.files.<locals>.make_files7��� ��&�F�,0�(�4�.�d�F�K�+3�#�h�-��F�K��F�K��Mr'c�B<�^RIp\SVPV44#)rN)�csvr�reader)rWr�r�s& �r$�
make_files�&Distribution.files.<locals>.make_files	s���
��9�c�j�j��&7�8�8r'c�.�\\RV44#)c�>�VP4P4#r1)r��existsrQs&r$�<lambda>�@Distribution.files.<locals>.skip_missing_files.<locals>.<lambda>s��D�K�K�M�,@�,@�,Br')�listrQ)�
package_pathss&r$�skip_missing_files�.Distribution.files.<locals>.skip_missing_filess����B�M�R�S�Sr')NN)r�_read_files_distinfo�_read_files_egginfo_installed�_read_files_egginfo_sources)r,r�r�r�sf  @r$�files�Distribution.files�s���� 	�
�	9�
�	9�
�	T�
�	T�"���)�)�+�6�6��5�5�7�6�6��3�3�5�
�
�	
r'c
�X�VPR4pT;'dVP4#)z
Read the lines of RECORD.
�RECORD)r�rT�r,rKs& r$r��!Distribution._read_files_distinfos'���~�~�h�'���)�)����)�)r'c
��aa�SPR4p\SRR4oV'd	S'gR#VV3RlVP44p\RPV4#)a�
Read installed-files.txt and return lines in a similar
CSV-parsable format as RECORD: each file must be placed
relative to the site-packages directory and must also be
quoted (since file names can contain literal commas).

This file is written when the package is installed by pip,
but it might not be written for other installation methods.
Assume the file is accurate if it exists.
zinstalled-files.txt�_pathNc3��<"�TFXpSV,P4PSPR4P4RR7P4x�KZ	R#5i)ryT)�walk_upN)�resolve�relative_tor�as_posix)rCr*r,�subdirs& ��r$rE�=Distribution._read_files_egginfo_installed.<locals>.<genexpr>7sU����
�
*��	�d�]�
�W�Y�
�[��)�)�"�-�5�5�7��[�
F�
�X�Z�
�*�s�A A#�"{}")r�r�rTrRr#)r,rK�pathsr�sf  @r$r��*Distribution._read_files_egginfo_installed$sW����~�~�3�4����w��-���6��
�
���)�
���6�=�=�%�(�(r'c
��VPR4pT;'d%\RPVP44#)a�
Read SOURCES.txt and return lines in a similar CSV-parsable
format as RECORD: each file name must be quoted (since it
might contain literal commas).

Note that SOURCES.txt is not a reliable source for what
files are installed by a package. This file is generated
for a source archive, and the files that are present
there (e.g. setup.py) may not correctly reflect the files
that are present after the package has been installed.
zSOURCES.txtr�)r�rRr#rTr�s& r$r��(Distribution._read_files_egginfo_sources@s2���~�~�m�,���=�=��F�M�M�4�?�?�+<�=�=r'c��V^8�dQhRR/#)rr �Optional[List[str]]r")r#s"r$r%r,Ps��#�#�-�#r'c
�|�VP4;'gVP4pT;'d\V4#)z6Generated requirements specified for this Distribution)�_read_dist_info_reqs�_read_egg_info_reqsr�)r,�reqss& r$�requires�Distribution.requiresOs5���(�(�*�H�H�d�.F�.F�.H���"�"��T�
�"r'c	�8�VPPR4#)z
Requires-Dist)rf�get_allr+s&r$r��!Distribution._read_dist_info_reqsUs���}�}�$�$�_�5�5r'c	�Z�VPR4p\VP4!V4#)zrequires.txt)r�r�_deps_from_requires_text)r,�sources& r$r�� Distribution._read_egg_info_reqsXs&������/����6�6�7��?�?r'c	�J�VP\PV44#r1)�%_convert_egg_info_reqs_to_simple_reqsr=rH)rJr�s&&r$r��%Distribution._deps_from_requires_text\s���8�8�����9O�P�Pr'c#
�a"�RoV3RlpRpVFApV!VP4pVPV,V!VP4,x�KC	R#5i)a�
Historically, setuptools would solicit and store 'extra'
requirements, including those with environment markers,
in separate sections. More modern tools expect each
dependency to be defined separately, with any relevant
extras and environment markers attached directly to that
requirement. This method converts the former to the
latter. See _test_deps_from_requires_text for an example.
c�"�T;'dRVR2#)z
extra == "�"r"r)s&r$�make_condition�JDistribution._convert_egg_info_reqs_to_simple_reqs.<locals>.make_conditionls���0�0�j���a�0�0r'c	��<�T;'gRpVPR4wrpV'dV'dRVR2p\\RVS!V4.44pV'dRRPV4,#R#)ry�:r�r�Nz; z and )r
r�rQ�join)rD�extra�sep�markers�
conditionsr�s&    �r$�
quoted_marker�IDistribution._convert_egg_info_reqs_to_simple_reqs.<locals>.quoted_markerosk����m�m��G�")�"3�"3�C�"8��E�����g�Y�a�.���f�T�G�^�E�5J�+K�L�M�J�6@�4�'�,�,�z�2�2�H�b�Hr'c��RRV9,#)zi
PEP 508 requires a space between the url_spec and the quoted_marker.
Ref python/importlib_metadata#357.
� �@r")�reqs&r$�
url_req_space�IDistribution._convert_egg_info_reqs_to_simple_reqs.<locals>.url_req_spacews���#��*�%�%r'N)r@r*)�sectionsr�r�rD�spacer�s&    @r$r��2Distribution._convert_egg_info_reqs_to_simple_reqs`sM����	1�	I�	&� �G�!�'�-�-�0�E��-�-�%�'�-����*E�E�E� �s�AAc	�$�VPR4#)zdirect_url.json)�
_load_jsonr+s&r$�origin�Distribution.origin�s�����0�1�1r'c	�d�\\P4!VPV4RR7#)c�.�\P!R/VB#r�)�types�SimpleNamespace)�datas&r$r��)Distribution._load_json.<locals>.<lambda>�s��U�%:�%:�%B�T�%Br')�object_hook)r�json�loadsr�r.s&&r$r��Distribution._load_json�s'������$��N�N�8�$�B�
�	
r'r")!r5r6r7r8r9�abc�abstractmethodr�rrdr=r<rerRrJr:rfr*rpruryr�r�r�r�r�r�r�r�r�r�r�r;r"r'r$rr`s����	������,	�������-��-�"�
�@D�
��
�&�4��4��&��&��B��B�0�%��%��-��-��(��(��T��T��(
��(
�T*�)�8
>��#��#�
6�@��Q��Q�� F�� F�D�2��2�
r'c�h�]tRtRtRt!RR4t]P]!43RRll4tRt	R#)	ri�z�
A MetaPathFinder capable of discovering installed distributions.

Custom providers should implement this interface in order to
supply metadata.
c�<�]tRtRtRtRtRt]RRl4tRt	R#)�DistributionFinder.Contexti�a
Keyword arguments presented by the caller to
``distributions()`` or ``Distribution.discover()``
to narrow the scope of a search for distributions
in all DistributionFinders.

Each DistributionFinder may expect any parameters
and should attempt to honor the canonical
parameters defined below when appropriate.

This mechanism gives a custom provider a means to
solicit additional details from the caller beyond
"name" and "path" when searching distributions.
For example, imagine a provider that exposes suites
of packages in either a "public" or "private" ``realm``.
A caller may wish to query only for distributions in
a particular realm and could call
``distributions(realm="private")`` to signal to the
custom provider to only include distributions from that
realm.
Nc	�:�\V4PV4R#r1rp)r,r"s&,r$rs�#DistributionFinder.Context.__init__�s����J���f�%r'c��V^8�dQhRR/#r�r")r#s"r$r%�'DistributionFinder.Context.__annotate__�s��	4�	4�)�	4r'c
�T�\V4PR\P4#)z�
The sequence of directory path that a distribution finder
should search.

Typically refers to Python installed package paths such as
"site-packages" directories and defaults to ``sys.path``.
r4)rq�getrYr4r+s&r$r4�DistributionFinder.Context.path�s����:�>�>�&�#�(�(�3�3r'r")
r5r6r7r8r9r*rsr:r4r;r"r'r$rFr��s,��	�,��	�
	&�
�	4�
�	4r'rFc��V^8�dQhRR/#�rr rAr")r#s"r$r%�DistributionFinder.__annotate__�s����7M�r'c
��R#)z�
Find distributions.

Return an iterable of all Distribution instances capable of
loading the metadata for packages matching the ``context``,
a DistributionFinder.Context instance.
Nr")r,r?s&&r$rV�%DistributionFinder.find_distributions�r1r'r"N)
r5r6r7r8r9rFr�r�rVr;r"r'r$rr�s1���)4�)4�V	���)0����r'c�a�]tRtRtRt]P!4V3Rl4tRtRt	Rt
RtRt]
R	4t]R
4tRtV;t#)�FastPathi�aM
Micro-optimized class for searching a root for children.

Root is a path on the file system that may contain metadata
directories either as natural directories or within a zip file.

>>> FastPath('').children()
['...']

FastPath objects are cached and recycled for any given root.

>>> FastPath('foobar') is FastPath('foobar')
True
c	�"<�\SV`V4#r1)r r!)rJ�rootr�s&&�r$r!�FastPath.__new__�s����w��s�#�#r'c	��WnR#r1)r�)r,r�s&&r$rs�FastPath.__init__�s���	r'c	�D�\P!VPV4#r1)rOrPr�)r,�childs&&r$�joinpath�FastPath.joinpath�s���|�|�D�I�I�u�-�-r'c	�L�\\4;_uu_4\P!VP;'gR4uuRRR4# +'giM;i\\4;_uu_4TP4uuRRR4# +'gi.#;i)rzN)r
�	Exception�os�listdirr��zip_childrenr+s&r$�children�FastPath.children�s_��
�i�
 �
 ��:�:�d�i�i�.�.�3�/�!�
 �
 �
 ��
�i�
 �
 ��$�$�&�!�
 �
 �
 ��	�s�*A
�
A	�7B�B#	c	���\P!VP4pVPP4pVPVn\
P
RV44#)c3�n"�TF+qP\P^4^,x�K-	R#5i)�N)r}�	posixpathr�)rCr�s& r$rE�(FastPath.zip_children.<locals>.<genexpr>�s%���Q�5�%�[�[�����:�1�=�=�5�s�35)�zipfilerPr��namelistr��dict�fromkeys)r,�zip_pathr�s&  r$r��FastPath.zip_children�sH���<�<��	�	�*���
�
�&�&�(�� �)�)��
��}�}�Q�5�Q�Q�Qr'c	�V�VPVP4PV4#r1)�lookup�mtime�searchr3s&&r$r�FastPath.search�s ���{�{�4�:�:�&�-�-�d�3�3r'c	��\\4;_uu_4\P!VP4P
uuRRR4# +'giM;iTPP4R#r1)r
�OSErrorr��statr��st_mtimer�cache_clearr+s&r$r�FastPath.mtime�sB��
�g�
�
��7�7�4�9�9�%�.�.��
�
�
�������!s�*A
�
A	c	��\V4#r1)�Lookup)r,rs&&r$r�FastPath.lookup�s���d�|�r')r�r�)r5r6r7r8r9r~�	lru_cacher!rsr�rr�rr:rrrr;r'r(s@r$r�r��sg���
�����$��$��.��R�4��"��"�
���r'r�c�2�]tRtRtRtRRltRRltRtR#)	rizC
A micro-optimized class for searching a (fast) path for metadata.
c��V^8�dQhRR/#)rr4r�r")r#s"r$r%�Lookup.__annotate__s����X�r'c
���\PPVP4P	4pVPR4p\
\4Vn\
\4Vn	VP4EF(pVP	4pVPR4'dwVPR4^,PR4^,p\PV4pVPV,PVP!V44K�V'gK�VR8XgK�VPR4^,PR4^,p\P#V4pVPV,PVP!V44EK+	VPP%4VPP%4R#)z�
Calculate all of the children representing metadata.

From the children in the path, calculate early all of the
children that appear to represent metadata (infos) or legacy
metadata (eggs).
z.eggrz�-zegg-infoN�z
.dist-infoz	.egg-info)r�r4�basenamer��lowerrVrr��infos�eggsr�
rpartitionr
rnro�appendr��legacy_normalize�freeze)	r,r4�base�base_is_eggr��lowr*�
normalized�legacy_normalizeds	&&       r$rs�Lookup.__init__sL���w�w����	�	�*�0�0�2���m�m�F�+��)�$�/��
�(��.��	��]�]�_�E��+�+�-�C��|�|�7�8�8��~�~�c�*�1�-�7�7��<�Q�?��%�/�/��5�
��
�
�:�&�-�-�d�m�m�E�.B�C����
�!2����s�+�A�.�8�8��=�a�@��$,�$=�$=�d�$C�!��	�	�+�,�3�3�D�M�M�%�4H�I�%�	
�
�
�����	�	���r'c��V^8�dQhRR/#)r�preparedrnr")r#s"r$r%r$s��,�,�x�,r'c
��V'dVPVP,M6\PP	VPP44pV'dVPVP,M6\PP	VPP44p\P!W#4#)z7
Yield all infos and eggs matching the Prepared query.
)r$r-rGrHrIr�r%r.)r,r1r$r%s&&  r$r�
Lookup.search$s����
�J�J�x�*�*�+����.�.�t�z�z�/@�/@�/B�C�	��
�I�I�h�0�0�1����.�.�t�y�y�/?�/?�/A�B�	
�
���u�+�+r')r%r$N)r5r6r7r8r9rsrr;r"r'r$rrs����:,�,r'rc�T�]tRtRtRtRtRtRRlt]R4t	]R4t
RtR	tR#)
rni5a�
A prepared search query for metadata on a possibly-named package.

Pre-calculates the normalization to prevent repeated operations.

>>> none = Prepared(None)
>>> none.normalized
>>> none.legacy_normalized
>>> bool(none)
False
>>> sample = Prepared('Sample__Pkg-name.foo')
>>> sample.normalized
'sample_pkg_name_foo'
>>> sample.legacy_normalized
'sample__pkg_name.foo'
>>> bool(sample)
True
Nc��V^8�dQhRR/#)rr*r+r")r#s"r$r%�Prepared.__annotate__Ls��=�=�]�=r'c	�v�WnVfR#VPV4VnVPV4VnR#r1)r*ror-r(r.r3s&&r$rs�Prepared.__init__Ls2���	��<���.�.��.���!%�!6�!6�t�!<��r'c
�n�\P!RRV4P4PRR4#)z3
PEP 503 normalization plus dashes as underscores.
z[-_.]+r r)r��subr#�replacer)s&r$ro�Prepared.normalizeSs-��
�v�v�i��d�+�1�1�3�;�;�C��E�Er'c
�B�VP4PRR4#)zd
Normalize the package name as found in the convention in
older packaging tools versions and specs.
r r)r#r;r)s&r$r(�Prepared.legacy_normalizeZs���z�z�|�#�#�C��-�-r'c	�,�\VP4#r1)�boolr*r+s&r$�__bool__�Prepared.__bool__bs���D�I�I��r')r.r*r-)
r5r6r7r8r9r-r.rsreror(rAr;r"r'r$rnrn5sH���&�J���=��F��F��.��.�r'rnc�t�]tRtRt]]P
43RRll4t]R4t]RRl4t	Rt
R#)	�MetadataPathFinderifc��V^8�dQhRR/#)rr zIterable[PathDistribution]r")r#s"r$r%�MetadataPathFinder.__annotate__hs��,�,�	#�,r'c
�n�VPVPVP4p\\V4#)z�
Find distributions.

Return an iterable of all Distribution instances capable of
loading the metadata for packages matching ``context.name``
(or all names if ``None`` indicated) along the paths in the list
of directories ``context.path``.
)�
_search_pathsr*r4rRrN)rJr?�founds&& r$rV�%MetadataPathFinder.find_distributionsgs,���!�!�'�,�,����=���#�U�+�+r'c
�a�\V4o\PPV3Rl\	\
V444#)z1Find metadata directories in paths heuristically.c3�D<"�TFqPS4x�K	R#5ir1)r)rCr4r1s& �r$rE�3MetadataPathFinder._search_paths.<locals>.<genexpr>zs����-
�.B�d�K�K��!�!�.B�r�)rnrGrHrIrRr�)rJr*r�r1s&&&@r$rH� MetadataPathFinder._search_pathsvs9����D�>�����,�,�-
�.1�(�E�.B�-
�
�	
r'c��V^8�dQhRR/#)rr rkr")r#s"r$r%rFs��'�'�$�'r'c	�B�\PP4R#r1)r�r!r)rJs&r$�invalidate_caches�$MetadataPathFinder.invalidate_caches~s�����$�$�&r'r"N)r5r6r7r8rdrrFrVrHrQr;r"r'r$rDrDfsH���'�/�/�1�,��,��
��
��'��'r'rDc�a�]tRtRtRRltRRlt]P
P]nRRlt]	V3Rl4t
]R	4tR
t
V;t#)rNi�c� �V^8�dQhRRRR/#)rr4rr rkr")r#s"r$r%�PathDistribution.__annotate__�s����Z��D�r'c
��WnR#)zVConstruct a distribution.

:param path: SimplePath indicating the metadata directory.
N�r�r7s&&r$rs�PathDistribution.__init__�s	��
�
r'c� �V^8�dQhRRRR/#)rr/r5r r+r")r#s"r$r%rU�s��
�
�"8�
�]�
r'c	���\\\\\\
4;_uu_4VPPV4PRR7uuRRR4# +'giR#;i)rr�N)	r
�FileNotFoundError�IsADirectoryErrorr��NotADirectoryError�PermissionErrorr�r�r�r.s&&r$r��PathDistribution.read_text�sZ��
������
�
��:�:�&�&�x�0�:�:�G�:�L�
�
�
�
��s�+A"�"A3	c� �V^8�dQhRRRR/#r3r")r#s"r$r%rU�s��(�(� 6�(�:�(r'c	�<�VPPV,#r1)r��parentr7s&&r$r�PathDistribution.locate_file�s���z�z� � �4�'�'r'c
��<�\PP\VP44p\\P4!VPV44;'g\SV`(#)zb
Performance optimization: where possible, resolve the
normalized name from the file system path.
)r�r4r"r!r�rrnro�_name_from_stemr rp)r,�stemr�s& �r$rp�!PathDistribution._normalized_name�sV����w�w����D�J�J��0���h�(�(�)�$�*>�*>�t�*D�E�
(�
(��w�'�	
r'c
��\PPV4wrVR9dR#VPR4wr4pV#)z�
>>> PathDistribution._name_from_stem('foo-3.0.egg-info')
'foo'
>>> PathDistribution._name_from_stem('CherryPy-3.0.dist-info')
'CherryPy'
>>> PathDistribution._name_from_stem('face.egg-info')
'face'
>>> PathDistribution._name_from_stem('foo.bar')
Nr r!)r�r4�splitextr
)rfr/�extr*r��rests&     r$re� PathDistribution._name_from_stem�s?�����(�(��.�
���1�1��"�,�,�S�1���4��r'rW)r5r6r7r8rsr�rr9rr:rprerer;r'r(s@r$rNrN�sP����
�%�.�.�6�6�I��(��	
��	
����r'rNc� �V^8�dQhRRRR/#)r�distribution_namer!r rr")r#s"r$r%r%�s��5�5�C�5�L�5r'c�,�\PV4#)z�Get the ``Distribution`` instance for the named package.

:param distribution_name: The name of the distribution package as a string.
:return: A ``Distribution`` instance (or subclass thereof).
)rr=�rns&r$�distributionrq�s���!�!�"3�4�4r'c��V^8�dQhRR/#r�r")r#s"r$r%r%�s��+�+�5�+r'c�.�\P!R/VB#)ztGet all ``Distribution`` instances in the current environment.

:return: An iterable of ``Distribution`` instances.
r")rr<)r"s,r$�
distributionsrt�s��
� � �*�6�*�*r'c� �V^8�dQhRRRR/#)rrnr!r r^r")r#s"r$r%r%�s��>�>��>�(=�>r'c�@�\PV4P#)z�Get the metadata for the named package.

:param distribution_name: The name of the distribution package to query.
:return: A PackageMetadata containing the parsed metadata.
)rr=rfrps&r$rfrf�s���!�!�"3�4�=�=�=r'c� �V^8�dQhRRRR/#)rrnr!r r")r#s"r$r%r%�s��3�3�s�3�s�3r'c�,�\V4P#)z�Get the version string for the named package.

:param distribution_name: The name of the distribution package to query.
:return: The version string for the package as defined in the package's
    "Version" metadata key.
)rqrurps&r$ruru�s���)�*�2�2�2r'rp)�keyc��V^8�dQhRR/#r�r")r#s"r$r%r%�s��-�-�k�-r'c��\PPR\\	4444p\V4P!R/VB#)z�Return EntryPoint objects for all installed packages.

Pass selection parameters (group or name) to filter the
result to entry points matching those properties (see
EntryPoints.select()).

:return: EntryPoints for all installed packages.
c3�8"�TFqPx�K	R#5ir1)ry)rCris& r$rE�entry_points.<locals>.<genexpr>�s���(�&>�d���&>�s�r")rGrHrI�_uniquertr�r�)r��epss, r$ryry�sG���/�/�
'�
'�(�&-�m�o�&>�(��C��s��"�"�,�V�,�,r'c� �V^8�dQhRRRR/#)rrnr!r r|r")r#s"r$r%r%�s��1�1�S�1�%@�1r'c�,�\V4P#)z�Return a list of files for the named package.

:param distribution_name: The name of the distribution package to query.
:return: List of files composing the distribution.
)rqr�rps&r$r�r��s���)�*�0�0�0r'c� �V^8�dQhRRRR/#)rrnr!r r�r")r#s"r$r%r%�s��4�4��4�(;�4r'c�,�\V4P#)z�
Return a list of requirements for the named package.

:return: An iterable of requirements, suitable for
    packaging.requirement.Requirement.
)rqr�rps&r$r�r��s���)�*�3�3�3r'c��V^8�dQhRR/#)rr zMapping[str, List[str]]r")r#s"r$r%r%	s���� 7�r'c��\P!\4p\4FPp\	V4;'g\V4F+pW,P
VPR,4K-	KR	\V4#)z�
Return a mapping of top-level packages to their
distributions.

>>> import collections.abc
>>> pkgs = packages_distributions()
>>> all(isinstance(dist, collections.abc.Sequence) for dist in pkgs.values())
True
rj)	�collections�defaultdictr�rt�_top_level_declared�_top_level_inferredr'rfr	)�pkg_to_distri�pkgs   r$�packages_distributionsr�	sh���)�)�$�/�K����&�t�,�I�I�0C�D�0I�I�C���#�#�D�M�M�&�$9�:�J� ����r'c�T�VPR4;'gRP4#)z
top_level.txtry)r�r}r�s&r$r�r�s"���N�N�?�+�1�1�r�8�8�:�:r'c� �V^8�dQhRRRR/#)rr*r�r r+r")r#s"r$r%r%s��!�!�;�!�=�!r'c�4�VPvrV'dV#R#)z:
Return the top-most parent as long as there is a parent.
N)�parts)r*�toprks&  r$�_topmostr�s�����J�C��3� �D� r'c� �V^8�dQhRRRR/#)rr*r�r r!r")r#s"r$r%r%&s����[��S�r'c�z�\V4;'g*\P!V4;'g\V4#)a�
Infer a possibly importable module name from a name presumed on
sys.path.

>>> _get_toplevel_name(PackagePath('foo.py'))
'foo'
>>> _get_toplevel_name(PackagePath('foo'))
'foo'
>>> _get_toplevel_name(PackagePath('foo.pyc'))
'foo'
>>> _get_toplevel_name(PackagePath('foo/__init__.py'))
'foo'
>>> _get_toplevel_name(PackagePath('foo.pth'))
'foo.pth'
>>> _get_toplevel_name(PackagePath('foo.dist-info'))
'foo.dist-info'
)r�r�
getmodulenamer!r)s&r$�_get_toplevel_namer�&s9��$�D�>������d�#�	�	��t�9�r'c�v�\\\\VP444pRp\W!4#)c��RV9#)rzr"r)s&r$�importable_name�,_top_level_inferred.<locals>.importable_nameBs���$��r')�setrRr�r	r�rQ)ri�	opt_namesr�s&  r$r�r�?s/���C�*�O�D�J�J�,G�H�I�I���/�-�-r')rrrrrqrtryr�rfr�r�ru)Q�
__future__rr�r�r�rYr�rcr�rrOrr�r`rr~rGrr�ryr�_collectionsrr�
_functoolsrr�
_itertoolsr	r
rr�
contextlibr
�	importlibr�
importlib.abcrr�typingrrrrrrrr�__all__�ModuleNotFoundErrorrr=rgr�r��
PurePosixPathr�rrrrr�rrnrDrNrqrtrfru�partial�
attrgetterr~ryr�r�r�r�r�r�r�r"r'r$�<module>r�s}��"�	�	�
�
���������������4�/�8�.��#�(��K�K�K�
�� 	�.�	�>1�>1�By!�y!�x5
�%�5
�p+�'�'�'�+�$C�C�$�$�(k
�(�k
�\	;��;�|3�3�l0,�0,�f.�.�b'�+�'�:4�|�4�n5�+�>�3��
�
�����.�/����
-�1�4��";�!��2.r'

Youez - 2016 - github.com/yon3zu
LinuXploit