Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/site-packages/pandas/util/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/site-packages/pandas/util/__pycache__/_print_versions.cpython-312.pyc

�

Mٜg���ddlmZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
e
rddlmZddl
mZmZmZd
d�Zdd�Zdd�Zdd
d	�Zy)�)�annotationsN)�
TYPE_CHECKING)�JSONSerializable)�VERSIONS�get_version�import_optional_dependencyc�V�	ddlm}|S#t$rddlm}|�}|dcYSwxYw)za
    Use vendored versioneer code to get git hash, which handles
    git worktree correctly.
    r)�__git_version__)�get_versionszfull-revisionid)�pandas._version_mesonr
�ImportError�pandas._versionr)r
r�versionss   �F/usr/local/lib/python3.12/site-packages/pandas/util/_print_versions.py�_get_commit_hashrs9��

+�	
�����+�0��>���)�*�*�	+�s�
�(�(c���tj�}tj�\}}t	�tj
�t
jd�dz|j|j|j|j|jtjtj j#d�tj j#d�||d�d�S)zG
    Returns system information as a JSON serializable dictionary.
    �P��LC_ALL�LANG)�
language-code�encoding)�commit�pythonzpython-bits�OSz
OS-release�Version�machine�	processor�	byteorderrr�LOCALE)�platform�uname�locale�	getlocaler�python_version�struct�calcsize�system�release�versionrr�sysr�os�environ�get)�uname_result�
language_coders   r�
_get_sys_infor1(s����>�>�#�L�$�.�.�0��M�8�"�$��)�)�+����s�+�a�/��!�!�"�*�*��'�'��'�'�!�+�+��]�]��*�*�.�.��*��
�
���v�&�$1�x�H�
�
�c���gd�}|jtt��i}|D]"}	t|d��}|rt	|�nd||<�$|S#t
$rd||<Y�7wxYw)zK
    Returns dependency information as a JSON serializable dictionary.
    )�pandas�numpy�pytz�dateutil�pip�Cython�sphinx�IPython�ignore)�errorsNzN/A)�extend�listrrr�	Exception)�deps�result�modname�mods    r�_get_dependency_inforE>sq��
�D�	�K�K��X���*,�F���	@�,�W�X�F�C�
36�k�#�.�4�F�7�O���M���	$�#�F�7�O�	$�s�
A�A�Ac���t�}t�}|r�||d�}|dur5tjj	tj|d���yt|t�sJ�tj|dd��5}tj||d��ddd�yt|d	t�sJ�|d	d
}|d	d}|�d|��|d	<td
�|D��}td�td�|j�D]\}}	t|d|���d|	����td�|j�D]\}}	t|d|���d|	����y#1swYyxYw)a�
    Provide useful information, important for bug reports.

    It comprises info about hosting operation system, pandas version,
    and versions of other installed relative packages.

    Parameters
    ----------
    as_json : str or bool, default False
        * If False, outputs info in a human readable form to the console.
        * If str, it will be considered as a path to a file.
          Info will be written to that file in JSON format.
        * If True, outputs info in JSON format to the console.

    Examples
    --------
    >>> pd.show_versions()  # doctest: +SKIP
    Your output may look something like this:
    INSTALLED VERSIONS
    ------------------
    commit           : 37ea63d540fd27274cad6585082c91b1283f963d
    python           : 3.10.6.final.0
    python-bits      : 64
    OS               : Linux
    OS-release       : 5.10.102.1-microsoft-standard-WSL2
    Version          : #1 SMP Wed Mar 2 00:30:59 UTC 2022
    machine          : x86_64
    processor        : x86_64
    byteorder        : little
    LC_ALL           : None
    LANG             : en_GB.UTF-8
    LOCALE           : en_GB.UTF-8
    pandas           : 2.0.1
    numpy            : 1.24.3
    ...
    )r(�dependenciesT�)�indent�wb�utf8)rNr rr�.c3�2K�|]}t|����y�w)N)�len)�.0�xs  r�	<genexpr>z show_versions.<locals>.<genexpr>�s����*�T��S��V�T�s�z
INSTALLED VERSIONSz------------------�<z: �)r1rEr+�stdout�
writelines�json�dumps�
isinstance�str�codecs�open�dump�dict�max�print�items)
�as_json�sys_inforA�j�fr0r�maxlen�k�vs
          r�
show_versionsrh_sZ��J��H��!�D����6���d�?��J�J�!�!�$�*�*�Q�q�"9�:��g�s�+�+�+����W�d�V�<���	�	�!�Q�q�)�=�<��(�8�,�d�3�3�3� ��*�?�;�
��H�%�j�1�� -��a��z�:�����*�T�*�*��
�$�%�
�"�#��N�N�$�D�A�q��Q�q���j�M��A�3�'�(�%�
�b�	��J�J�L�D�A�q��Q�q���j�M��A�3�'�(�!�=�<�s�?E�E%)�returnz
str | None)rizdict[str, JSONSerializable])F)raz
str | boolri�None)�
__future__rrZrVr#r,r!r&r+�typingr�pandas._typingr�pandas.compat._optionalrrrrr1rErh�r2r�<module>rpsE��"�
��
�	��
�
� ��/���+�$�,�B?)r2

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists