Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
 mŽŒYÝZã@s»dZddlZdZddddg\ZZZZeZe Z Gdd „d e ƒZ d d „Z d d „Zdd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd„ZdZZy<ddlZddlZddlZdgZejjdƒsejdƒx^eD]VZyej ej!j"eƒƒZ#Wne$k r`w$YnXe%e#dƒr$e#j&ZPq$W[ejd krÊddlZeej'ƒj(j)d!ƒdƒd"krÊdZyej*j+Z#WndZ#YnXe,e#d#e,e#d$dƒƒZWnYnXd%d&„Z-d'd(„Z.d)d*„Z/da0d+d,„Z1da2ddd-d.„Z3d/d0„Z4d1d2„Z5d3d4„Z6e d5ƒZ7e d6ƒZ8e d7ƒZ9e d8ƒZ:dS)9aQUUID 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') éNzKa-Ping Yee zreserved for NCS compatibilityzspecified in RFC 4122z$reserved for Microsoft compatibilityzreserved for future definitionc@sºeZdZdZdddddddd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„Zedd„ƒZedd„ƒZedd„ƒZedd „ƒZed!d"„ƒZed#d$„ƒZed%d&„ƒZed'd(„ƒZed)d*„ƒZed+d,„ƒZed-d.„ƒZed/d0„ƒZed1d2„ƒZed3d4„ƒZed5d6„ƒZdS)7Ú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) NcCsz|||||gjdƒdkr0tdƒ‚|dk r¢|jddƒjddƒ}|jdƒjddƒ}t|ƒd kr“td ƒ‚t|d ƒ}|dk rt|ƒd krÌtd ƒ‚|d(dd)…|d*d+d,…|d-d.d/…|dd…}|dk rot|ƒd kr9tdƒ‚t|tƒsZt t |ƒƒ‚tj |ddƒ}|dk rÕt|ƒdkr™tdƒ‚|\}}} } } } d|koÈd0knsÙtdƒ‚d|koðd1knstdƒ‚d| kod2kns)tdƒ‚d| ko@d3knsQtdƒ‚d| kohd4knsytdƒ‚d| ko�d5kns¡tdƒ‚| d>| B} |d>|d>B| d>B| d>B| B}|dk r d|koød6kns td ƒ‚|dk rid |ko,d!kns=td"ƒ‚|d8M}|d9O}|d;M}||d&>O}||j d'|jd>B|jBS)Niÿr r)r.r-r,)r&r3r3r4Útime sz UUID.timecCs|jd@d>|jBS)Né?r )r/r0)r&r3r3r4r2szUUID.clock_seqcCs |jd@S)Nlÿÿÿ)r)r&r3r3r4r1sz UUID.nodecCs d|jS)Nz%032x)r)r&r3r3r4r'szUUID.hexcCsdt|ƒS)Nz urn:uuid:)rB)r&r3r3r4ÚurnszUUID.urncCs;|jd@stS|jd@s"tS|jd@s3tStSdS)Ni€r i@i lll)rÚ RESERVED_NCSÚRFC_4122ÚRESERVED_MICROSOFTÚRESERVED_FUTURE)r&r3r3r4Úvariant s   z UUID.variantcCs(|jtkr$t|jd?d@ƒSdS)Nré)rTrQr)r&r3r3r4r++sz UUID.version)rAÚ __module__Ú __qualname__Ú__doc__r5r8r9r:r;r<r>r?rCrFrIÚpropertyr(r)r*r,r-r.r/r0rMr2r1r'rOrTr+r3r3r3r4r:s8 . O           rc GsÁddl}ddl}ddl}|j|ƒ}|dkrv|jjd ƒ}|j|d|ƒ}|dkrvdSt|jƒ}d|d<|j|f|d|j d|j d |ƒ}|S) Nrú/sbinú /usr/sbinÚpathÚCÚLC_ALLÚstdoutÚstderrÚenv)rZr[) ÚosÚshutilÚ subprocessÚwhichÚpathsepÚjoinÚdictÚenvironÚPopenÚPIPEÚDEVNULL) ÚcommandÚargsrbrcrdÚ executabler\raÚprocr3r3r4Ú_popen1s$      rqc Cs÷yÞt||jƒŒ}|s"dS|�²xª|jD]Ÿ}|jƒjƒjƒ}x~tt|ƒƒD]j}|||krdy9|||ƒ}t|jddƒdƒ} | r²| SWqdt t fk rÍYqdXqdWq3WWdQRXWnt k ròYnXdS)Nó:ór) rqÚsplitr_ÚlowerÚrstripÚrangerrrrÚ IndexErrorÚOSError) rmrnZhw_identifiersZ get_indexrpÚlineÚwordsÚiÚwordÚmacr3r3r4Ú _find_macDs$ rcCs@x9d D]1}td|ddgdd„ƒ}|r|SqWd S) z5Get the hardware address on Unix by running ifconfig.rú-aú-avZifconfigshwaddrsethercSs|dS)Nrr3)r|r3r3r4Úasz#_ifconfig_getnode..N)rr€r�)r)rnr~r3r3r4Ú_ifconfig_getnode]s !rƒcCs,tdddgdd„ƒ}|r(|SdS)z/Get the hardware address on Unix by running ip.Zipz link lists link/ethercSs|dS)Nrr3)r|r3r3r4r‚hsz_ip_getnode..N)r)r~r3r3r4Ú _ip_getnodeesr„cCsoddl}ddl}y|j|jƒƒ}Wntk rIdSYnXtdd|j|ƒgdd„ƒS)z0Get the hardware address on Unix by running arp.rNZarpz-ancSsdS)Nrrr3)r|r3r3r4r‚usz_arp_getnode..)rbÚsocketÚ gethostbynameÚ gethostnameryrÚfsencode)rbr…Zip_addrr3r3r4Ú _arp_getnodels   r‰cCstdddgdd„ƒS)z4Get the hardware address on Unix by running lanscan.Zlanscanz-aislan0cSsdS)Nrr3)r|r3r3r4r‚zsz"_lanscan_getnode..)rr3r3r3r4Ú_lanscan_getnodewsrŠc"Cs&y tddƒ}|sdS|�ç|jjƒjƒjƒ}y|jdƒ}Wntk ridSYnXx˜|jD]�}yl|jƒjƒ}||}t|ƒdkrå|jdƒdkråt |j ddƒd ƒ}|rå|SWqttt fk rYqtXqtWWdQRXWnt k r!YnXdS) z4Get the hardware address on Unix by running netstat.Znetstatz-iaNsAddressérrrrsr) rqr_ÚreadlinervrtÚindexrrrrrrxry)rpr{r|rzr}r~r3r3r4Ú_netstat_getnode|s,   ' rŽc Cs?ddl}ddl}dddg}yQddl}|jdƒ}|jjj|dƒ|jd|jj dƒƒWnYnXxµ|D]­}y&|j |j j |dƒd ƒ}Wnt k rÍwŠYnX|�`xX|D]P}|jd ƒdjƒjƒ}|jd |ƒrÜt|jd dƒdƒSqÜWWdQRXqŠWdS)ztjdƒ}t|ƒdkr:tdt|jƒƒjSdS)z1Get the hardware address on Windows using ctypes.rrr(N)r’r“Ú _UuidCreaterr!r­r1)r®r3r3r4Ú_windll_getnodesr±cCsddl}|jdƒdBS)zCGet a random node ID, with eighth bit set as suggested by RFC 4122.rNr l)ÚrandomÚ getrandbits)r²r3r3r4Ú_random_getnode s r´c Csœtdk rtSddl}|jdkr=tttg}ntttt t t g}x@|t gD]1}y |ƒaWn wcYnXtdk rctSqcWdS)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. NrÚwin32) Ú_nodeÚsysÚplatformr±r¥r�r¯rƒr„r‰rŠrŽr´)r·ZgettersÚgetterr3r3r4Úgetnodes     rºc CsNtrQ||kodknrQtjdƒ}t|ƒtdt|jƒƒSddl}t|jƒdƒ}t|dƒd}tdk r©|tkr©td}|a|dkrÖddl }|j d ƒ}|d @}|d ?d @}|d ?d@} |d@} |d?d@} |dkr)t ƒ}td||| | | |fddƒS)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.Nrr(rgeÍÍAédl@'Hw� rélÿÿriÿÿr iÿrLr rNr*r+) r¬r’r“rr!r­rMrÚ_last_timestampr²r³rº) r1r2r®rMZ nanosecondsZ timestampr²r,r-r.r0r/r3r3r4Úuuid10s,"         r¾cCsOddlm}||jt|dƒƒjƒ}td|dd…ddƒS) zAGenerate a UUID from the MD5 hash of a namespace UUID and a name.r)Úmd5zutf-8r(Nrr+r)Úhashlibr¿r(Údigestr)Ú namespacerDr¿r=r3r3r4Úuuid3Ss"rÃcCstdtjdƒddƒS)zGenerate a random UUID.r(rr+r)rrbÚurandomr3r3r3r4Úuuid4YsrÅcCsOddlm}||jt|dƒƒjƒ}td|dd…ddƒS) zCGenerate a UUID from the SHA-1 hash of a namespace UUID and a name.r)Úsha1zutf-8r(Nrr+r)rÀrÆr(rÁr)rÂrDrÆr=r3r3r4Úuuid5]s"rÇz$6ba7b810-9dad-11d1-80b4-00c04fd430c8z$6ba7b811-9dad-11d1-80b4-00c04fd430c8z$6ba7b812-9dad-11d1-80b4-00c04fd430c8z$6ba7b814-9dad-11d1-80b4-00c04fd430c8);rXrbÚ __author__rPrQrRrSrrr(r!Úobjectrrqrrƒr„r‰rŠrŽr�r¥r¬r°r’Z ctypes.utilr·Z _libnamesr¸Ú startswithÚappendZlibnameZCDLLÚutilZ find_libraryÚlibÚ ExceptionÚhasattrr¨ÚunameÚreleasertr”Zrpcrt4Úgetattrr¯r±r´r¶rºr½r¾rÃrÅrÇZ NAMESPACE_DNSZ NAMESPACE_URLZ NAMESPACE_OIDZNAMESPACE_X500r3r3r3r4Ú-st ÷        "         (       #