403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.7/site-packages/pip/_internal/metadata/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.7/site-packages/pip/_internal/metadata/__pycache__/base.cpython-37.pyc
B

�N�a_+�@sRddlZddlZddlZddlZddlZddlmZmZm	Z	m
Z
mZmZm
Z
mZmZddlmZddlmZmZddlmZddlmZmZddlmZmZmZddlmZdd	l m!Z!dd
l"m#Z#er�ddlm$Z$ne%Z$eeefZ&e�'e(�Z)Gdd
�d
e$�Z*Gdd�de$�Z+Gdd�d�Z,Gdd�de$�Z-Gdd�de-�Z.Gdd�de-�Z/dS)�N)	�IO�
TYPE_CHECKING�
Collection�	Container�Iterable�Iterator�List�Optional�Union)�Requirement)�InvalidSpecifier�SpecifierSet)�NormalizedName)�
LegacyVersion�Version)�DIRECT_URL_METADATA_NAME�	DirectUrl�DirectUrlValidationError)�stdlib_pkgs)�egg_link_path_from_sys_path)�url_to_path)�Protocolc@sBeZdZeed�dd��Zeed�dd��Zeed�dd��ZdS)	�BaseEntryPoint)�returncCs
t��dS)N)�NotImplementedError)�self�r�?/usr/lib/python3.7/site-packages/pip/_internal/metadata/base.py�name+szBaseEntryPoint.namecCs
t��dS)N)r)rrrr�value/szBaseEntryPoint.valuecCs
t��dS)N)r)rrrr�group3szBaseEntryPoint.groupN)�__name__�
__module__�__qualname__�property�strrrr rrrrr*src@s�eZdZed�dd�Zed�dd�Zeeed�dd��Zeeed�dd	��Z	eeed�d
d��Z
eed�dd
��Zee
d�dd��Zeeed�dd��Zeed�dd��Zeed�dd��Zeed�dd��Zeed�dd��Zeed�dd��Zeed�dd�Zeed�dd �Zeejjd�d!d"��Zeeed�d#d$��Zeed�d%d&��Z ee!d�d'd(��Z"d0e#eee$d*�d+d,�Z%eed�d-d.�Z&d/S)1�BaseDistribution)rcCs|j�d|j�d|j�d�S)N� z (�))�raw_name�version�location)rrrr�__repr__9szBaseDistribution.__repr__cCs|j�d|j��S)Nr')r)r*)rrrr�__str__<szBaseDistribution.__str__cCs
t��dS)a�Where the distribution is loaded from.

        A string value is not necessarily a filesystem path, since distributions
        can be loaded from other sources, e.g. arbitrary zip archives. ``None``
        means the distribution is created in-memory.

        Do not canonicalize this value with e.g. ``pathlib.Path.resolve()``. If
        this is a symbolic link, we want to preserve the relative path between
        it and files in the distribution.
        N)r)rrrrr+?szBaseDistribution.locationcCs6|j}|r|��r2t|j�Snt|j�}|r2|jSdS)z�The project location for editable distributions.

        This is the directory where pyproject.toml or setup.py is located.
        None if the distribution is not installed in editable mode.
        N)�
direct_urlZis_local_editablerZurlrr)r+)rr.Z
egg_link_pathrrr�editable_project_locationMs
z*BaseDistribution.editable_project_locationcCs
t��dS)a'Location of the .[egg|dist]-info directory.

        Similarly to ``location``, a string value is not necessarily a
        filesystem path. ``None`` means the distribution is created in-memory.

        For a modern .dist-info installation on disk, this should be something
        like ``{location}/{raw_name}-{version}.dist-info``.

        Do not canonicalize this value with e.g. ``pathlib.Path.resolve()``. If
        this is a symbolic link, we want to preserve the relative path between
        it and other files in the distribution.
        N)r)rrrr�info_directorycszBaseDistribution.info_directorycCs
