__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

aptanhua@216.73.216.79: ~ $
o

0�i�-�@sddZddlZddlZddlZddlZddlmZddlm	Z	ddl
TddlmZGdd�de	�Z
dS)	zhdistutils.command.register

Implements the Distutils 'register' command (register with the repository).
�N)�warn)�
PyPIRCCommand)�*)�logc@s�eZdZdZejddgZejgd�Zddd�fgZdd	�Zd
d�Z	dd
�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zddd�ZdS)�registerz7register the distribution with the Python package index)�list-classifiersNz list the valid Trove classifiers)�strictNzBWill stop the registering if the meta-data are not fully compliant)�verifyrr�checkcCsdS)NT���selfrr�A/opt/alt/python310/lib64/python3.10/distutils/command/register.py�<lambda>szregister.<lambda>cCst�|�d|_d|_dS)Nr)r�initialize_options�list_classifiersrrrrrrs

zregister.initialize_optionscCs*t�|�d|jfdd�}||jjd<dS)Nr)r�)r�restructuredtextr
)r�finalize_optionsr�distributionZcommand_options)r
Z
check_optionsrrrr$s

�zregister.finalize_optionscCsX|��|��|��D]}|�|�q|jr|��dS|jr&|��dS|��dS�N)	r�_set_configZget_sub_commandsZrun_commandZdry_run�verify_metadatar�classifiers�
send_metadata)r
Zcmd_namerrr�run+szregister.runcCs8tdt�|j�d�}|��|j|_d|_|��dS)zDeprecated API.zddistutils.command.register.check_metadata is deprecated,               use the check command insteadr
rN)r�PendingDeprecationWarningrZget_command_objZensure_finalizedrrr)r
r
rrr�check_metadata:s�zregister.check_metadatacCs||��}|ikr!|d|_|d|_|d|_|d|_d|_d	S|jd|jfvr0td|j��|jdkr9|j|_d|_d	S)
z: Reads the configuration file and set attributes.
        �username�password�
repository�realmTZpypiz%s not found in .pypircFN)Z_read_pypircrrr r!�
has_configZDEFAULT_REPOSITORY�
ValueError)r
ZconfigrrrrDs






zregister._set_configcCs*|jd}tj�|�}t�|�|��dS)z8 Fetch the list of classifiers from the server.
        z?:action=list_classifiersN)r �urllib�requestZurlopenr�info�_read_pypi_response)r
ZurlZresponserrrrUs
zregister.classifierscCs&|�|�d��\}}t�d||�dS)zF Send the metadata to the package index server to be checked.
        r	�Server response (%s): %sN)�post_to_server�build_post_datarr&)r
�code�resultrrrr\szregister.verify_metadatac
Cs|jrd}|j}|j}nd}d}}d��}||vr5|�dtj�t�}|s)d}n||vr1td�||vs|dkr�|sAtd�}|r;|sJt	�	d�}|rCt
j��}t
j
�|j�d	}|�|j|||�|�|�d
�|�\}}|�d||ftj�|dkr�|jr�||j_dS|�d
tj�|�d|��tj�d}|��dvr�td�}|s�d}|��dvs�|��dkr�|�||�dSdSdS|dk�r\ddi}	d|	d<|	d<|	d<d|	d<|	ds�td�|	d<|	dr�|	d|	dk�r+|	ds�t	�	d�|	d<|	dr�|	d�st	�	d�|	d<|	d�r|	d|	dk�r#d|	d<d|	d<td�|	d|	dks�|	d�s;td�|	d<|	d�r0|�|	�\}}|dk�rPt�d||�dSt�d�t�d �dS|d!k�r�dd"i}	d|	d<|	d�sytd#�|	d<|	d�rn|�|	�\}}t�d||�dSdS)$a_ Send the metadata to the package index server.

            Well, do the following:
            1. figure who the user is, and then
            2. send the data as a Basic auth'ed POST.

            First we try to read the username/password from $HOME/.pypirc,
            which is a ConfigParser-formatted file with a section
            [distutils] containing username and password entries (both
            in clear text). Eg:

                [distutils]
                index-servers =
                    pypi

                [pypi]
                username: fred
                password: sekrit

            Otherwise, to figure who the user is, we offer the user three
            choices:

             1. use existing login,
             2. register as a new user, or
             3. set the password to a random string and email the user.

        �1�x�z1 2 3 4z�We need to know who you are, so please choose either:
 1. use your existing login,
 2. register as a new user,
 3. have the server generate a new password for you (and email it to you), or
 4. quit
