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.9/site-packages/pip/_internal/commands/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/pip/_internal/commands/__pycache__/show.cpython-39.pyc
a

W��e�@s�ddlZddlmZddlmZmZmZmZmZm	Z	ddl
mZddlm
Z
ddlmZmZddlmZmZddlmZe�e�ZGd	d
�d
e
�ZGdd�de�Zeeeeddfd
�dd�Zeeeeed�dd�ZdS)�N)�Values)�	Generator�Iterable�Iterator�List�
NamedTuple�Optional��canonicalize_name)�Command)�ERROR�SUCCESS)�BaseDistribution�get_default_environment)�write_outputc@s<eZdZdZdZdZdd�dd�Zeee	e
d�d	d
�ZdS)�ShowCommandzx
    Show information about one or more installed packages.

    The output is in RFC-compliant mail header format.
    z$
      %prog [options] <package> ...TN)�returncCs,|jjddddddd�|j�d|j�dS)	Nz-fz--files�files�
store_trueFz7Show the full list of installed files for each package.)�dest�action�default�helpr)Zcmd_optsZ
add_option�parserZinsert_option_group)�self�r�?/usr/lib/python3.9/site-packages/pip/_internal/commands/show.py�add_optionss�	zShowCommand.add_options)�options�argsrcCs8|st�d�tS|}t|�}t||j|jd�s4tStS)Nz.ERROR: Please provide a package name or names.)�
list_files�verbose)�logger�warningr�search_packages_info�
print_resultsrr!r
)rrr�query�resultsrrr�run&s

�zShowCommand.run)�__name__�
__module__�__qualname__�__doc__�usageZignore_require_venvrrr�str�intr(rrrrrs
rc@s�eZdZUeed<eed<eed<eeed<eeed<eeed<eed<eed<eeed	<eed
<eed<eeed<eed
<eed<eed<eeed<eeeed<dS)�_PackageInfo�name�version�location�editable_project_location�requires�required_by�	installer�metadata_version�classifiers�summary�homepage�project_urls�author�author_email�license�entry_pointsrN)r)r*r+r.�__annotations__rrrrrrr04s"
r0)r&rc#s�t�}dd�|��D��dd�|D�}t�fdd�t||�D��}|rXt�dd�|��ttt	d��fd	d
�}|D�].}z�|}Wnt
y�YqtYn0tdd�|��D�t	jd
�}t||�t	jd
�}z|�
d�}	|	jdd�}
Wnty�g}
Yn0|��}|du�rd}nt|�}|j}
t|jt	|j�|j�p<d|j|||j|j�pRd|
�dg�|
�dd�|
�dd�|
�dg�|
�dd�|
�dd�|
�dd�|
|d�VqtdS)z�
    Gather details from installed distributions. Print distribution name,
    version, location, and installed files. Installed files requires a
    pip generated 'installed-files.txt' in the distributions '.egg-info'
    directory.
    cSsi|]}|j|�qSr)�canonical_name��.0�distrrr�
<dictcomp>Q�z(search_packages_info.<locals>.<dictcomp>cSsg|]}t|��qSrr	)rDr1rrr�
<listcomp>RrGz(search_packages_info.<locals>.<listcomp>csg|]\}}|�vr|�qSrr)rDr1Zpkg�Z	installedrrrHTrGzPackage(s) not found: %s�, )�current_distrcs�fdd����D�S)Nc3s4|],}�jdd�|��D�vr|jdp*dVqdS)cSsh|]}t|j��qSr)r
r1)rD�drrr�	<setcomp>^rGzRsearch_packages_info.<locals>._get_requiring_packages.<locals>.<genexpr>.<setcomp>�NameZUNKNOWNN)rB�iter_dependencies�metadatarC�rKrr�	<genexpr>Zs
��zHsearch_packages_info.<locals>._get_requiring_packages.<locals>.<genexpr>)�valuesrQrIrQr�_get_requiring_packagesYs
�z5search_packages_info.<locals>._get_requiring_packagescss|]}|jVqdS)N)r1)rDZreqrrrrRgrGz'search_packages_info.<locals>.<genexpr>)�keyzentry_points.txtF)�keependsN�Z
ClassifierZSummaryz	Home-pagezProject-URLZAuthorzAuthor-emailZLicense)r1r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@r)rZiter_all_distributions�sorted�zipr"r#�joinrrr.�KeyErrorrO�lower�	read_text�
splitlines�FileNotFoundErrorZiter_declared_entriesrPr0Zraw_namer2r3r4r7r8Zget_all�get)r&�envZquery_names�missingrTZ
query_namerEr5r6Zentry_points_textr@Z
files_iterrrPrrIrr$HsZ�













�r$)�
distributionsr r!rc
Cs�d}t|�D�]t\}}d}|dkr*td�td|j�td|j�td|j�td|j�td	|j�td
|j�td|j�td|j	�|j
d
ur�td|j
�tdd�|j��tdd�|j
��|�rDtd|j�td|j�td�|jD]}td|�q�td�|jD]}td|����qtd�|jD]}td|��q2|rtd�|jd
u�rftd�q|jD]}	td|	����qlq|S)zC
    Print the information from installed distributions found.
    FTrz---zName: %szVersion: %szSummary: %sz
Home-page: %sz
Author: %szAuthor-email: %szLicense: %szLocation: %sNzEditable project location: %szRequires: %srJzRequired-by: %szMetadata-Version: %sz
Installer: %szClassifiers:z  %sz
Entry-points:z
Project-URLs:zFiles:z+Cannot locate RECORD or installed-files.txt)�	enumeraterr1r2r:r;r=r>r?r3r4rZr5r6r8r7r9r@�stripr<r)
rcr r!Zresults_printed�irEZ
classifier�entryZproject_url�linerrrr%�sL
�




r%)ZloggingZoptparser�typingrrrrrrZpip._vendor.packaging.utilsr
Zpip._internal.cli.base_commandrZpip._internal.cli.status_codesrr
Zpip._internal.metadatarrZpip._internal.utils.miscrZ	getLoggerr)r"rr0r.r$�boolr%rrrr�<module>s  
%F�

Youez - 2016 - github.com/yon3zu
LinuXploit