t��dS)N)r)rrrr�canonical_namesszBaseDistribution.canonical_namecCs
t��dS)N)r)rrrrr*wszBaseDistribution.versionc
Cspy|�t�}Wntk
r"dSXy
t�|�Sttjtfk
rj}zt	�
dt|j|�dSd}~XYnXdS)z�Obtain a DirectUrl from this distribution.

        Returns None if the distribution has no `direct_url.json` metadata,
        or if `direct_url.json` is invalid.
        NzError parsing %s for %s: %s)�	read_textr�FileNotFoundErrorrZ	from_json�UnicodeDecodeError�jsonZJSONDecodeErrorr�logger�warningr1)rZcontent�errrr.{s 
zBaseDistribution.direct_urlcCs
t��dS)N)r)rrrr�	installer�szBaseDistribution.installercCs
t|j�S)N)�boolr/)rrrr�editable�szBaseDistribution.editablecCs
t��dS)N)r)rrrr�local�szBaseDistribution.localcCs
t��dS)N)r)rrrr�in_usersite�szBaseDistribution.in_usersitecCs
t��dS)N)r)rrrr�in_site_packages�sz!BaseDistribution.in_site_packages)rrcCs
t��dS)z�Read a file in the .dist-info (or .egg-info) directory.

        Should raise ``FileNotFoundError`` if ``name`` does not exist in the
        metadata directory.
        N)r)rrrrrr2�szBaseDistribution.read_textcCs
t��dS)N)r)rrrr�iter_entry_points�sz"BaseDistribution.iter_entry_pointscCs
t��dS)z?Metadata of distribution parsed from e.g. METADATA or PKG-INFO.N)r)rrrr�metadata�szBaseDistribution.metadatacCs|j�d�S)zDValue of "Metadata-Version:" in distribution metadata, if available.zMetadata-Version)r@�get)rrrr�metadata_version�sz!BaseDistribution.metadata_versioncCs|j�d|j�S)z*Value of "Name:" in distribution metadata.�Name)r@rAr1)rrrrr)�szBaseDistribution.raw_namec
Csh|j�d�}|dkrt�Sytt|��}Wn8tk
rb}zd}t�||j|�t�Sd}~XYnX|S)z�Value of "Requires-Python:" in distribution metadata.

        If the key does not exist or contains an invalid value, an empty
        SpecifierSet should be returned.
        zRequires-PythonNz-Package %r has an invalid Requires-Python: %s)r@rAr
r%rr6r7r))rr�specr8�messagerrr�requires_python�sz BaseDistribution.requires_pythonr)�extrasrcCs
t��dS)z�Dependencies of this distribution.

        For modern .dist-info distributions, this is the collection of
        "Requires-Dist:" entries in distribution metadata.
        N)r)rrGrrr�iter_dependencies�sz"BaseDistribution.iter_dependenciescCs
t��dS)z�Extras provided by this distribution.

        For modern .dist-info distributions, this is the collection of
        "Provides-Extra:" entries in distribution metadata.
        N)r)rrrr�iter_provided_extras�sz%BaseDistribution.iter_provided_extrasN)r)'r!r"r#r%r,r-r$r	r+r/r0rr1�DistributionVersionr*rr.r9r:r;r<r=r>r2rrr?�emailrEZMessager@rBr)r
rFrrrHrIrrrrr&8sH
r&c@s�eZdZdZedd�dd��Zeeeedd�dd��Z	eedd	�d
d�Z
edd�dd
�Zedd�dd�Z
dedddfeeeeeeeed�dd�ZdS)�BaseEnvironmentz6An environment containing distributions to introspect.)rcCs
t��dS)N)r)�clsrrr�default�szBaseEnvironment.default)�pathsrcCs
t��dS)N)r)rMrOrrr�
from_paths�szBaseEnvironment.from_pathsr&)rrcCs
t��dS)z=Given a requirement name, return the installed distributions.N)r)rrrrr�get_distribution�sz BaseEnvironment.get_distributioncCs
t��dS)aIterate through installed distributions.

        This function should be implemented by subclass, but never called
        directly. Use the public ``iter_distribution()`` instead, which
        implements additional logic to make sure the distributions are valid.
        N)r)rrrr�_iter_distributions�sz#BaseEnvironment._iter_distributionsccsHxB|��D]6}tjd|jtjd�}|s:t�d|j|j�q