Your selection [default 1]: z&Please choose one of the four options!z
Username: z
Password: rZsubmitr(��zAI can store your PyPI login so future submissions will be faster.z (the login will be stored in %s)�XZynzSave your login (y/N)?�n�y�2�:action�user�namerZemailNZconfirmz
 Confirm: z!Password and confirm don't match!z
   EMail: z"You will receive an email shortly.z7Follow the instructions in it to complete registration.�3Zpassword_resetzYour email address: )r"rr�split�announcer�INFO�input�print�getpassr$r%ZHTTPPasswordMgr�parseZurlparser Zadd_passwordr!r)r*rZ_get_rc_file�lowerZ
_store_pypircr&)
r
Zchoicerr�choices�authZhostr+r,�datarrrrcs����
�
�������
��

��
	
�




��zregister.send_metadatacCs�|jj}id|�dd�d|���d|���d|���d|���d|���d	|���d
|���d|�	��d|�
��d
|���d|���d|�
��d|���d|���d|���}|dsc|dsc|drgd|d<|S)Nr5Zmetadata_versionz1.0r7�versionZsummaryZ	home_pageZauthorZauthor_email�license�description�keywords�platformrZdownload_urlZprovidesZrequiresZ	obsoletesz1.1)rZmetadataZget_nameZget_versionZget_descriptionZget_urlZget_contactZget_contact_emailZget_licenceZget_long_descriptionZget_keywordsZ
get_platformsZget_classifiersZget_download_urlZget_providesZget_requiresZ
get_obsoletes)r
�action�metarCrrrr*�sN��������	�
���
�����zregister.build_post_dataNc
Cs�d|vr|�d|d|jftj�d}d|}|d}t��}|��D]?\}}t|�tg�td�fvr7|g}|D])}t|�}|�	|�|�	d|�|�	d�|�	|�|rb|d	d
krb|�	d�q9q$|�	|�|�	d�|�
��d�}d
|tt|��d�}	t
j�|j||	�}
t
j�t
jj|d��}d}z|�|
�}Wn;t
jjy�}
z|jr�|
j��}|
j|
jf}WYd}
~
n(d}
~
wt
jjy�}
zdt|
�f}WYd}
~
nd}
~
ww|jr�|�|�}d}|jr�d�d|df�}|�|tj�|S)zC Post a query to the server, and return a string response.
        r7zRegistering %s to %sz3--------------GHSKFJDLGDS7543FJKLFHRE75642756743254z
--z--rz*
Content-Disposition: form-data; name="%s"z

����
�
zutf-8z/multipart/form-data; boundary=%s; charset=utf-8)zContent-typezContent-length)Zpassword_mgrr/Ni�)r0ZOKzK---------------------------------------------------------------------------)r:r rr;�io�StringIO�items�type�str�write�getvalue�encode�lenr$r%ZRequestZbuild_openerZHTTPBasicAuthHandler�open�errorZ	HTTPErrorZ
show_response�fp�readr+�msgZURLErrorr'�join)r
rCrB�boundaryZsep_boundaryZend_boundary�body�key�valueZheadersZreqZopenerr,�er[rrrr)�sh��



��


��
���
zregister.post_to_serverr)�__name__�
__module__�__qualname__rFrZuser_optionsZboolean_optionsZsub_commandsrrrrrrrrr*r)rrrrrs$�
zr)�__doc__r>rNZurllib.parser$Zurllib.request�warningsrZdistutils.corerZdistutils.errorsZ	distutilsrrrrrr�<module>s

Filemanager

