Current File : //proc/self/root/usr/lib/python3.12/__pycache__/uuid.cpython-312.pyc
�

�4h�s��&�dZddlZddlZddlmZmZdZejdvrdxZZ	nddlZej�Zedk(Zedk(Z	d	ZdZ
erd
ZdZ
gd�\ZZZZeZeZee�Gd
�d��ZGd�d�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"d�Z#	ddl$Z$e%e$dd�Z&e%e$dd�Z'e$jPZ)d�Z+d �Z,d!�Z-d"�Z.e	reegZ/n4ejd#k(reee!gZ/nejd$k(rgZ/n
ere!gZ/neeee!e gZ/ej`d%k(re,ge/zZ1nej`d&k(re-ge/zZ1ne/Z1da2d'�Z3da4d2d(�Z5d)�Z6d*�Z7d+�Z8d,�Z9ed-�Z:ed.�Z;ed/�Z<ed0�Z=e>d1k(re9�yy#e*$rdZ$dZ&dZ'dZ)Y��wxYw)3aQUUID objects (universally unique identifiers) according to RFC 4122.

This module provides immutable UUID objects (class UUID) and the functions
uuid1(), uuid3(), uuid4(), uuid5() for generating version 1, 3, 4, and 5
UUIDs as specified in RFC 4122.

If all you want is a unique ID, you should probably call uuid1() or uuid4().
Note that uuid1() may compromise privacy since it creates a UUID containing
the computer's network address.  uuid4() creates a random UUID.

Typical usage:

    >>> import uuid

    # make a UUID based on the host ID and current time
    >>> uuid.uuid1()    # doctest: +SKIP
    UUID('a8098c1a-f86e-11da-bd1a-00112444be1e')

    # make a UUID using an MD5 hash of a namespace UUID and a name
    >>> uuid.uuid3(uuid.NAMESPACE_DNS, 'python.org')
    UUID('6fa459ea-ee8a-3ca4-894e-db77e160355e')

    # make a random UUID
    >>> uuid.uuid4()    # doctest: +SKIP
    UUID('16fd2706-8baf-433b-82eb-8c7fada847da')

    # make a UUID using a SHA-1 hash of a namespace UUID and a name
    >>> uuid.uuid5(uuid.NAMESPACE_DNS, 'python.org')
    UUID('886313e1-3b8a-5372-9b90-0c9aee199e5d')

    # make a UUID from a string of hex digits (braces and hyphens ignored)
    >>> x = uuid.UUID('{00010203-0405-0607-0809-0a0b0c0d0e0f}')

    # convert a UUID to a string of hex digits in standard form
    >>> str(x)
    '00010203-0405-0607-0809-0a0b0c0d0e0f'

    # get the raw 16 bytes of the UUID
    >>> x.bytes
    b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f'

    # make a UUID from a 16-byte string
    >>> uuid.UUID(bytes=x.bytes)
    UUID('00010203-0405-0607-0809-0a0b0c0d0e0f')
�N)�Enum�_simple_enumzKa-Ping Yee <ping@zesty.ca>)�win32�darwin�
emscripten�wasiF�AIX�Linux�:�.T)zreserved for NCS compatibilityzspecified in RFC 4122z$reserved for Microsoft compatibilityzreserved for future definitionc��eZdZdZdZdZy)�SafeUUIDr���N)�__name__�
__module__�__qualname__�safe�unsafe�unknown���/usr/lib/python3.12/uuid.pyrrNs���D�
�F��Grrc�r�eZdZdZdZ		d!ejd�d�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Z ed��Z!ed��Z"ed ��Z#y)"�UUIDa�	Instances of the UUID class represent UUIDs as specified in RFC 4122.
    UUID objects are immutable, hashable, and usable as dictionary keys.
    Converting a UUID to a string with str() yields something in the form
    '12345678-1234-1234-1234-123456789abc'.  The UUID constructor accepts
    five possible forms: a similar string of hexadecimal digits, or a tuple
    of six integer fields (with 32-bit, 16-bit, 16-bit, 8-bit, 8-bit, and
    48-bit values respectively) as an argument named 'fields', or a string
    of 16 bytes (with all the integer fields in big-endian order) as an
    argument named 'bytes', or a string of 16 bytes (with the first three
    fields in little-endian order) as an argument named 'bytes_le', or a
    single 128-bit integer as an argument named 'int'.

    UUIDs have these read-only attributes:

        bytes       the UUID as a 16-byte string (containing the six
                    integer fields in big-endian byte order)

        bytes_le    the UUID as a 16-byte string (with time_low, time_mid,
                    and time_hi_version in little-endian byte order)

        fields      a tuple of the six integer fields of the UUID,
                    which are also available as six individual attributes
                    and two derived attributes:

            time_low                the first 32 bits of the UUID
            time_mid                the next 16 bits of the UUID
            time_hi_version         the next 16 bits of the UUID
            clock_seq_hi_variant    the next 8 bits of the UUID
            clock_seq_low           the next 8 bits of the UUID
            node                    the last 48 bits of the UUID

            time                    the 60-bit timestamp
            clock_seq               the 14-bit sequence number

        hex         the UUID as a 32-character hexadecimal string

        int         the UUID as a 128-bit integer

        urn         the UUID as a URN as specified in RFC 4122

        variant     the UUID variant (one of the constants RESERVED_NCS,
                    RFC_4122, RESERVED_MICROSOFT, or RESERVED_FUTURE)

        version     the UUID version number (1 through 5, meaningful only
                    when the variant is RFC_4122)

        is_safe     An enum indicating whether the UUID has been generated in
                    a way that is safe for multiprocessing applications, via
                    uuid_generate_time_safe(3).
    )�int�is_safe�__weakref__N)rc�|�|||||gjd�dk7rtd��|�h|jdd�jdd�}|jd�jdd�}t	|�d	k7rtd