|Vq
WdS)z(Iterate through installed distributions.z)^([A-Z0-9]|[A-Z0-9][A-Z0-9._-]*[A-Z0-9])$)�flagsz%Ignoring invalid distribution %s (%s)N)rR�re�matchr1�
IGNORECASEr6r7r+)rZdistZproject_name_validrrr�iter_distributionss
z"BaseEnvironment.iter_distributionsTF)�
local_only�skip�include_editables�editables_only�	user_onlyrcsb|��}|rdd�|D�}|s,dd�|D�}|r>dd�|D�}|rPdd�|D�}�fdd�|D�S)aReturn a list of installed distributions.

        :param local_only: If True (default), only return installations
        local to the current virtualenv, if in a virtualenv.
        :param skip: An iterable of canonicalized project names to ignore;
            defaults to ``stdlib_pkgs``.
        :param include_editables: If False, don't report editables.
        :param editables_only: If True, only report editables.
        :param user_only: If True, only report installations in the user
        site directory.
        css|]}|jr|VqdS)N)r<)�.0�drrr�	<genexpr>+sz?BaseEnvironment.iter_installed_distributions.<locals>.<genexpr>css|]}|js|VqdS)N)r;)r]r^rrrr_-scss|]}|jr|VqdS)N)r;)r]r^rrrr_/scss|]}|jr|VqdS)N)r=)r]r^rrrr_1sc3s|]}|j�kr|VqdS)N)r1)r]r^)rYrrr_2s)rW)rrXrYrZr[r\�itr)rYr�iter_installed_distributionssz,BaseEnvironment.iter_installed_distributionsN)r!r"r#�__doc__�classmethodrNr	rr%rPrQrrRrWrr:rr&rarrrrrL�s	rLc@s&eZdZUeed<ejd�dd�ZdS)�Wheelr+)rcCs
t��dS)N)r)rrrr�
as_zipfile8szWheel.as_zipfileN)r!r"r#r%�__annotations__�zipfile�ZipFilererrrrrd5s
rdc@s,eZdZedd�dd�Zejd�dd�ZdS)�FilesystemWheelN)r+rcCs
||_dS)N)r+)rr+rrr�__init__=szFilesystemWheel.__init__)rcCstj|jdd�S)NT)�
allowZip64)rgrhr+)rrrrre@szFilesystemWheel.as_zipfile)r!r"r#r%rjrgrhrerrrrri<sric@s2eZdZeeedd�dd�Zejd�dd�Z	dS)�MemoryWheelN)r+�streamrcCs||_||_dS)N)r+rm)rr+rmrrrrjEszMemoryWheel.__init__)rcCstj|jdd�S)NT)rk)rgrhrm)rrrrreIszMemoryWheel.as_zipfile)
r!r"r#r%r�bytesrjrgrhrerrrrrlDsrl)0Z
email.messagerKr5ZloggingrTrg�typingrrrrrrrr	r
Z"pip._vendor.packaging.requirementsrZ pip._vendor.packaging.specifiersrr
Zpip._vendor.packaging.utilsrZpip._vendor.packaging.versionrrZpip._internal.models.direct_urlrrrZpip._internal.utils.compatrZpip._internal.utils.egg_linkrZpip._internal.utils.urlsrr�objectrJZ	getLoggerr!r6rr&rLrdrirlrrrr�<module>s2,
2L

Youez - 2016 - github.com/yon3zu
LinuXploit