Name Type Size Permission Actions
__init__.cpython-310.opt-1.pyc File 477 B 0644
__init__.cpython-310.opt-2.pyc File 372 B 0644
__init__.cpython-310.pyc File 477 B 0644
bdist.cpython-310.opt-1.pyc File 3.48 KB 0644
bdist.cpython-310.opt-2.pyc File 3.3 KB 0644
bdist.cpython-310.pyc File 3.48 KB 0644
bdist_dumb.cpython-310.opt-1.pyc File 3.52 KB 0644
bdist_dumb.cpython-310.opt-2.pyc File 3.33 KB 0644
bdist_dumb.cpython-310.pyc File 3.52 KB 0644
bdist_msi.cpython-310.opt-1.pyc File 19.15 KB 0644
bdist_msi.cpython-310.opt-2.pyc File 17.67 KB 0644
bdist_msi.cpython-310.pyc File 19.22 KB 0644
bdist_rpm.cpython-310.opt-1.pyc File 11.91 KB 0644
bdist_rpm.cpython-310.opt-2.pyc File 11.61 KB 0644
bdist_rpm.cpython-310.pyc File 11.96 KB 0644
build.cpython-310.opt-1.pyc File 3.77 KB 0644
build.cpython-310.opt-2.pyc File 3.69 KB 0644
build.cpython-310.pyc File 3.77 KB 0644
build_clib.cpython-310.opt-1.pyc File 4.72 KB 0644
build_clib.cpython-310.opt-2.pyc File 4.18 KB 0644
build_clib.cpython-310.pyc File 4.72 KB 0644
build_ext.cpython-310.opt-1.pyc File 15.83 KB 0644
build_ext.cpython-310.opt-2.pyc File 13.95 KB 0644
build_ext.cpython-310.pyc File 15.83 KB 0644
build_py.cpython-310.opt-1.pyc File 10.19 KB 0644
build_py.cpython-310.opt-2.pyc File 9.04 KB 0644
build_py.cpython-310.pyc File 10.24 KB 0644
build_scripts.cpython-310.opt-1.pyc File 4.24 KB 0644
build_scripts.cpython-310.opt-2.pyc File 3.87 KB 0644
build_scripts.cpython-310.pyc File 4.24 KB 0644
check.cpython-310.opt-1.pyc File 4.85 KB 0644
check.cpython-310.opt-2.pyc File 4.27 KB 0644
check.cpython-310.pyc File 4.85 KB 0644
clean.cpython-310.opt-1.pyc File 2.06 KB 0644
clean.cpython-310.opt-2.pyc File 1.98 KB 0644
clean.cpython-310.pyc File 2.06 KB 0644
config.cpython-310.opt-1.pyc File 10.05 KB 0644
config.cpython-310.opt-2.pyc File 6.83 KB 0644
config.cpython-310.pyc File 10.05 KB 0644
install.cpython-310.opt-1.pyc File 13.5 KB 0644
install.cpython-310.opt-2.pyc File 12.54 KB 0644
install.cpython-310.pyc File 13.5 KB 0644
install_data.cpython-310.opt-1.pyc File 2.25 KB 0644
install_data.cpython-310.opt-2.pyc File 2.12 KB 0644
install_data.cpython-310.pyc File 2.25 KB 0644
install_egg_info.cpython-310.opt-1.pyc File 2.98 KB 0644
install_egg_info.cpython-310.opt-2.pyc File 2.33 KB 0644
install_egg_info.cpython-310.pyc File 2.98 KB 0644
install_headers.cpython-310.opt-1.pyc File 1.69 KB 0644
install_headers.cpython-310.opt-2.pyc File 1.53 KB 0644
install_headers.cpython-310.pyc File 1.69 KB 0644
install_lib.cpython-310.opt-1.pyc File 5.01 KB 0644
install_lib.cpython-310.opt-2.pyc File 4.46 KB 0644
install_lib.cpython-310.pyc File 5.01 KB 0644
install_scripts.cpython-310.opt-1.pyc File 2.11 KB 0644
install_scripts.cpython-310.opt-2.pyc File 1.98 KB 0644
install_scripts.cpython-310.pyc File 2.11 KB 0644
register.cpython-310.opt-1.pyc File 8.44 KB 0644
register.cpython-310.opt-2.pyc File 7.23 KB 0644
register.cpython-310.pyc File 8.44 KB 0644
sdist.cpython-310.opt-1.pyc File 14.12 KB 0644
sdist.cpython-310.opt-2.pyc File 10.89 KB 0644
sdist.cpython-310.pyc File 14.12 KB 0644
upload.cpython-310.opt-1.pyc File 5.24 KB 0644
upload.cpython-310.opt-2.pyc File 5.12 KB 0644
upload.cpython-310.pyc File 5.24 KB 0644