/snap/core24/1643/usr/lib/python3.12/__pycache__
NameSizeModeActions
abc.cpython-312.pyc80550644editdlrm
aifc.cpython-312.pyc428630644editdlrm
antigravity.cpython-312.pyc10030644editdlrm
argparse.cpython-312.pyc1016820644editdlrm
ast.cpython-312.pyc1002790644editdlrm
base64.cpython-312.pyc244080644editdlrm
bdb.cpython-312.pyc373590644editdlrm
bisect.cpython-312.pyc36410644editdlrm
bz2.cpython-312.pyc151330644editdlrm
calendar.cpython-312.pyc396210644editdlrm
cgi.cpython-312.pyc402280644editdlrm
cgitb.cpython-312.pyc173320644editdlrm
chunk.cpython-312.pyc73100644editdlrm
cmd.cpython-312.pyc186190644editdlrm
code.cpython-312.pyc130510644editdlrm
codecs.cpython-312.pyc422740644editdlrm
codeop.cpython-312.pyc69160644editdlrm
colorsys.cpython-312.pyc46420644editdlrm
compileall.cpython-312.pyc204970644editdlrm
configparser.cpython-312.pyc635820644editdlrm
contextlib.cpython-312.pyc303760644editdlrm
contextvars.cpython-312.pyc2610644editdlrm
copy.cpython-312.pyc98000644editdlrm
copyreg.cpython-312.pyc74140644editdlrm
cProfile.cpython-312.pyc85930644editdlrm
crypt.cpython-312.pyc53610644editdlrm
csv.cpython-312.pyc177880644editdlrm
dataclasses.cpython-312.pyc446780644editdlrm
datetime.cpython-312.pyc4090644editdlrm
decimal.cpython-312.pyc4060644editdlrm
difflib.cpython-312.pyc754990644editdlrm
dis.cpython-312.pyc345600644editdlrm
doctest.cpython-312.pyc1056860644editdlrm
enum.cpython-312.pyc807080644editdlrm
filecmp.cpython-312.pyc146610644editdlrm
fileinput.cpython-312.pyc202800644editdlrm
fnmatch.cpython-312.pyc64950644editdlrm
fractions.cpython-312.pyc366670644editdlrm
ftplib.cpython-312.pyc426360644editdlrm
functools.cpython-312.pyc405060644editdlrm
genericpath.cpython-312.pyc68220644editdlrm
getopt.cpython-312.pyc83630644editdlrm
getpass.cpython-312.pyc68500644editdlrm
gettext.cpython-312.pyc221510644editdlrm
glob.cpython-312.pyc98410644editdlrm
graphlib.cpython-312.pyc103270644editdlrm
gzip.cpython-312.pyc320150644editdlrm
hashlib.cpython-312.pyc80870644editdlrm
heapq.cpython-312.pyc179560644editdlrm
hmac.cpython-312.pyc106980644editdlrm
imaplib.cpython-312.pyc628890644editdlrm
imghdr.cpython-312.pyc69440644editdlrm
inspect.cpython-312.pyc1334460644editdlrm
io.cpython-312.pyc41390644editdlrm
ipaddress.cpython-312.pyc907620644editdlrm
keyword.cpython-312.pyc10410644editdlrm
linecache.cpython-312.pyc64010644editdlrm
locale.cpython-312.pyc595360644editdlrm
lzma.cpython-312.pyc158550644editdlrm
mailbox.cpython-312.pyc1116180644editdlrm
mailcap.cpython-312.pyc111550644editdlrm
mimetypes.cpython-312.pyc241850644editdlrm
modulefinder.cpython-312.pyc279440644editdlrm
netrc.cpython-312.pyc89030644editdlrm
nntplib.cpython-312.pyc449390644editdlrm
ntpath.cpython-312.pyc260330644editdlrm
nturl2path.cpython-312.pyc30340644editdlrm
numbers.cpython-312.pyc139670644editdlrm
opcode.cpython-312.pyc147160644editdlrm
operator.cpython-312.pyc173640644editdlrm
optparse.cpython-312.pyc675460644editdlrm
os.cpython-312.pyc434740644editdlrm
pathlib.cpython-312.pyc620980644editdlrm
pdb.cpython-312.pyc849190644editdlrm
pickle.cpython-312.pyc761760644editdlrm
pickletools.cpython-312.pyc811280644editdlrm
pipes.cpython-312.pyc109140644editdlrm
pkgutil.cpython-312.pyc199590644editdlrm
platform.cpython-312.pyc416000644editdlrm
plistlib.cpython-312.pyc412860644editdlrm
poplib.cpython-312.pyc184460644editdlrm
posixpath.cpython-312.pyc182360644editdlrm
pprint.cpython-312.pyc294740644editdlrm
profile.cpython-312.pyc225400644editdlrm
pstats.cpython-312.pyc379220644editdlrm
pty.cpython-312.pyc73630644editdlrm
pyclbr.cpython-312.pyc148870644editdlrm
pydoc.cpython-312.pyc1429550644editdlrm
py_compile.cpython-312.pyc100780644editdlrm
queue.cpython-312.pyc147320644editdlrm
quopri.cpython-312.pyc93230644editdlrm
random.cpython-312.pyc331530644editdlrm
reprlib.cpython-312.pyc99090644editdlrm
rlcompleter.cpython-312.pyc82820644editdlrm
runpy.cpython-312.pyc143850644editdlrm
sched.cpython-312.pyc77350644editdlrm
secrets.cpython-312.pyc25560644editdlrm
selectors.cpython-312.pyc261280644editdlrm
shelve.cpython-312.pyc129130644editdlrm
shlex.cpython-312.pyc141620644editdlrm
shutil.cpython-312.pyc681130644editdlrm
signal.cpython-312.pyc44480644editdlrm
site.cpython-312.pyc290630644editdlrm
sitecustomize.cpython-312.pyc3000644editdlrm
smtplib.cpython-312.pyc482210644editdlrm
sndhdr.cpython-312.pyc107120644editdlrm
socket.cpython-312.pyc418170644editdlrm
socketserver.cpython-312.pyc342580644editdlrm
sre_compile.cpython-312.pyc6250644editdlrm
sre_constants.cpython-312.pyc6280644editdlrm
sre_parse.cpython-312.pyc6210644editdlrm
ssl.cpython-312.pyc630110644editdlrm
stat.cpython-312.pyc52310644editdlrm
statistics.cpython-312.pyc554230644editdlrm
string.cpython-312.pyc114820644editdlrm
stringprep.cpython-312.pyc251600644editdlrm
struct.cpython-312.pyc3250644editdlrm
subprocess.cpython-312.pyc791870644editdlrm
sunau.cpython-312.pyc254230644editdlrm
symtable.cpython-312.pyc187810644editdlrm
sysconfig.cpython-312.pyc300010644editdlrm
tabnanny.cpython-312.pyc121560644editdlrm
tarfile.cpython-312.pyc1233880644editdlrm
telnetlib.cpython-312.pyc284230644editdlrm
tempfile.cpython-312.pyc473390644editdlrm
textwrap.cpython-312.pyc182930644editdlrm
this.cpython-312.pyc14080644editdlrm
threading.cpython-312.pyc653460644editdlrm
timeit.cpython-312.pyc148640644editdlrm
token.cpython-312.pyc35570644editdlrm
tokenize.cpython-312.pyc247750644editdlrm
trace.cpython-312.pyc330240644editdlrm
traceback.cpython-312.pyc515230644editdlrm
tracemalloc.cpython-312.pyc269070644editdlrm
tty.cpython-312.pyc26680644editdlrm
turtle.cpython-312.pyc1846320644editdlrm
types.cpython-312.pyc149390644editdlrm
typing.cpython-312.pyc1418600644editdlrm
uu.cpython-312.pyc78160644editdlrm
uuid.cpython-312.pyc330070644editdlrm
warnings.cpython-312.pyc237920644editdlrm
wave.cpython-312.pyc320840644editdlrm
weakref.cpython-312.pyc313480644editdlrm
webbrowser.cpython-312.pyc263530644editdlrm
xdrlib.cpython-312.pyc118410644editdlrm
zipapp.cpython-312.pyc99770644editdlrm
zipimport.cpython-312.pyc244750644editdlrm
_aix_support.cpython-312.pyc47590644editdlrm
_collections_abc.cpython-312.pyc459120644editdlrm
_compat_pickle.cpython-312.pyc72210644editdlrm
_compression.cpython-312.pyc74970644editdlrm
_distutils_system_mod.cpython-312.pyc78180644editdlrm
_markupbase.cpython-312.pyc122790644editdlrm
_osx_support.cpython-312.pyc177310644editdlrm
_pydatetime.cpython-312.pyc941930644editdlrm
_pydecimal.cpython-312.pyc2278070644editdlrm
_pyio.cpython-312.pyc1102690644editdlrm
_pylong.cpython-312.pyc99830644editdlrm
_py_abc.cpython-312.pyc70540644editdlrm
_sitebuiltins.cpython-312.pyc47600644editdlrm
_strptime.cpython-312.pyc241160644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-312.pyc586510644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-312.pyc586450644editdlrm
_threading_local.cpython-312.pyc82950644editdlrm
_weakrefset.cpython-312.pyc117510644editdlrm
__future__.cpython-312.pyc47040644editdlrm
__hello__.cpython-312.pyc8700644editdlrm
Edit: /snap/core24/1643/usr/lib/python3.12/__pycache__/uuid.cpython-312.pyc (33007B)
Цis&dZddlZddlZddlmZmZdZejdvrdxZZ nddlZejZ e dk(Ze dk(Z d Z dZ erd Z d Z gd \ZZZZeZeZeeGd dZGddZdZdZdZdZdZdZdZdZdZ dZ!dZ"dZ# ddl$Z$e%e$ddZ&e%e$ddZ'e$jPZ)dZ+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<ed0Z=e>d1k(re9yy#e*$r dZ$dZ&dZ'dZ)YwxYw)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 )win32darwin emscriptenwasiFAIXLinux:.T)zreserved for NCS compatibilityzspecified in RFC 4122z$reserved for Microsoft compatibilityzreserved for future definitionceZdZdZdZdZy)SafeUUIDrN)__name__ __module__ __qualname__safeunsafeunknown/usr/lib/python3.12/uuid.pyrrNs D FGrrcreZdZdZdZ d!ej ddZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZedZedZedZedZedZedZedZedZedZedZedZedZ edZ!edZ"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). )intis_safe __weakref__N)rc||||||gjddk7r td|h|jddjdd}|jdjdd}t |d k7r t d t |d }|9t |d k7r t d |d dd|dd dz|dddz|ddz}|Nt |d k7r t dt|tsJt|t j|}|t |dk7r t d|\}} } } } } d|cxkrdkst dt dd| cxkrdkst dt dd| cxkrdkst dt dd| cxkrdkst dt dd| cxkrdkst dt dd| cxkrdkst dt 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). 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 lLrr) count TypeErrorreplacestriplen ValueErrorint_ isinstancebytes_repr from_bytesobject __setattr__)selfhexbytesbytes_lefieldsrversionrtime_lowtime_midtime_hi_versionclock_seq_hi_variant clock_seq_lownode clock_seqs r__init__z 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 !:;;:@ 8Xx !=$(5( !MNN) !MNN(5( !MNN) !MNN/%/ !MNN0 !MNN,3t3 !MNN4 !MNN ,, !MNN- !MNN$u$ !MNN% !MNN-2mCINx2~6#r)+.72o?AEFC ?$af$ !MNN% !MNN  $1$ !9::% !9:: ? "C < C ? "C 7b= C4,4G4rcd|ji}|jtjk7r|jj|d<|SNrr)rrrrvalue)r@ds r __getstate__zUUID.__getstate__s< DHH  <<8++ + <<--AiLrctj|d|dtj|dd|vrt|dytjyrO)r>r?rr)r@states r __setstate__zUUID.__setstate__sQ4e 54'50$E)$45 H6>6F6F Hrc`t|tr|j|jk(StSNr:rrNotImplementedr@others r__eq__z UUID.__eq__% eT "88uyy( (rc`t|tr|j|jkStSrWrXrZs r__lt__z UUID.__lt__% eT "88eii' 'rc`t|tr|j|jkDStSrWrXrZs r__gt__z UUID.__gt__r`rc`t|tr|j|jkStSrWrXrZs r__le__z UUID.__le__r]rc`t|tr|j|jk\StSrWrXrZs r__ge__z UUID.__ge__r]rc,t|jSrW)hashrr@s r__hash__z UUID.__hash__ sDHH~rc|jSrWrris r__int__z UUID.__int__s xxrcL|jjdt|dS)N()) __class__rstrris r__repr__z UUID.__repr__s>>22CI>>rctd)NzUUID objects are immutable)r4)r@namerPs rr?zUUID.__setattr__s455rc ^d|jz}|ddd|ddd|ddd|ddd|dd S)N%032xr'r! r#rl)r@rAs r__str__z UUID.__str__sE  GS2YBr C2JBCB Brc8|jjdS)Nr#)rto_bytesris rrBz UUID.bytessxx  $$rcZ|j}|ddd|dddz|dddz|ddzS)Nr$rr%r&r'rB)r@rBs rrCz UUID.bytes_le!sK cg2gs3rz!22U3s2:5FFab  rc|j|j|j|j|j|j fSrW)rFrGrHrIrJrKris rrDz UUID.fields's: t}}d.B.B))4+=+=tyyJ Jrc |jdz S)Nr+rlris rrFz UUID.time_low,sxx2~rc&|jdz dzS)Nr,rlris rrGz UUID.time_mid0B&((rc&|jdz dzS)Nr-rrlris rrHzUUID.time_hi_version4rrc&|jdz dzS)N8rlris rrIzUUID.clock_seq_hi_variant8B$&&rc&|jdz dzS)Nr.rrlris rrJzUUID.clock_seq_low<rrc`|jdzdz|jdzz|jzS)Nr.r")rHrGrFris rtimez UUID.time@s7&&/B6"$&(, 6 7rc@|jdzdz|jzS)N?r')rIrJris rrLzUUID.clock_seqEs(++d2q8""# $rc |jdzS)Nlrlris rrKz UUID.nodeJsxx.((rc d|jzS)Nrwrlris rrAzUUID.hexNs!!rcdt|zS)Nz urn:uuid:)rrris rurnzUUID.urnRsSY&&rc|jdzstS|jdzstS|jdzstStS)Nr1ll)r RESERVED_NCSRFC_4122RESERVED_MICROSOFTRESERVED_FUTUREris rvariantz UUID.variantVs=xx<( \*O\*% %" "rc`|jtk(rt|jdz dzSy)Nr2)rrrris rrEz UUID.versionas- <<8 #B#-. . $r)NNNNNN)$rrr__doc__ __slots__rrrMrRrUr\r_rbrdrfrjrmrsr?rzpropertyrBrCrDrFrGrHrIrJrrLrKrArrrErrrrrUs1f2ICG)-T5"*"2"2T5lH    ?6B %% JJ))))''''77$$))""''##//rrcNddl}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) NrPATHz/sbinz /usr/sbin)pathCLC_ALL)r )stdoutstderrenv)ioosshutil subprocessenvirongetdefpathsplitpathsepextendwhichjoindictPopenPIPEDEVNULL communicateBytesIOOSErrorSubprocessError) commandargsrrrr path_dirs executablerprocrrs r_get_command_stdoutrhs%%JJNN62::6<z_parse_mac..s!941D &Q&&9s#%rc3@K|]}|jddyw)r0N)rjustrs rrz_parse_mac..s@$$**Q-@sc38K|]}t|dk(yw)rNrrs rrz_parse_mac..s4d3t9>4sr#)rrr7_MAC_OMITS_LEADING_ZEROESallrrr8)rpartshexstrs r _parse_macrs JJz "E 5zQ 9599 @%@@4e44 %62 s< B BBczt||}|y|jjj} |j |}d}|D]H}|jj} ||} t| } | 5t| r| cS|G| }J|S#t $rYywxYw#t $rYgwxYw)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) rreadlinerrindexr8rrr) rrheadingrr column_indexrrrrrs r_find_mac_under_headingrs!$ /F ~ '')//1H~~g. O " ##% &D ;   J  "!O " '    s#B4B. 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-avifconfigc |dzSNr/rrs rz#_ifconfig_getnode..s 1Q3rNr)rrrs r_ifconfig_getnoders5=H!$ZxO J rc,tdddgd}|r|Sy)z/Get the hardware address on Unix by running ip.iplinks link/etherc |dzSrrrs rrz_ip_getnode.. s !A#rNrrs r _ip_getnoder s! !v  NC  rcjddl}ddl}t|dsy |j|j }t dd|j|gd}|r|St dd|j|gd}|r|St dd|jd|zgd }|r|Sy#t $rYywxYw) z0Get the hardware address on Unix by running arp.rN gethostbynamearpz-ancy)Nrrrs rrz_arp_getnode..rc |dzSrrrs rrz_arp_getnode..!s QRSTQTrz(%s)c |dzS)Nrrrs rrz_arp_getnode..'s acr)rsockethasattrr gethostnamerrfsencode)rrip_addrrs r _arp_getnoders 6? +&&v'9'9';< !  G0D/E| TC   !  G0D/E} UC   !  FW.0rrrrrr_lanscan_getnoder-s ")UWI{ KKrctdddS)z4Get the hardware address on Unix by running netstat.netstatz-iansAddress)rrrr_netstat_getnoder 2s #9fj AArctSz1[DEPRECATED] Get the hardware address on Windows._windll_getnoderrr_ipconfig_getnoder7   rctSr r rrr_netbios_getnoder<rrgenerate_time_safe UuidCreatecy)z>[DEPRECATED] Platform-specific functions loaded at import timeNrrrr_load_system_functionsrOrrcVtr#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)$)))rcPtr t}t|jSy)zEGet the hardware address on Windows using the _uuid extension module.)rCN) _UuidCreaterrK) uuid_bytess rr r Ys" ] Z(---rc2ddl}|jddzS)zGet a random node ID.rNr.l)random getrandbits)rs r_random_getnoder!_s   b !W --rrrposixntcttSttgzD]*} |atdtcxkr dks"tcS,Jdjt#YKxYw)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 rgetnoder)ss  o.. HE  A$:'$:L%; O@GGNN5   s A""A&ct0||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 | | | | | |fdS#t$rtj}YwxYw)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)rBrrdl@'Hw r/lr"rr.rrr'r)rDrE) rrr8rrrtime_ns_last_timestamprr r))rKrLrsafely_generatedrr nanoseconds timestamprrFrGrHrJrIs ruuid1r2s!&49+D&9&;# # '/0G)W55,,.Ks"%77I"yO'C#a' O&&r* :%HR6)H B&0O$M%Nd2 |y (O,mTCLM OO/ '&&G 's CC! C!ct|tr t|d}ddlm}||j|zdj }t |ddd S) zAGenerate a UUID from the MD5 hash of a namespace UUID and a name.utf-8r)md5F)usedforsecurityNr#r$rBrE)r:rrrBhashlibr5digestr) namespacerur5r9s ruuid3r;sU$T7# $ fh  fSbk1 --rcBttjddS)zGenerate a random UUID.r#rr7)rrurandomrrruuid4r>s bjjna 00rct|tr t|d}ddlm}||j|zj }t |dddS)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 ruuid5rAsJ$T7#  $& ' . . 0D d3Bi ++rcfttttd}d}tt t td}ddl}|jd}|jdd |jd d |jd dd|jddd|j}||j}|j}|j}|j|vrJ|r|s|j!d|jd||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.)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.)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_OIDNAMESPACE_X500argparseArgumentParser add_argumentkeys parse_argsuuidr:ruerrorrprint) uuid_funcsuuid_namespace_funcs namespacesrKparserr uuid_funcr:rus rmainrXsO J . J  $ $H%JF h 0A7=> mCD  hCD    D499%II 99D yy(( LL199+@@  .7*-DJy)$y/  i 4() 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_systemrrrrrrrr9rBr;rrrrrrrrrrrr rr_uuidgetattrrrhas_uuid_generate_time_safe_has_uuid_generate_time_safe ImportErrorrrr r! _OS_GETTERSrur&r%r)r.r2r;r>rArXrGrHrIrJrrrrrhsj,\ #+ <<<<D6&x(5(D7*F  !J $?N; h*O  d P/P/f\! #F8!L8L B   (!%)=tD%t4K#(#D#D I* . .,  12K\\X$l4DEK\\WK #$K$k<#%57K77g,HWW_ ;.HH O,$OL .1,.f;< ;< ;< <= zFa( EK#' (s"$F FF