eqRSrSSKrSSKrSSKJrJr Sr\RS;aS=rr O4\RS:XaSr SrOSSKr\R"5r \ S :Hr\ S ;r S r Sr \(aS r Sr /S Qurrrr\r\r\"\5"SS55r"SS5rSrSrSrSrSrSrSrSrSr Sr!SSK"r"\#"\"SS5r$\#"\"SS5r%Sr'Sr(S r)\ (a\\/r*O;\RS!:Xa\\\!/r*O%\RS":Xa/r*O\(a\!/r*O\\\\!\ /r*\RVS#:Xa\'/\*-r,O\RVS$:Xa\(/\*-r,O\*r,Sq-S%r.Sq/S0S&jr0S'r1S(r2S)r3S*r4\"S+5r5\"S,5r6\"S-5r7\"S.5r8\9S/:Xa\4"5 gg!\&a Sr"Sr$Sr%Nf=f)1aQUUID 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 >wasiwin32darwin emscriptenFlinuxTAIX)LinuxAndroid:.)zreserved for NCS compatibilityzspecified in RFC 4122z$reserved for Microsoft compatibilityzreserved for future definitionc \rSrSrSrSrSrSrg)SafeUUIDQrN)__name__ __module__ __qualname____firstlineno__safeunsafeunknown__static_attributes__r*/opt/imh/python3.13/lib/python3.13/uuid.pyrrQs D FGrrc~\rSrSrSrSrS#\RS.SjjrSr Sr S r S r S r S rS rSrSrSrSrSr\S5r\S5r\S5r\S5r\S5r\S5r\S5r\S5r\S5r\S5r\S5r \S5r!\S5r"\S 5r#\S!5r$S"r%g)$UUIDXa 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). )intis_safe __weakref__N)r"cXX4U/RS5S:wa [S5eUbiURSS5RSS5nURS5RSS5n[ U5S :wa [ S 5e[ US 5nUb:[ U5S :wa [ S 5eUS SS2USS S2-USSS2-USS-nUbT[ U5S :wa [ S5e[U[5(d[U55e[ RU5nUb[ U5S:wa [ S5eUupn pn SUs=::aS:d O [ S5eSU s=::aS:d O [ S5eSU s=::aS:d O [ S5eSU s=::aS:d O [ S5eSU s=::aS:d O [ S5eSU s=::aS:d O [ S5eU S-U -nUS -U S!--U S"--US#--U -nUbSUs=::a S$S%-:d O [ S&5eUb0S$Us=::aS::d O [ S'5eUS(-nUS)-nUS*-nXVS+--n[RUS,U5 [RUS-U5 g).aCreate 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). NzGone of the hex, bytes, bytes_le, fields, or int arguments must be givenzurn:zuuid:z{}- z$badly formed hexadecimal UUID stringz bytes_le is not a 16-char stringrzbytes is not a 16-char stringzfields 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@0z*int is out of range (need a 128-bit value)zillegal version numberl lLr!r") count TypeErrorreplacestriplen ValueErrorint_ isinstancebytes_repr from_bytesobject __setattr__)selfhexbytesbytes_lefieldsr!versionr"time_lowtime_midtime_hi_versionclock_seq_hi_variant clock_seq_lownode clock_seqs r__init__ UUID.__init__s@ # . 4 4T :a ?=> > ?++fb)11'2>C))D/))#r2C3x2~ !GHHsB-C  8}" !CDDcg2g&#c"*)==c#bj)*,4QRL9E  5zR !@AAeV,, 9d5k 9,//%(C  6{a !:;;:@ 8X !$(5( !MNN(5( !MNN/%/ !MNN,3t3 !MNN ,, !MNN$u$ !MNN-2mCINx2~6#r)+.72o?AEFC ?$af$ !MNN  $1$ !9:: ? "C < C ? "C b= C4,4G4rcSUR0nUR[R:waURRUS'U$Nr!r")r!r"rrvalue)rFds r __getstate__UUID.__getstate__s< DHH  <<8++ + <<--AiLrc[RUSUS5 [RUSSU;a[US55 g[R5 grV)rDrErr)rFstates r __setstate__UUID.__setstate__sQ4e 54'50$E)$45 H6>6F6F Hrcj[U[5(aURUR:H$[$Nr@rr!NotImplementedrFothers r__eq__ UUID.__eq__( eT " "88uyy( (rcj[U[5(aURUR:$[$r`rarcs r__lt__ UUID.__lt__( eT " "88eii' 'rcj[U[5(aURUR:$[$r`rarcs r__gt__ UUID.__gt__rkrcj[U[5(aURUR:*$[$r`rarcs r__le__ UUID.__le__rgrcj[U[5(aURUR:$[$r`rarcs r__ge__ UUID.__ge__ rgrc,[UR5$r`)hashr!rFs r__hash__ UUID.__hash__sDHH~rcUR$r`r!rws r__int__ UUID.__int__s xxrcPURR<S[U5<S3$)N()) __class__rstrrws r__repr__ UUID.__repr__s>>22CI>>rc[S5e)NzUUID objects are immutable)r:)rFnamerWs rrEUUID.__setattr__s455rc hSUR-nUSS<SUSS<SUSS<SUSS<SUSS<3 $)N%032xr-r' r)r{)rFrGs r__str__ UUID.__str__sE  GS2YBr C2JBCB Brc8URRS5$)Nr))r!to_bytesrws rrH UUID.bytes sxx  $$rcZURnUSSS2USSS2-USSS2-USS-$)Nr*rr+r,r-rH)rFrHs rrI UUID.bytes_le$sK cg2gs3rz!22U3s2:5FFab  rcURURURURURUR 4$r`)rLrMrNrOrPrQrws rrJ UUID.fields*s: t}}d.B.B))4+=+=tyyJ Jrc URS- $)Nr1r{rws rrL UUID.time_low/sxx2~rc&URS- S-$)Nr2r{rws rrM UUID.time_mid3B&((rc&URS- S-$)Nr3rr{rws rrNUUID.time_hi_version7rrc&URS- S-$)N8r{rws rrOUUID.clock_seq_hi_variant;B$&&rc&URS- S-$)Nr4rr{rws rrPUUID.clock_seq_low?rrc`URS-S-URS--UR-$)Nr4r()rNrMrLrws rtime UUID.timeCs7&&/B6"$&(, 6 7rc@URS-S-UR-$)N?r-)rOrPrws rrRUUID.clock_seqHs(++d2q8""# $rc URS-$)Nlr{rws rrQ UUID.nodeMsxx.((rc SUR-$)Nrr{rws rrGUUID.hexQs!!rcS[U5-$)Nz urn:uuid:)rrws rurnUUID.urnUsSY&&rcURS-(d[$URS-(d[$URS-(d[$[$)Nr7ll)r! RESERVED_NCSRFC_4122RESERVED_MICROSOFTRESERVED_FUTURErws rvariant UUID.variantYs=xx<( \*O\*% %" "rcbUR[:Xa[URS- S-5$g)Nr8)rrr!rws rrK UUID.versionds- <<8 #B#-. . $rr)NNNNNN)&rrrr__doc__ __slots__rrrSrYr]rerirmrprsrxr|rrErpropertyrHrIrJrLrMrNrOrPrrRrQrGrrrKrrrrrrXs1f2ICG)-T5"*"2"2T5lH    ?6B %% JJ))))''''77$$))""''##//rrcNSSKnSSKnSSKnSSKnURR SUR 5RUR5nURSS/5 URXRRU5S9nUcg[UR5nSUS'US:waU/UQ7nOU4nURUURURUS 9n U (dgU R!5upUR#U 5$![$UR&4a gf=f) NrPATHz/sbinz /usr/sbin)pathCLC_ALL)r&)stdoutstderrenv)ioosshutil subprocessenvirongetdefpathsplitpathsepextendwhichjoindictPopenPIPEDEVNULL communicateBytesIOOSErrorSubprocessError) commandargsrrrr path_dirs executablerprocrrs r_get_command_stdoutrks%%JJNN62::6< IndexError) rrkeywordsget_word_indexrfirst_local_maclinewordsiwordrs r_find_mac_near_keywordrs! /F ~O ##%++-s5z"Ax8# = !23Ddll:s;R@C%S))" &5&<O#$  "d"#J/  s%*CCCcPUR[5n[U5S:wag[(a1[ SU55(dgSR SU55nO)[ SU55(dgSR U5n[ US5$![a gf=f)Nr.c3^# UH#nS[U5s=:*=(a S:*Os v M% g7f)r5Nr=.0parts r _parse_mac..s$9541D &&Q&&5s+-rc3D# UHoRSS5v M g7f)r0N)rjustrs rrrs@%$**Q--%s c3># UHn[U5S:Hv M g7f)rNrrs rrrs4ed3t9>esr))rrr=_MAC_OMITS_LEADING_ZEROESallrr!r>)rpartshexstrs r _parse_macrs JJz "E 5zQ  95999 @%@@4e444 %62 s B B%$B%c[X5nUcgUR5R5R5nUR U5nSnUHQnUR5R5nXn [U 5n U cM6[U 5(aU s $UbMOU nMS U$![ a gf=f![ a Mtf=f)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) rreadlinerrindexr>rrr) rrheadingrr column_indexrrrrrs r_find_mac_under_headingr s! /F ~ '')//1H~~g. O ##% &D ;    J  "!O '    s#B)4B9) B65B69 CCcLSnSHn[SXS5nU(dMUs $ g)z5Get the hardware address on Unix by running ifconfig.)shwaddrsethersaddress:slladdr)r&z-az-avifconfigc US-$Nr5rrs r#_ifconfig_getnode..s1Q3rNr)rrrs r_ifconfig_getnoders0=H!$ZO 3J" rc6[SSS/S5nU(aU$g)z/Get the hardware address on Unix by running ip.iplinks link/etherc US-$rrrs rr_ip_getnode..s!A#rNrrs r _ip_getnoder s! !v  NC  rcSSKnSSKn[US5(dgURUR 55n[ SSUR"U5/S5nU(aU$[ SSUR"U5/S5nU(aU$[ SSUR"SU-5/S 5nU(aU$g![ a gf=f) z0Get the hardware address on Unix by running arp.rN gethostbynamearpz-ancg)Nrrrs rr_arp_getnode..sQSrc US-$rrrs rrr$s QRSTQTrz(%s)c US-$)Nrrrs rrr*sacr)rsockethasattrr gethostnamerrfsencode)rr"ip_addrrs r _arp_getnoder's 6? + +&&v'9'9';< ! G0D/E| TC   ! G0D/E} UC   ! FW.3srrrrr_lanscan_getnoder,0s ")UWI{ KKrc[SSS5$)z4Get the hardware address on Unix by running netstat.netstatz-iansAddress)r rrr_netstat_getnoder/5s #9fj AArgenerate_time_safe UuidCreatecX[(a[5up[US9R$g)zBGet the hardware address on Unix using the _uuid extension module.rN)_generate_time_saferrQ) uuid_time_s r _unix_getnoder6Fs(*, )$)))rcT[(a[5n[US9R$g)zEGet the hardware address on Windows using the _uuid extension module.)rIN) _UuidCreaterrQ) uuid_bytess r_windll_getnoder:Ls${ ] Z(---rc2SSKnURS5S-$)zGet a random node ID.rNr4l)random getrandbits)r<s r_random_getnoder>Rs   b !W --rrrposixntc[b[$[[/-H1nU"5q[cMS[s=::aS:dM'[s $ M3 SR[55e! MT=f)aGet 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. rr0z,_random_getnode() returned invalid value: {})_node_GETTERSr>format)getters rgetnoderF}sn  o.. HE  A$:'$:L%; /O@GGNN5   s A++A0c[b,Xs=Lac$O O![5up#[U5n[ X$S9$SSKnUR 5nUS-S-n[bU[::a [S-nUqUcSSKnURS5nUS-n US - S -n US - S -n US -n US- S-n Uc [5n[ XU XU4SS9$![a [RnNf=f)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)rHr"rdl@'Hw r5lr(rr4rrr-r)rJrK) r3rr>rrrtime_ns_last_timestampr<r=rF)rQrRr4safely_generatedr"r nanoseconds timestampr<rLrMrNrPrOs ruuid1rOs&4+D+D&9&;#  '/0G)55,,.Ks"%77I"yO'C#a' O&&r* :%HR6)H B&0O$M%Nd2 |y O,TCLM OO/ '&&G 's CCCc[U[5(a [US5nSSKJn U"URU-SS9R 5n[ USSSS 9$) zAGenerate a UUID from the MD5 hash of a namespace UUID and a name.utf-8r)md5F)usedforsecurityNr)r*rHrK)r@rrHhashlibrRdigestr) namespacerrRrVs ruuid3rXsX$T7# $ fh  fSbk1 --rc>[[R"S5SS9$)zGenerate a random UUID.r)r%rT)rrurandomrrruuid4r[s bjjna 00rc[U[5(a [US5nSSKJn U"URU-5R 5n[ USSSS9$)zCGenerate a UUID from the SHA-1 hash of a namespace UUID and a name.rQr)sha1Nr)r+rT)r@rrHrUr]rVr)rWrr]rvs ruuid5r^sM$T7#  $& ' . . 0D d3Bi ++rcb[[[[S.nSn[[ [ [S.nSSKnURSS9nURSS UR5S S S 9 URS SSS9 URSSSS9 UR5nXRnURnURnURU;aSU(aU(dUR!SURS35 Xr;aX'O [#U5n[%U"Xx55 g[%U"55 g)z$Run the uuid command line interface.)rOrXr[r^)rXr^)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.)choicesdefaulthelpz-nz --namespacezThe 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.)rcz-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.)rOrXr[r^ NAMESPACE_DNS NAMESPACE_URL NAMESPACE_OIDNAMESPACE_X500argparseArgumentParser add_argumentkeys parse_argsuuidrWrerrorrprint) uuid_funcsuuid_namespace_funcs namespacesrhparserr uuid_funcrWrs rmainrusG J . J  $ $H%JF h 0A7=> mCD  hCD    D99%II 99D yy(( LL199+@@  .7-DJ)$y/  i () ikrz$6ba7b810-9dad-11d1-80b4-00c04fd430c8z$6ba7b811-9dad-11d1-80b4-00c04fd430c8z$6ba7b812-9dad-11d1-80b4-00c04fd430c8z$6ba7b814-9dad-11d1-80b4-00c04fd430c8__main__)NN):rrsysenumrr __author__platform_AIX_LINUXsystem_platform_systemrrrrrrr!r?rHrArrrrrrr rrr'r,r/_uuidgetattrr3r8 ImportErrorr6r:r> _OS_GETTERSrrCrBrFrKrOrXr[r^rurdrerfrgrrrrrs],\ #+ <<<<D6\\W F D(5(D#77F  !J $?N; h*O  d P/P/f\! #F8!L8L B!%)=tD%t4K* . .,  12K\\X$l4DEK\\WK #$K$k<#%57K77g,HWW_ ;.HH O,$OL .1,.f;< ;< ;< <= zFW EKs8F F&%F&