403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/IPython/core/magics/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/IPython/core/magics/__pycache__/packaging.cpython-311.pyc
�

�@�cL���dZddlZddlZddlZddlmZddlmZmZm	Z	d�Z
d�Zhd�Zhd�Z
hd	�Zd
dhZeGd�d
e����ZdS)z5Implementation of packaging-related magic functions.
�N)�Path)�Magics�magics_class�
line_magicc�\�ttjdd�����S)z>Return True if the current Python executable is in a conda env�
conda-meta�history)r�sys�prefix�exists���?/usr/lib/python3/dist-packages/IPython/core/magics/packaging.py�_is_conda_environmentrs$����
�L�)�4�4�;�;�=�=�=rc�f�ttj��jdz}|���rt|��Sttjdd���d���}tj	d|tj
���}|r|���dSdS)	z%Find the path to the conda executable�condarr	zutf-8)�encodingz2^#\s*cmd:\s*(?P<command>.*conda)\s[create|install])�flags�command)rr
�
executable�parent�is_file�strr�	read_text�re�search�	MULTILINE�	groupdict)rr	�matchs   r�_get_conda_executabler s���
��� � �'�'�1�E��}�}�����5�z�z���3�:�|�Y�7�7�A�A�7�A�S�S�G��I�=���l�
�
�
�E�

�,���� � ��+�+��7r>�list�remove�update�install�upgrade�	uninstall>r"r#r$r%r&>�-n�-p�--name�--prefixz-yz--yc�>�eZdZdZed���Zed���ZdS)�PackagingMagicsz*Magics related to packaging & installationc��tj}tjdkr	d|zdz}ntj|��}|j�d�|dd|g����td��dS)zmRun the pip package manager within the current kernel.

        Usage:
          %pip install [pkgs]
        �win32�"� z-m�pipzANote: you may need to restart the kernel to use updated packages.N)	r
r�platform�shlex�quote�shell�system�join�print)�self�line�pythons   rr1zPackagingMagics.pip>sw������<�7�"�"��6�\�C�'�F�F��[��(�(�F��
���#�(�(�F�D�%��#>�?�?�@�@�@�
�Q�R�R�R�R�Rrc��t��std���t��}tj|��}t|��dkr|dnd}t|��dkr
|dd�ndg}g}t
|jdd��du}|tv}t|���
t��}|r|r|s|�d��|tv}	t|���
t��}
|	r#|
s!|�dt jg��|j�d	�||g|z|z����t)d
��dS)zqRun the conda package manager within the current kernel.

        Usage:
          %conda install [pkgs]
        zbThe python kernel does not appear to be a conda environment.  Please use ``%pip install`` instead.r��N�kernelz--yesr*r0zB
Note: you may need to restart the kernel to use updated packages.)r�
ValueErrorr r3�split�len�getattrr5�CONDA_COMMANDS_REQUIRING_YES�set�intersection�CONDA_YES_FLAGS�append�CONDA_COMMANDS_REQUIRING_PREFIX�CONDA_ENV_FLAGS�extendr
rr6r7r8)r9r:r�argsr�
extra_args�stdin_disabled�	needs_yes�has_yes�needs_prefix�
has_prefixs           rrzPackagingMagics.condaOs���%�&�&�	E��D�E�E�
E�&�'�'���{�4� � �� ��Y�Y��]�]�$�q�'�'����t�9�9�q�=�=�t�A�B�B�x�x�r�d���
�!���X�t�<�<�D�H���;�;�	��d�)�)�(�(��9�9���	'�i�	'��	'����g�&�&�&��"A�A����Y�Y�+�+�O�<�<�
��	8�
�	8����z�3�:�6�7�7�7��
���#�(�(�E�7�#3�j�#@�4�#G�H�H�I�I�I�
�S�T�T�T�T�TrN)�__name__�
__module__�__qualname__�__doc__rr1rr
rrr,r,:sV������4�4��S�S��Z�S� � U� U��Z� U� U� Urr,)rVrr3r
�pathlibr�IPython.core.magicrrrrr rIrDrJrGr,r
rr�<module>rYs�����
�	�	�	�����
�
�
�
�������?�?�?�?�?�?�?�?�?�?�>�>�>����.#�#�#�� � � ��5�4�4����-���5U�5U�5U�5U�5U�f�5U�5U���5U�5U�5Ur

Youez - 2016 - github.com/yon3zu
LinuXploit