⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.31
Server IP:
95.217.99.93
Server:
Linux sv1.sonichosted.com 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python2.7
/
site-packages
/
pip
/
_vendor
/
distlib
/
Edit File: index.pyo
abc @ s d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z y d d l m Z Wn! e k r d d l m Z n Xd d l m Z d d l m Z m Z m Z m Z m Z m Z d d l m Z m Z m Z e j e Z d Z d Z d e f d YZ d S( iN( t Threadi ( t DistlibException( t HTTPBasicAuthHandlert Requestt HTTPPasswordMgrt urlparset build_openert string_types( t cached_propertyt zip_dirt ServerProxys https://pypi.python.org/pypit pypit PackageIndexc B s e Z d Z d Z d d Z d Z d Z d Z d Z d Z d Z d d Z d d Z d d Z d d d d d d Z d Z d d Z d d Z d d d Z d Z d Z d d Z RS( sc This class represents a package index compatible with PyPI, the Python Package Index. s. ----------ThIs_Is_tHe_distlib_index_bouNdaRY_$c C s | p t | _ | j t | j \ } } } } } } | sX | sX | sX | d k rn t d | j n d | _ d | _ d | _ d | _ d | _ t t j d j } x` d D]X } y> t j | d g d | d | } | d k r | | _ Pn Wq t k rq Xq WWd QXd S( s Initialise an instance. :param url: The URL of the index. If not specified, the URL for PyPI is used. t httpt httpss invalid repository: %st wt gpgt gpg2s --versiont stdoutt stderri N( R R ( R R ( t DEFAULT_INDEXt urlt read_configurationR R t Nonet password_handlert ssl_verifierR t gpg_homet rpc_proxyt opent ost devnullt subprocesst check_callt OSError( t selfR t schemet netloct patht paramst queryt fragt sinkt st rc( ( s= /usr/lib/python2.7/site-packages/pip/_vendor/distlib/index.pyt __init__$ s( ! c C s3 d d l m } d d l m } | } | | S( ss Get the distutils command for interacting with PyPI configurations. :return: the command. i( t Distribution( t PyPIRCCommand( t distutils.coreR- t distutils.configR. ( R" R- R. t d( ( s= /usr/lib/python2.7/site-packages/pip/_vendor/distlib/index.pyt _get_pypirc_commandB s c C sy | j } | j | _ | j } | j d | _ | j d | _ | j d d | _ | j d | j | _ d S( s Read the PyPI access configuration as supported by distutils, getting PyPI to do the actual work. This populates ``username``, ``password``, ``realm`` and ``url`` attributes from the configuration. t usernamet passwordt realmR t repositoryN( R2 R R6 t _read_pypirct getR3 R4 R5 ( R" t ct cfg( ( s= /usr/lib/python2.7/site-packages/pip/_vendor/distlib/index.pyR L s c C s0 | j | j } | j | j | j d S( s Save the PyPI access configuration. You must have set ``username`` and ``password`` attributes before calling this method. Again, distutils is used to do the actual work. N( t check_credentialsR2 t _store_pypircR3 R4 ( R" R9 ( ( s= /usr/lib/python2.7/site-packages/pip/_vendor/distlib/index.pyt save_configuration[ s c C s | j d k s | j d k r- t d n t } t | j \ } } } } } } | j | j | | j | j t | | _ d S( sp Check that ``username`` and ``password`` have been set, and raise an exception if not. s! username and password must be setN( R3 R R4 R R R R t add_passwordR5 R R ( R" t pmt _R$ ( ( s= /usr/lib/python2.7/site-packages/pip/_vendor/distlib/index.pyR; g s !c C s | j | j | j } d | d <| j | j g } | j | } d | d <| j | j g } | j | S( sq Register a distribution on PyPI, using the provided metadata. :param metadata: A :class:`Metadata` instance defining at least a name and version number for the distribution to be registered. :return: The HTTP response received from PyPI upon submission of the request. t verifys :actiont submit( R; t validatet todictt encode_requestt itemst send_request( R" t metadataR1 t requestt response( ( s= /usr/lib/python2.7/site-packages/pip/_vendor/distlib/index.pyt registers s c C sj xY t r[ | j } | s Pn | j d j } | j | t j d | | f q W| j d S( sr Thread runner for reading lines of from a subprocess into a buffer. :param name: The logical name of the stream (used for logging only). :param stream: The stream to read from. This will typically a pipe connected to the output stream of a subprocess. :param outbuf: The list to append the read lines to. s utf-8s %s: %sN( t Truet readlinet decodet rstript appendt loggert debugt close( R" t namet streamt outbufR* ( ( s= /usr/lib/python2.7/site-packages/pip/_vendor/distlib/index.pyt _reader s c C s | j d d d g } | d k r- | j } n | rI | j d | g n | d k rn | j d d d g n t j } t j j | t j j | d } | j d d d | d | | g t j d d j | | | f S( s Return a suitable command for signing a file. :param filename: The pathname to the file to be signed. :param signer: The identifier of the signer of the file. :param sign_password: The passphrase for the signer's private key used for signing. :param keystore: The path to a directory which contains the keys used in verification. If not specified, the instance's ``gpg_home`` attribute is used instead. :return: The signing command as a list suitable to be passed to :class:`subprocess.Popen`. s --status-fdt 2s --no-ttys --homedirs --batchs --passphrase-fdt 0s .ascs --detach-signs --armors --local-users --outputs invoking: %st N( R R R t extendt tempfilet mkdtempR R% t joint basenameRQ RR ( R" t filenamet signert sign_passwordt keystoret cmdt tdt sf( ( s= /usr/lib/python2.7/site-packages/pip/_vendor/distlib/index.pyt get_sign_command s %c C s i t j d 6t j d 6} | d k r6 t j | d