Ë ‚Ö¦iØsãó&—dZddlZddlZddlmZmZdZejdvrdxZZ nddlZej«Z e dk(Ze dk(Z d Z dZ erd Z d Z 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*$r dZ$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 )Ú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/lib64/python3.12/uuid.pyrrNs„à €DØ €FØ�Grrcór—eZdZdZdZ d!ej dœd„Zd„Zd„Z d„Z d „Z d „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«dk7r td«‚|�h|jdd«jdd«}|jd«jdd«}t |«d k7r t d «‚t |d «}|�9t |«d k7r t d «‚|d dd…|dd d…z|ddd…z|ddz}|�Nt |«d k7r t d«‚t|t«sJt|««‚t j|«}|��t |«dk7r t d«‚|\}} } } } } d|cxkrdkst d«‚t d«‚d| cxkrdkst d«‚t d«‚d| cxkrdkst d«‚t d«‚d| cxkrdkst d«‚t d«‚d| cxkrdkst d«‚t d«‚d| cxkrdkst d«‚t d«‚| dz| z}|d z| d!zz| d"zz|d#zz| z}|�%d|cxkrd$d%zkst d&«‚t d&«‚|�9d$|cxkrdkst d'«‚t d'«‚|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__z UUID.__eq__ðó%€Ü �eœTÔ "Ø—8‘8˜uŸy™yÑ(Ð (ÜÐrcó`—t|t«r|j|jkStSrWrXrZs rÚ__lt__z UUID.__lt__øó%€Ü �eœTÔ "Ø—8‘8˜eŸi™iÑ'Ð 'ÜÐrcó`—t|t«r|j|jkDStSrWrXrZs rÚ__gt__z UUID.__gt__ýr`rcó`—t|t«r|j|jkStSrWrXrZs rÚ__le__z UUID.__le__r]rcó`—t|t«r|j|jk\StSrWrXrZs rÚ__ge__z UUID.__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 rrDz UUID.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} |jj d|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««sydj d„|D««}n$t d„|D««sydj |«} t |d«S#t$rYywxYw)Nr(c3óNK—|]}dt|«cxkxrdknc–—Œy­w)r/éN©r7©Ú.0Úparts rÚ z_parse_mac..Ìs"èø€Ð9±5¨4�1œ˜D› Ö& Q×&Ð&±5ùs‚#%rc3ó@K—|]}|jdd«–—Œy­w)rÔó0N)ÚrjustrÖs rrÙz_parse_mac..Îsèø€Ð@¹%°$˜$Ÿ*™* Q¨×-¹%ùs‚c3ó8K—|]}t|«dk(–—Œy­w)rÔNrÕrÖs rrÙz_parse_mac..Ðsèø€Ð4©e d”3�t“9 •>©eù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Úz#_ifconfig_getnode..s€È1ÈQÊ3rN©rÑ)rÊr»rÂs rÚ_ifconfig_getnoderðÿs0€ð=€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.. 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..s€ÐQSrcó —|dzSrìrrís rrîz_arp_getnode..!s €ÐQRÐSTÒQTrz(%s)có —|dzS)NrÔrrís rrîz_arp_getnode..'s€˜a šcr)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Ñ.0s€È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_getnoder2s€ô # 9¨f°jÓ AÐArcó—t«S©z1[DEPRECATED] Get the hardware address on Windows.©Ú_windll_getnoderrrÚ_ipconfig_getnoder 7ó €ô Ó Ðrcó—t«Sr r rrrÚ_netbios_getnoder<rrÚgenerate_time_safeÚ UuidCreatecó—y)z>[DEPRECATED] Platform-specific functions loaded at import timeNrrrrÚ_load_system_functionsrOs�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(Šsn€ô Ð܈ äœ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} |d z 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_timestamprrr()rKrLrÚsafely_generatedrrŒÚ nanosecondsÚ timestamprrFrGrHrJrIs rÚuuid1r1¢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Úhashlibr4Údigestr)Ú namespacerur4r8s rÚuuid3r:ÈsU€ä�$œÔÜ�T˜7Ó#ˆÝÙ Ø�‰˜$ÑØô÷ �fƒhð ô �f˜S˜b�k¨1Ô -Ð-rcóB—ttjd«d¬«S)zGenerate a random UUID.r#rr6)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.r3r)Úsha1Nr#r%r6)r:rrrBr7r?r8r)r9rur?rhs rÚuuid5r@×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.)r1r:r=r@)r:r@)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.)rEz-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.)r1r:r=r@Ú NAMESPACE_DNSÚ NAMESPACE_URLÚ NAMESPACE_OIDÚNAMESPACE_X500ÚargparseÚArgumentParserÚ add_argumentÚkeysÚ parse_argsÚuuidr9ruÚerrorrÚprint) Ú uuid_funcsÚuuid_namespace_funcsÚ namespacesrJÚparserr»Ú uuid_funcr9rus rÚmainrWà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õrrrr rÚ_uuidÚgetattrrrÚhas_uuid_generate_time_safeÚ_has_uuid_generate_time_safeÚ ImportErrorrrr r Ú _OS_GETTERSrur%r$r(r-r1r:r=r@rWrFrGrHrIrrrrÚrgsjðñ,ó\ Û ç#ð+€ ð‡<�<Ð<Ñ<ØÐ€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