��t
|d�}|�9t	|�dk7rtd��|d
dd�|dd
d�z|ddd�z|ddz}|�Nt	|�dk7rtd��t|t�sJt|���tj|�}|��t	|�dk7rtd��|\}}	}
}}}
d|cxkrdkstd��td��d|	cxkrdkstd��td��d|
cxkrdkstd��td��d|cxkrdkstd��td��d|cxkrdkstd��td��d|
cxkrdkstd��td��|dz|z}|d z|	d!zz|
d"zz|d#zz|
z}|�%d|cxkrd$d%zkstd&��td&��|�9d$|cxkrdkstd'��td'��|d(z}|d)z}|d*z}||d+zz}tj|d,|�tj|d-|�y).aLCreate a UUID from either a string of 32 hexadecimal digits,
        a string of 16 bytes as the 'bytes' argument, a string of 16 bytes
        in little-endian order as the 'bytes_le' argument, a tuple of six
        integers (32-bit time_low, 16-bit time_mid, 16-bit time_hi_version,
        8-bit clock_seq_hi_variant, 8-bit clock_seq_low, 48-bit node) as
        the 'fields' argument, or a single 128-bit integer as the 'int'
        argument.  When a string of hex digits is given, curly braces,
        hyphens, and a URN prefix are all optional.  For example, these
        expressions all yield the same UUID:

        UUID('{12345678-1234-5678-1234-567812345678}')
        UUID('12345678123456781234567812345678')
        UUID('urn:uuid:12345678-1234-5678-1234-567812345678')
        UUID(bytes='\x12\x34\x56\x78'*4)
        UUID(bytes_le='\x78\x56\x34\x12\x34\x12\x78\x56' +
                      '\x12\x34\x56\x78\x12\x34\x56\x78')
        UUID(fields=(0x12345678, 0x1234, 0x5678, 0x12, 0x34, 0x567812345678))
        UUID(int=0x12345678123456781234567812345678)

        Exactly one of 'hex', 'bytes', 'bytes_le', 'fields', or 'int' must
        be given.  The 'version' argument is optional; if given, the resulting
        UUID will have its variant and version set according to RFC 4122,
        overriding the given 'hex', 'bytes', 'bytes_le', 'fields', or 'int'.

        is_safe is an enum exposed as an attribute on the instance.  It
        indicates whether the UUID has been generated in a way that is safe
        for multiprocessing applications, via uuid_generate_time_safe(3).
        N�zGone of the hex, bytes, bytes_le, fields, or int arguments must be givenzurn:�zuuid:z{}�-� z$badly formed hexadecimal UUID string�z bytes_le is not a 16-char string�r���zbytes is not a 16-char string�zfields is not a 6-tuplerlz*field 1 out of range (need a 32-bit value)iz*field 2 out of range (need a 16-bit value)z*field 3 out of range (need a 16-bit value)�z*field 4 out of range (need an 8-bit value)z*field 5 out of range (need an 8-bit value)�z*field 6 out of range (need a 48-bit value)�`�P�@�0��z*int is out of range (need a 128-bit value)zillegal version numberl�����l�����Lrr)
�count�	TypeError�replace�strip�len�
ValueError�int_�
isinstance�bytes_�repr�
from_bytes�object�__setattr__)�self�hex�bytes�bytes_le�fieldsr�versionr�time_low�time_mid�time_hi_version�clock_seq_hi_variant�
clock_seq_low�node�	clock_seqs               r�__init__z
UUID.__init__�s]��@
���&�#�.�4�4�T�:�a�?��=�>�
>��?��+�+�f�b�)�1�1�'�2�>�C��)�)�D�/�)�)�#�r�2�C��3�x�2�~� �!G�H�H��s�B�-�C����8�}��"� �!C�D�D��c�g�2�g�&��#�c�"�*�)=�=��c�#�b�j�)�*�,4�Q�R�L�9�E����5�z�R�� �!@�A�A��e�V�,�9�d�5�k�9�,��/�/�%�(�C����6�{�a�� �!:�;�;�:@�
8�X�x��
!�=�$���(�5�(� �!M�N�N�)� �!M�N�N���(�5�(� �!M�N�N�)� �!M�N�N���/�%�/� �!M�N�N�0� �!M�N�N��,�3�t�3� �!M�N�N�4� �!M�N�N��
�,��,� �!M�N�N�-� �!M�N�N���$�u�$� �!M�N�N�%� �!M�N�N�-��2�m�C�I���N�x�2�~�6�#�r�)�+�.7�2�o�?�AE�F�C��?���$�a��f�$� �!M�N�N�%� �!M�N�N�����$�1�$� �!9�:�:�%� �!9�:�:��?�"�C��<��C��?�"�C��7�b�=� �C����4���,����4��G�4rc��d|ji}|jtjk7r|jj|d<|S�Nrr)rrrr�value)r@�ds  r�__getstate__zUUID.__getstate__�s<��
�D�H�H����<�<�8�+�+�+� �<�<�-�-�A�i�L��rc��tj|d|d�tj|dd|vrt|d��ytj�yrO)r>r?rr)r@�states  r�__setstate__zUUID.__setstate__�sQ�����4���e��5����4��'�5�0�$�E�)�$4�5�	H�6>�6F�6F�	Hrc�`�t|t�r|j|jk(StS�N�r:rr�NotImplemented�r@�others  r�__eq__zUUID.__eq__��%���e�T�"��8�8�u�y�y�(�(��rc�`�t|t�r|j|jkStSrWrXrZs  r�__lt__zUUID.__lt__��%���e�T�"��8�8�e�i�i�'�'��rc�`�t|t�r|j|jkDStSrWrXrZs  r�__gt__zUUID.__gt__�r`rc�`�t|t�r|j|jkStSrWrXrZs  r�__le__zUUID.__le__r]rc�`�t|t�r|j|jk\StSrWrXrZs  r�__ge__zUUID.__ge__r]rc�,�t|j�SrW)�hashr�r@s r�__hash__z
UUID.__hash__s���D�H�H�~�rc��|jSrW�rris r�__int__zUUID.__int__s���x�x�rc�L�|jj�dt|��d�S)N�(�))�	__class__r�strris r�__repr__z
UUID.__repr__s���>�>�2�2�C��I�>�>rc��td��)NzUUID objects are immutable)r4)r@�namerPs   rr?zUUID.__setattr__s���4�5�5rc�^�d|jz}|dd�d|dd�d|dd�d|dd�d|dd��	S)N�%032xr'r!�r#�rl)r@rAs  r�__str__zUUID.__str__sE������ �����G�S��2�Y��B�r�
�C��2�J��B�C��B�	Brc�8�|jjd�S)Nr#)r�to_bytesris rrBz
UUID.bytess���x�x� � ��$�$rc�Z�|j}|ddd�|ddd�z|ddd�z|ddzS)Nr$rr%r&r'�rB)r@rBs  rrCz
UUID.bytes_le!sK���
�
���c�g�2�g���s�3�r�z�!2�2�U�3�s�2�:�5F�F��a�b�	��	rc��|j|j|j|j|j|j
fSrW)rFrGrHrIrJrKris rrDzUUID.fields's:���
�
�t�}�}�d�.B�.B��)�)�4�+=�+=�t�y�y�J�	Jrc� �|jdz	S)Nr+rlris rrFz
UUID.time_low,s���x�x�2�~�rc�&�|jdz	dzS)Nr,�rlris rrGz
UUID.time_mid0������B��&�(�(rc�&�|jdz	dzS)Nr-r�rlris rrHzUUID.time_hi_version4r�rc�&�|jdz	dzS)N�8�rlris rrIzUUID.clock_seq_hi_variant8������B��$�&�&rc�&�|jdz	dzS)Nr.r�rlris rrJzUUID.clock_seq_low<r�rc�`�|jdzdz|jdzz|jzS)N�r.r")rHrGrFris r�timez	UUID.time@s7���&�&��/�B�6����"�$�&�(,�
�
�6�	7rc�@�|jdzdz|jzS)N�?r')rIrJris rrLzUUID.clock_seqEs(���+�+�d�2�q�8��"�"�#�	$rc� �|jdzS)Nl���rlris rrKz	UUID.nodeJs���x�x�.�(�(rc� �d|jzS)Nrwrlris rrAzUUID.hexNs������!�!rc��dt|�zS)Nz	urn:uuid:)rrris r�urnzUUID.urnRs���S��Y�&�&rc��|jdzstS|jdzstS|jdzstStS)Nr1ll)r�RESERVED_NCS�RFC_4122�RESERVED_MICROSOFT�RESERVED_FUTUREris r�variantzUUID.variantVs=���x�x�<�(������\�*��O����\�*�%�%�"�"rc�`�|jtk(rt|jdz	dz�Sy)Nr2�)r�r�rris rrEzUUID.versionas-���<�<�8�#�����B��#�-�.�.�$r)NNNNNN)$rrr�__doc__�	__slots__rrrMrRrUr\r_rbrdrfrjrmrsr?rz�propertyrBrCrDrFrGrHrIrJr�rLrKrAr�r�rErrrrrUs���1�f2�I�CG�)-�T5�"*�"2�"2�T5�l�H���
�
�
�
��?�6�B�
�%��%�����
�J��J������)��)��)��)��'��'��'��'��7��7��$��$��)��)��"��"��'��'��#��#��/��/rrc�N�ddl}ddl}ddl}ddl}	|jjd|j�j|j�}|jddg�|j||jj|���}|�yt|j�}d|d<|dk7r|g|��}n|f}|j||j|j|�	�}	|	sy|	j!�\}
}|j#|
�S#t$|j&f$rYywxYw)
Nr�PATHz/sbinz	/usr/sbin)�path�C�LC_ALL)r )�stdout�stderr�env)�io�os�shutil�
subprocess�environ�get�defpath�split�pathsep�extend�which�join�dict�Popen�PIPE�DEVNULL�communicate�BytesIO�OSError�SubprocessError)�command�argsr�r�r�r��	path_dirs�
executabler��procr�r�s            r�_get_command_stdoutr�hs��%�%���J�J�N�N�6�2�:�:�6�<�<�R�Z�Z�H�	����'�;�/�0��\�\�'��
�
���	�0J�\�K�
�����2�:�:�����H�
��5�=�!�)�D�)�G�!�m�G�����'1���'1�'9�'9�$'� �)�����)�)�+�����z�z�&�!�!���Z�/�/�0����s�BD�AD�(#D�D$�#D$c��|dzS)Nlr��macs r�
_is_universalr��s���w�� � rc��t||�}|�yd}|D]�}|j�j�j�}t	t|��D]M}|||vs�	|||�}	t
|	jtd�d�}
t|
�r|
ccS|xs|
}�O��|xsdS#ttf$rY�iwxYw)a�Searches a command's output for a MAC address near a keyword.

    Each line of words in the output is case-insensitively searched for
    any of the given keywords.  Upon a match, get_word_index is invoked
    to pick a word from the line, given the index of the match.  For
    example, lambda i: 0 would get the first word on the line, while
    lambda i: i - 1 would get the word preceding the keyword.
    Nrr#)r��lower�rstripr��ranger7rr5�
_MAC_DELIMr�r8�
IndexError)r�r��keywords�get_word_indexr��first_local_mac�line�words�i�wordr�s           r�_find_mac_near_keywordr��s���!��$�
/�F�
�~���O��=���
�
��#�#�%�+�+�-���s�5�z�"�	=�A��Q�x�8�#�
=� ���!2�3�D��d�l�l�:�s�;�R�@�C�%�S�)�"�
�&5�&<��O�	=�=�$�"�d�"��#�J�/���
�s�#+B/�/C�Cc�.�|jt�}t|�dk7rytr,t	d�|D��sydjd�|D��}n$t	d�|D��sydj|�}	t
|d�S#t$rYywxYw)Nr(c3�NK�|]}dt|�cxkxrdknc���y�w)r/�N�r7��.0�parts  r�	<genexpr>z_parse_mac.<locals>.<genexpr>�s!����9�4�1��D�	�&�Q�&�&�9�s�#%rc3�@K�|]}|jdd����y�w)r��0N)�rjustr�s  rr�z_parse_mac.<locals>.<genexpr>�s����@�$�$�*�*�Q��-�@�s�c3�8K�|]}t|�dk(���y�w)r�Nr�r�s  rr�z_parse_mac.<locals>.<genexpr>�s����4�d�3�t�9��>�4�s�r#)r�r�r7�_MAC_OMITS_LEADING_ZEROES�allr�rr8)r��parts�hexstrs   r�
_parse_macr��s���
�J�J�z�"�E�
�5�z�Q��� �
�9�5�9�9�����@�%�@�@���4�e�4�4�����%�����6�2��������s�<B�	B�Bc�z�t||�}|�y|j�j�j�}	|j	|�}d}|D]H}|j�j�}	||}	t|	�}
|
��5t|
�r|
cS|��G|
}�J|S#t
$rYywxYw#t$rY�gwxYw)aLooks for a MAC address under a heading in a command's output.

    The first line of words in the output is searched for the given
    heading. Words at the same word index as the heading in subsequent
    lines are then examined to see if they look like MAC addresses.
    N)	r��readliner�r��indexr8r�r�r�)r�r��headingr�r��column_indexr�r�r�r�r�s           r�_find_mac_under_headingr��s���!��$�
/�F�
�~����� �'�'�)�/�/�1�H���~�~�g�.���O��
"�����
�#�#�%��	���&�D������;������J��"�!�O�
"����'������	��	�s#�B�4B.�	B+�*B+�.	B:�9B:c�@�d}dD]}td||d��}|s�|cSy)z5Get the hardware address on Unix by running ifconfig.)shwaddrsethersaddress:slladdr)r z-az-av�ifconfigc��|dzS�Nr/r�r�s r�<lambda>z#_ifconfig_getnode.<locals>.<lambda>s
��1�Q�3�rN�r�)r�r�r�s   r�_ifconfig_getnoder��s5��=�H�!���$�Z��x��O����J��rc�,�tdddgd��}|r|Sy)z/Get the hardware address on Unix by running ip.�ip�links
link/etherc��|dzSr�rr�s rr�z_ip_getnode.<locals>.<lambda>s
��!�A�#�rNr�r�s r�_ip_getnoder�	s!��!��v�
��
�
N�C�
��
�rc�j�ddl}ddl}t|d�sy	|j|j	��}t
dd|j|�gd��}|r|St
dd|j|�gd��}|r|St
dd|jd|z�gd	��}|r|Sy#t
$rYywxYw)
z0Get the hardware address on Unix by running arp.rN�
gethostbyname�arpz-anc��y)Nrrr�s rr�z_arp_getnode.<locals>.<lambda>��rc��|dzSr�rr�s rr�z_arp_getnode.<locals>.<lambda>!s
��QR�ST�QT�rz(%s)c��|dzS)Nr�rr�s rr�z_arp_getnode.<locals>.<lambda>'s
��a��c�r)r��socket�hasattrr��gethostnamer�r��fsencode)r�r��ip_addrr�s    r�_arp_getnoders�����6�?�+����&�&�v�'9�'9�';�<��
!�������G�0D�/E�|�
T�C�
��
�!�������G�0D�/E�}�
U�C�
��
�!�������F�W�<L�0M�/N�!�#�C���
���'����s�B&�&	B2�1B2c�"�tdddgd��S)z4Get the hardware address on Unix by running lanscan.�lanscanz-aislan0c��y)Nrrr�s rr�z"_lanscan_getnode.<locals>.<lambda>0r�rr�rrr�_lanscan_getnoder-s��"�)�U�W�I�{�K�Krc��tddd�S)z4Get the hardware address on Unix by running netstat.�netstatz-iansAddress)r�rrr�_netstat_getnoder	2s��#�9�f�j�A�Arc��t�S�z1[DEPRECATED] Get the hardware address on Windows.��_windll_getnoderrr�_ipconfig_getnoder7�
����rc��t�Srrrrr�_netbios_getnoder<rr�generate_time_safe�
UuidCreatec��y)z>[DEPRECATED] Platform-specific functions loaded at import timeNrrrr�_load_system_functionsrOr�rc�V�tr#t�\}}t|��jSy)zBGet the hardware address on Unix using the _uuid extension module.r~N)�_generate_time_saferrK)�	uuid_time�_s  r�
_unix_getnoderSs'���*�,��	�1��)�$�)�)�)�rc�P�tr t�}t|��jSy)zEGet the hardware address on Windows using the _uuid extension module.)rCN)�_UuidCreaterrK)�
uuid_bytess rr
r
Ys"��� �]�
��Z�(�-�-�-�rc�2�ddl}|jd�dzS)zGet a random node ID.rNr.l)�random�getrandbits)rs r�_random_getnoder!_s������b�!�W�-�-rrr�posix�ntc���t�tSttgzD]*}	|�at��dtcxkr
dks�"tcS�,Jdjt���#Y�KxYw)a3Get the hardware address as a 48-bit positive integer.

    The first time this runs, it may launch a separate program, which could
    be quite slow.  If all attempts to obtain the hardware address fail, we
    choose a random 48-bit number with its eighth bit set to 1 as recommended
    in RFC 4122.
    rr*z,_random_getnode() returned invalid value: {})�_node�_GETTERSr!�format)�getters r�getnoder)�ss��
�����o�.�.���	��H�E�
��A��$:�'�$:��L�%;��O�@�G�G��N�N�5��		��s�A"�"A&c���t�0||cxur�)nn&t�\}}	t|�}t	||��Sddl}|j
�}|dzdz}t�|tkr	tdz}|a|�ddl}|jd�}|dz}	|d	z	d
z}
|dz	dz}|d
z}|dz	dz}
|�
t�}t	|	|
||
||fd��S#t$rtj}Y��wxYw)aGenerate a UUID from a host ID, sequence number, and the current time.
    If 'node' is not given, getnode() is used to obtain the hardware
    address.  If 'clock_seq' is given, it is used as the sequence number;
    otherwise a random 14-bit sequence number is chosen.N)rBrr�dl@'Hw�
r/�l��r"r�r.r�r�r'r�)rDrE)rrr8rrr��time_ns�_last_timestamprr r))rKrLr�safely_generatedrr��nanoseconds�	timestamprrFrGrHrJrIs              r�uuid1r2�s!���&�4�9�+D�&9�&;�#�	�#�	'��/�0�G��)�W�5�5���,�,�.�K��s�"�%7�7�I��"�y�O�'C�#�a�'�	��O�����&�&�r�*�	��:�%�H��R��6�)�H� �B��&�0�O���$�M�%��N�d�2���|��y����(�O�,�m�T�C�LM�O�O��/�	'��&�&�G�	'�s�C�C!� C!c��t|t�rt|d�}ddlm}||j|zd��j�}t
|ddd�	�S)
zAGenerate a UUID from the MD5 hash of a namespace UUID and a name.�utf-8r)�md5F)�usedforsecurityNr#r$�rBrE)r:rrrB�hashlibr5�digestr)�	namespacerur5r9s    r�uuid3r;�sU���$����T�7�#���
����$����
�f�h���f�S�b�k�1�-�-rc�B�ttjd�d��S)zGenerate a random UUID.r#rr7)rr��urandomrrr�uuid4r>�s���b�j�j��n�a�0�0rc��t|t�rt|d�}ddlm}||j|z�j�}t
|ddd��S)zCGenerate a UUID from the SHA-1 hash of a namespace UUID and a name.r4r)�sha1Nr#r%r7)r:rrrBr8r@r9r)r:rur@rhs    r�uuid5rA�sJ���$����T�7�#����	���$�&�'�.�.�0�D��d�3�B�i��+�+rc�f�ttttd�}d}tt
ttd�}ddl}|jd��}|jdd	|j�d
d��|jd
dd��|jddd��|j�}||j}|j}|j}|j|vrJ|r|s|j!d|j�d��||vr||n
t#|�}t%|||��yt%|��y)z$Run the uuid command line interface.)r2r;r>rA)r;rA)z@dnsz@urlz@oidz@x500rNz2Generates a uuid using the selected uuid function.)�descriptionz-uz--uuidr>zLThe function to use to generate the uuid. By default uuid4 function is used.)�choices�default�helpz-nz--namespacez�The namespace is a UUID, or '@ns' where 'ns' is a well-known predefined UUID addressed by namespace name. Such as @dns, @url, @oid, and @x500. Only required for uuid3/uuid5 functions.)rFz-Nz--namezVThe name used as part of generating the uuid. Only required for uuid3/uuid5 functions.zIncorrect number of arguments. zO requires a namespace and a name. Run 'python -m uuid -h' for more information.)r2r;r>rA�
NAMESPACE_DNS�
NAMESPACE_URL�
NAMESPACE_OID�NAMESPACE_X500�argparse�ArgumentParser�add_argument�keys�
parse_args�uuidr:ru�errorr�print)	�
uuid_funcs�uuid_namespace_funcs�
namespacesrK�parserr��	uuid_funcr:rus	         r�mainrX�sO������	�J�.������	�J��
�
$�
$�H�%�J�F�
����h�
���0A�7�=��>�����m�C��D�
����h�C��D�����D��4�9�9�%�I����I��9�9�D��y�y�(�(����L�L�1��9�9�+�@�@�
�
.7�*�-D�J�y�)�$�y�/�	�
�i�	�4�(�)�
�i�k�rz$6ba7b810-9dad-11d1-80b4-00c04fd430c8z$6ba7b811-9dad-11d1-80b4-00c04fd430c8z$6ba7b812-9dad-11d1-80b4-00c04fd430c8z$6ba7b814-9dad-11d1-80b4-00c04fd430c8�__main__)NN)?r�r��sys�enumrr�
__author__�platform�_AIX�_LINUX�system�_platform_systemr�r�r�r�r�r�rr9rBr;rrr�r�r�r�r�r�r�rrr	rr�_uuid�getattrrr�has_uuid_generate_time_safe�_has_uuid_generate_time_safe�ImportErrorrrr
r!�_OS_GETTERSrur&r%r)r.r2r;r>rArXrGrHrIrJrrrr�<module>rhsj��,�\
�
�#�+�
��<�<�<�<���D�6��&�x���(���5�(�D��7�*�F�
�
�!����J� $��?N�;��h�*�O���	���d������P/�P/�f�\!� #�F�8!�L���8L�
B�
�
�	(��!�%�)=�t�D���%��t�4�K�#(�#D�#D� �I�*�.�
.�,
�� 1�2�K��\�\�X��$�l�4D�E�K��\�\�W���K�	�#�$�K�$�k�<�#�%5�7�K��7�7�g�����,�H��W�W��_�� �;�.�H��H���O�,��$O�L	.�1�,�.�f�;�<�
��;�<�
��;�<�
��<�=���z���F���a�(��E����K�#'� �	(�s�"$F�
F�F
¿Qué es la limpieza dental de perros? - Clínica veterinaria


Es la eliminación del sarro y la placa adherida a la superficie de los dientes mediante un equipo de ultrasonidos que garantiza la integridad de las piezas dentales a la vez que elimina en profundidad cualquier resto de suciedad.

A continuación se procede al pulido de los dientes mediante una fresa especial que elimina la placa bacteriana y devuelve a los dientes el aspecto sano que deben tener.

Una vez terminado todo el proceso, se mantiene al perro en observación hasta que se despierta de la anestesia, bajo la atenta supervisión de un veterinario.

¿Cada cuánto tiempo tengo que hacerle una limpieza dental a mi perro?

A partir de cierta edad, los perros pueden necesitar una limpieza dental anual o bianual. Depende de cada caso. En líneas generales, puede decirse que los perros de razas pequeñas suelen acumular más sarro y suelen necesitar una atención mayor en cuanto a higiene dental.


Riesgos de una mala higiene


Los riesgos más evidentes de una mala higiene dental en los perros son los siguientes:

  • Cuando la acumulación de sarro no se trata, se puede producir una inflamación y retracción de las encías que puede descalzar el diente y provocar caídas.
  • Mal aliento (halitosis).
  • Sarro perros
  • Puede ir a más
  • Las bacterias de la placa pueden trasladarse a través del torrente circulatorio a órganos vitales como el corazón ocasionando problemas de endocarditis en las válvulas. Las bacterias pueden incluso acantonarse en huesos (La osteomielitis es la infección ósea, tanto cortical como medular) provocando mucho dolor y una artritis séptica).

¿Cómo se forma el sarro?

El sarro es la calcificación de la placa dental. Los restos de alimentos, junto con las bacterias presentes en la boca, van a formar la placa bacteriana o placa dental. Si la placa no se retira, al mezclarse con la saliva y los minerales presentes en ella, reaccionará formando una costra. La placa se calcifica y se forma el sarro.

El sarro, cuando se forma, es de color blanquecino pero a medida que pasa el tiempo se va poniendo amarillo y luego marrón.

Síntomas de una pobre higiene dental
La señal más obvia de una mala salud dental canina es el mal aliento.

Sin embargo, a veces no es tan fácil de detectar
Y hay perros que no se dejan abrir la boca por su dueño. Por ejemplo…

Recientemente nos trajeron a la clínica a un perro que parpadeaba de un ojo y decía su dueño que le picaba un lado de la cara. Tenía molestias y dificultad para comer, lo que había llevado a sus dueños a comprarle comida blanda (que suele ser un poco más cara y llevar más contenido en grasa) durante medio año. Después de una exploración oftalmológica, nos dimos cuenta de que el ojo tenía una úlcera en la córnea probablemente de rascarse . Además, el canto lateral del ojo estaba inflamado. Tenía lo que en humanos llamamos flemón pero como era un perro de pelo largo, no se le notaba a simple vista. Al abrirle la boca nos llamó la atención el ver una muela llena de sarro. Le realizamos una radiografía y encontramos una fístula que llegaba hasta la parte inferior del ojo.

Le tuvimos que extraer la muela. Tras esto, el ojo se curó completamente con unos colirios y una lentilla protectora de úlcera. Afortunadamente, la úlcera no profundizó y no perforó el ojo. Ahora el perro come perfectamente a pesar de haber perdido una muela.

¿Cómo mantener la higiene dental de tu perro?
Hay varias maneras de prevenir problemas derivados de la salud dental de tu perro.

Limpiezas de dientes en casa
Es recomendable limpiar los dientes de tu perro semanal o diariamente si se puede. Existe una gran variedad de productos que se pueden utilizar:

Pastas de dientes.
Cepillos de dientes o dedales para el dedo índice, que hacen más fácil la limpieza.
Colutorios para echar en agua de bebida o directamente sobre el diente en líquido o en spray.

En la Clínica Tus Veterinarios enseñamos a nuestros clientes a tomar el hábito de limpiar los dientes de sus perros desde que son cachorros. Esto responde a nuestro compromiso con la prevención de enfermedades caninas.

Hoy en día tenemos muchos clientes que limpian los dientes todos los días a su mascota, y como resultado, se ahorran el dinero de hacer limpiezas dentales profesionales y consiguen una mejor salud de su perro.


Limpiezas dentales profesionales de perros y gatos

Recomendamos hacer una limpieza dental especializada anualmente. La realizamos con un aparato de ultrasonidos que utiliza agua para quitar el sarro. Después, procedemos a pulir los dientes con un cepillo de alta velocidad y una pasta especial. Hacemos esto para proteger el esmalte.

La frecuencia de limpiezas dentales necesaria varía mucho entre razas. En general, las razas grandes tienen buena calidad de esmalte, por lo que no necesitan hacerlo tan a menudo e incluso pueden pasarse la vida sin requerir una limpieza. Sin embargo, razas pequeñas como el Yorkshire o el Maltés, deben hacérselas todos los años desde cachorros si se quiere conservar sus piezas dentales.

Otro factor fundamental es la calidad del pienso. Algunas marcas han diseñado croquetas que limpian la superficie del diente y de la muela al masticarse.

Ultrasonido para perros

¿Se necesita anestesia para las limpiezas dentales de perros y gatos?

La limpieza dental en perros no es una técnica que pueda practicarse sin anestesia general , aunque hay veces que los propietarios no quieren anestesiar y si tiene poco sarro y el perro es muy bueno se puede intentar…… , pero no se va a poder pulir ni acceder a todas la zona de la boca …. Además los limpiadores dentales van a irrigar agua y hay riesgo de aspiración a vías respiratorias si no se realiza una anestesia correcta con intubación traqueal . En resumen , sin anestesia no se va hacer una correcta limpieza dental.

Tampoco sirve la sedación ya que necesitamos que el animal esté totalmente quieto, y el veterinario tenga un acceso completo a todas sus piezas dentales y encías.

Alimentos para la limpieza dental

Hay que tener cierto cuidado a la hora de comprar determinados alimentos porque no todos son saludables. Algunos tienen demasiado contenido graso, que en exceso puede causar problemas cardiovasculares y obesidad.

Los mejores alimentos para los dientes son aquellos que están elaborados por empresas farmacéuticas y llevan componentes químicos con tratamientos específicos para el diente del perro. Esto implica no solo limpieza a través de la acción mecánica de morder sino también un tratamiento antibacteriano para prevenir el sarro.

Conclusión

Si eres como la mayoría de dueños, por falta de tiempo , es probable que no estés prestando la suficiente atención a la limpieza dental de tu perro. Por eso te animamos a que comiences a limpiar los dientes de tu perro y consideres atender a su higiene bucal con frecuencia.

Estas simples medidas pueden conllevar a que tu perro tenga una vida más larga y mucho más saludable.

Si te resulta imposible introducir un cepillo de dientes a tu perro en la boca, pásate con él por clínica Tus Veterinarios y te explicamos cómo hacerlo.

Necesitas hacer una limpieza dental profesional a tu mascota?
Llámanos al 622575274 o contacta con nosotros

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

¡Hola!