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__/inspect.cpython-39.pyc
a

W��et�@s�ddlZddlmZddlmZmZmZddlmZddl	m
Z
ddlmZddl
mZddlmZdd	lmZdd
lmZmZddlmZddlmZe�e�ZGd
d�de�ZdS)�N)�Values)�Any�Dict�List)�default_environment)�
print_json)�__version__)�
cmdoptions)�Command)�SUCCESS)�BaseDistribution�get_environment)�stdlib_pkgs)�path_to_urlc@sTeZdZdZdZdZdd�dd�Zeee	e
d�d	d
�Zee
e	efd�dd
�ZdS)�InspectCommandzZ
    Inspect the content of a Python environment and produce a report in JSON format.
    Tz
      %prog [options]N)�returncCsN|jjddddd�|jjdddddd	�|j�t���|j�d
|j�dS)Nz--local�
store_trueFzSIf in a virtualenv that has global access, do not list globally-installed packages.)�action�default�helpz--user�userz,Only output packages installed in user-site.)�destrrrr)Zcmd_optsZ
add_optionr	Z	list_path�parserZinsert_option_group��self�r�B/usr/lib/python3.9/site-packages/pip/_internal/commands/inspect.py�add_optionss�	�zInspectCommand.add_options)�options�argsrcsTt�|�t|j�j|j|jtt�d�}dt	�fdd�|D�t
�d�}t|d�tS)N)Z
local_onlyZ	user_only�skip�1csg|]}��|��qSr)�
_dist_to_dict)�.0�distrrr�
<listcomp>:�z&InspectCommand.run.<locals>.<listcomp>)�versionZpip_versionZ	installedZenvironment)�data)
r	Zcheck_list_path_optionr
�pathZiter_installed_distributions�localr�setrrrrr)rrrZdists�outputrrr�run0s

��
zInspectCommand.run)r$rcCsv|j|jd�}|j}|dur*|��|d<n$|j}|durNt|�ddid�|d<|j}|jrb||d<|jrr|j|d<|S)N)�metadataZmetadata_location�
direct_urlZeditableT)�urlZdir_info�	installer�	requested)	Z
metadata_dictZ
info_locationr/Zto_dict�editable_project_locationrr1Zinstalled_with_dist_infor2)rr$�resr/r3r1rrrr"As$���

zInspectCommand._dist_to_dict)�__name__�
__module__�__qualname__�__doc__Zignore_require_venv�usagerrr�str�intr-rrrr"rrrrrsr)ZloggingZoptparser�typingrrrZpip._vendor.packaging.markersrZpip._vendor.richrZpiprZpip._internal.clir	Zpip._internal.cli.req_commandr
Zpip._internal.cli.status_codesrZpip._internal.metadatarr
Zpip._internal.utils.compatrZpip._internal.utils.urlsrZ	getLoggerr5�loggerrrrrr�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit