2bi؉dSrSSKrSSKrSSKJr SSKJrJrJ r J r J r SSK J r SSKJr SSKJr SS KJrJr SS KJr SS KJrJrJrJrJrJrJr SS KJr SS KJ!r!J"r"J#r# SSK$J%r%J&r&J'r' SSK(J)r)J*r*J+r+J,r,J-r-J.r. SSK(Jr/ SSK(J0r0 SSK(J r1 SSK(J2r2 SSK3J4r4 SSK5J6r6 SSK7J8r8 SSK9J:r:J;r;Jr>J?r?J@r@JArAJBrBJCrC \6R\6R\6R\6R\6R4rISrJSrKSrL"SS5rM"SS5rN"SS \N5rO"S!S"\M\N5rP"S#S$5rQg)%z` requests.models ~~~~~~~~~~~~~~~ This module contains the primary objects that power Requests. N)UnsupportedOperation) DecodeErrorLocationParseError ProtocolErrorReadTimeoutErrorSSLError) RequestField)encode_multipart_formdata) parse_url)to_native_stringunicode_is_ascii) HTTPBasicAuth)CallableJSONDecodeErrorMapping basestring builtin_strchardet cookielib)json) urlencodeurlsplit urlunparse)_copy_cookie_jarcookiejar_from_dictget_cookie_header)ChunkedEncodingErrorConnectionErrorContentDecodingError HTTPErrorInvalidJSONError InvalidURL)r) MissingSchema)r)StreamConsumedError) default_hooks)codes)CaseInsensitiveDict) check_header_validityget_auth_from_urlguess_filenameguess_json_utf iter_slicesparse_header_links requote_uristream_decode_response_unicode super_lento_key_val_listi(icD\rSrSr\S5r\S5r\S5rSr g)RequestEncodingMixinTc/n[UR5nURnU(dSnURU5 URnU(a"URS5 URU5 SR U5$)zBuild the path URL to use./?)rurlpathappendqueryjoin)selfr;pr<r>s ڍ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/requests/models.pypath_urlRequestEncodingMixin.path_urlUse TXX vvD 4  JJsO JJu wws|c [U[[45(aU$[US5(aU$[US5(a/n[ U5Hup#[U[ 5(d[US5(dU/nUHgnUcMUR [U[5(aURS5OU[U[5(aURS5OU45 Mi M [USS9$U$)zEncode parameters in a piece of data. Will successfully encode parameters when passed as a dict or a list of 2-tuples. Order is retained if data is a list of 2-tuples but arbitrary if parameters are supplied as a dict. read__iter__utf-8T)doseq) isinstancestrbyteshasattrr2rr=encoder)dataresultkvsvs rB_encode_params#RequestEncodingMixin._encode_paramsjs dS%L ) )K T6 " "K T: & &F(.b*--WR5L5LBA} 5?35G5G 1Q5?35G5G 1Q/V40 0KrEc &U(d [S5e[U[5(a [S5e/n[U=(d 05n[U=(d 05nUHupE[U[5(d[ US5(dU/nUHnUcM[U[ 5(d [ U5nUR[U[ 5(aURS5OU[U[ 5(aURS5OU45 M M UHupvSnSn [U[[45(a/[U5S:XaUupO1[U5S:XaUupnOUuppO[U5=(d Un Un [U [ [ [45(aU n O)[ U S5(aU R5n OU cMU n [!X|XS 9n U R#US 9 URU 5 M [%U5upX4$) auBuild the body for a multipart/form-data request. Will successfully encode files when passed as a dict or a list of tuples. Order is retained if data is a list of tuples but arbitrary if parameters are supplied as a dict. The tuples may be 2-tuples (filename, fileobj), 3-tuples (filename, fileobj, contentype) or 4-tuples (filename, fileobj, contentype, custom_headers). zFiles must be provided.zData must not be a string.rHNrIrG)namerPfilenameheaders) content_type) ValueErrorrKrr2rNrMrLr=decoderOtuplelistlenr+ bytearrayrGr make_multipartr )filesrP new_fieldsfieldsfieldvalrTrRftfhfnfpfdatarfbodyr]s rB _encode_files"RequestEncodingMixin._encode_filess67 7 j ) )9: :  , , JE#z**'#z2J2Je=%a//F%% *%77"LL1!&1;As1C1CAHHW-  !$FQBB!eT]++q6Q;FBVq[!"JBB%&NBB#A&+!"sE9566V$$ 12JB   2  .   b !587zB!!rEN) __name__ __module__ __qualname____firstlineno__propertyrC staticmethodrUrq__static_attributes__rsrErBr5r5Ts> (:B"B"rEr5c \rSrSrSrSrSrg)RequestHooksMixincXR;a[SUS35e[U[5(aURUR U5 g[ US5(a&URUR SU55 gg)zProperly register a hook.z.Unsupported event specified, with event name ""rHc3T# UHn[U[5(dMUv M g7fN)rKr).0hs rB 2RequestHooksMixin.register_hook..s$P1 1h8OQQs( (N)hooksr^rKrr=rNextendr@eventhooks rB register_hookRequestHooksMixin.register_hooksw  "MeWTUVW W dH % % JJu  $ $T * T: & & JJu  $ $$P$P P'rEcbURURU5 g![a gf=f)zYDeregister a previously registered hook. Returns True if the hook existed, False if not. TF)rremover^rs rBderegister_hook!RequestHooksMixin.deregister_hooks3   JJu  $ $T *  s ! ..rsN)rtrurvrwrrrzrsrErBr|r|s  Q rEr|cB\rSrSrSrSSjrSrSrSrg) Requesta'A user-created :class:`Request ` object. Used to prepare a :class:`PreparedRequest `, which is sent to the server. :param method: HTTP method to use. :param url: URL to send. :param headers: dictionary of headers to send. :param files: dictionary of {filename: fileobject} files to multipart upload. :param data: the body to attach to the request. If a dictionary or list of tuples ``[(key, value)]`` is provided, form-encoding will take place. :param json: json for the body to attach to the request (if files or data is not specified). :param params: URL parameters to append to the URL. If a dictionary or list of tuples ``[(key, value)]`` is provided, form-encoding will take place. :param auth: Auth handler or (user, pass) tuple. :param cookies: dictionary or CookieJar of cookies to attach to this request. :param hooks: dictionary of callback hooks, for internal usage. Usage:: >>> import requests >>> req = requests.Request('GET', 'https://httpbin.org/get') >>> req.prepare() Nc 6Uc/OUnUc/OUnUc0OUnUc0OUnU c0OU n [5Ul[U R55HupUR XS9 M XlX lX0lX@lXPl Xl X`l Xpl Xl g)N)rr)r&rraitemsrmethodr;r\rerPrparamsauthcookies) r@rr;r\rerPrrrrrrRrTs rB__init__Request.__init__s\rtm"W~6m"_ 5;;=)FQ   Q  /*        rEc"SURS3$)Nz rr@s rB__repr__Request.__repr__%sDKK=++rEc [5nURURURURUR UR URURURURURS9 U$)zXConstructs a :class:`PreparedRequest ` for transmission and returns it.) rr;r\rerPrrrrr) PreparedRequestpreparerr;r\rerPrrrrrr@rAs rBrRequest.prepare(sh   ;;LL**;;LL**  rE) rrrPrer\rrrrr; NNNNNNNNNN) rtrurvrw__doc__rrrrzrsrErBrrs7:    !F,rErc\rSrSrSrSrSSjrSrSrSr \ S 5r S r S r SS jrS rSSjrSrSrSrg)ri:aThe fully mutable :class:`PreparedRequest ` object, containing the exact bytes that will be sent to the server. Instances are generated from a :class:`Request ` object, and should not be instantiated manually; doing so may produce undesirable effects. Usage:: >>> import requests >>> req = requests.Request('GET', 'https://httpbin.org/get') >>> r = req.prepare() >>> r >>> s = requests.Session() >>> s.send(r) cvSUlSUlSUlSUlSUl[ 5UlSUlgr)rr;r\_cookiesrpr&r_body_positionrs rBrPreparedRequest.__init__Os8    "_ "rENc URU5 URX&5 URU5 URU5 UR XTU 5 UR Xr5 UR U 5 g)z6Prepares the entire request with the given parameters.N)prepare_method prepare_urlprepare_headersprepare_cookies prepare_body prepare_auth prepare_hooks) r@rr;r\rerPrrrrrs rBrPreparedRequest.prepare`sj F# % W% W% $t, $$ 5!rEc"SURS3$)Nz?DK #rEcSSKJn URUSS9RS5nU$!URa [ ef=f)Nr)idnaT)uts46rI) pip._vendorrrOr_ IDNAError UnicodeError)hostrs rB_get_idna_encoded_host&PreparedRequest._get_idna_encoded_hostsI$ ;;t4;077@D ~~   s )Ac [U[5(aURS5nO [U5nUR 5nSU;a+UR 5R S5(dXlg[U5up4pVpxn U(d[SU<SUS35eU(d[SU<S35e[U5(dURU5nO!UR S 5(a [S 5eU=(d S n U (aU S - n X- n U(aU SU3- n U(dS n[U[[45(a [!U5nUR#U5n U (aU(aUSU 3nOU n[%['X;USX/55nXlg![an [U R6eSn A ff=f![a [S 5ef=f)zPrepares the given HTTP URL.utf8:httpNz Invalid URL z0: No scheme supplied. Perhaps you meant https://r9z: No host suppliedzURL has an invalid label.)*.r:@r8&)rKrMr_rLlstriplower startswithr;r rr#argsr$rrrr rUr/r) r@r;rschemerrportr<r>fragmentenetloc enc_paramss rBrPreparedRequest.prepare_urls c5 ! !**V$Cc(Cjjl #:ciik44V<<H  &>Gn ;F$d8sg&--0E4  |C72DEF F  %% >2248__Z ( (89 9  cMF  $j FD fsEl + +%f-F((0  ':,/"*fdD%%RST_" &aff% % &&  > !<== >s$5FF? F<%F77F<?Gc[5UlU(a>UR5H)n[U5 Uup4X@R[ U5'M+ gg)z Prepares the given HTTP headers.N)r(r\rr)r )r@r\headerrZvalues rBrPreparedRequest.prepare_headerssG+, !--/%f-$ 7< -d34 * rEc SnSnU(dAUb>Sn[R"USS9n[ U[ 5(dUR S5n[[US5[ U[[[[45(+/5nU(at[U5nUn[#USS5bUR%5UlU(a [-S 5eU(a[/U5UR0S 'OS UR0S 'OU(aUR3X!5upEOCU(a<UR5U5n[ U[5(d[US 5(aSnOSnUR7U5 U(aSUR0;aXPR0S'X@lg![an[X`S9eSnAff=f![[[ 4a SnGN8f=f![(a [+5UlGN2f=f)z"Prepares the given HTTP body data.Nzapplication/jsonF) allow_nan)requestrIrHtellz1Streamed bodies and files are mutually exclusive.Content-LengthchunkedzTransfer-EncodingrGz!application/x-www-form-urlencodedz content-typez Content-Type) complexjsondumpsr^r"rKrMrOallrNrrar`rr1 TypeErrorAttributeErrorrgetattrrrOSErrorobjectNotImplementedErrorrr\rqrUprepare_content_lengthrp) r@rPrerrpr]ve is_streamlengths rBrPreparedRequest.prepare_bodys (.L 9"((?dE**{{7+j)tj$w%GHH    "4DtVT*63*.))+D' )G1Prepare Content-Length header based on request method and bodyNr)GETHEAD0)r1rr\rget)r@rprs rBr&PreparedRequest.prepare_content_length=sn  t_F2=V1D -. KK .   !12:.1DLL) * ; /rEcTUc)[UR5n[U5(aUOSnU(au[U[5(a[ U5S:Xa[ U6nU"U5nURRUR5 URUR5 gg)z"Prepares the given HTTP auth data.NrX) r*r;anyrKr`rbr__dict__updaterrp)r@rr;url_authrs rBrPreparedRequest.prepare_authMs <(2H"8}}8$D $&&3t9>$d+T A MM  ,  ' ' 2 rEc[U[R5(aXlO[ U5Ul[ URU5nUbX R S'gg)aPrepares the given HTTP cookie data. This function eventually generates a ``Cookie`` header from the given cookies using cookielib. Due to cookielib's design, the header will not be regenerated if it already exists, meaning this function can only be called once for the life of the :class:`PreparedRequest ` object. Any subsequent calls to ``prepare_cookies`` will have no actual effect, unless the "Cookie" header is removed beforehand. NCookie)rKr CookieJarrrrr\)r@r cookie_headers rBrPreparedRequest.prepare_cookiescsO gy22 3 3#M/8DM)$-->  $%2LL " %rEcTU=(d /nUHnURX!U5 M g)zPrepares the given hooks.N)r)r@rrs rBrPreparedRequest.prepare_hooksws)  E   uEl 3rE)rrrpr\rrr;rr)r:)rtrurvrwrrrrrrryrrrrrrrrrzrsrErBrr:s|(#&    "84 @ HT =L\1 3,3(4rErc\rSrSrSr/SQrSrSrSrSr Sr S r S r S r S r\S 5r\S5r\S5r\S5r\S5rSSjr\SS4Sjr\S5r\S5rSr\S5rSrSrSrg)Responseiz`The :class:`Response ` object, which contains a server's response to an HTTP request. ) _content status_coder\r;historyencodingreasonrelapsedrcSUlSUlSUlSUl[ 5UlSUlSUlSUl/Ul SUl [05Ul [R"S5UlSUlg)NFr)r _content_consumed_nextr r(r\rawr;r r r rrdatetime timedeltarrrs rBrResponse.__init__s !&   +,    +2.  ))!,  rEcU$rrsrs rB __enter__Response.__enter__s rEc$UR5 gr)close)r@rs rB__exit__Response.__exit__s  rEc UR(d UR URVs0sHo[XS5_M sn$s snfr)rcontent __attrs__r)r@attrs rB __getstate__Response.__getstate__s:%% LL<@NNKNDgd$//NKKKsAcUR5Hup#[XU5 M [USS5 [USS5 g)NrTr)rsetattr)r@staterZrs rB __setstate__Response.__setstate__s9 ;;=KD D &) )40eT"rEc"SURS3$)Nz .>..PPrEcSUR;=(a- UR[R[R4;$)z@True if this Response one of the permanent versions of redirect.r<)r\r r'moved_permanentlypermanent_redirectrs rBis_permanent_redirectResponse.is_permanent_redirect s?T\\) d.>.>  # #  $ $C /  rEcUR$)zTReturns a PreparedRequest for the next request in a redirect chain, if there is one.)rrs rBnext Response.nextszzrEcH[R"UR5S$)zOThe apparent encoding, provided by the charset_normalizer or chardet libraries.r )rdetectrrs rBapparent_encodingResponse.apparent_encodings~~dll+J77rEFcv^^UU4SjnTR(a)[TR[5(a [ 5eTb-[T[ 5(d[ S[T5S35e[TRT5nU"5nTR(aUOUnU(a [UT5nU$)aIterates over the response data. When stream=True is set on the request, this avoids reading the content at once into memory for large responses. The chunk size is the number of bytes it should read into memory. This is not necessarily the length of each item returned as decoding can take place. chunk_size must be of type int or None. A value of None will function differently depending on the value of `stream`. stream=True will read data as it arrives in whatever size the chunks are received. If stream=False, data is returned as a single chunk. If decode_unicode is True, content will be decoded using the best available encoding based on the response. c3># [TRS5(a$TRRTSS9ShvN O*TRRT5nU(dOUv M)STl gN7![an[ U5eSnAf[ an[ U5eSnAf[an[U5eSnAf[an[U5eSnAff=f7f)NstreamT)decode_content) rNrrNrrrr rrrRequestsSSLErrorrGr)rchunk chunk_sizer@s rBgenerate'Response.iter_content..generate,stxx** .#xxz$OOO HHMM*5E K  &*D "#P$2.q11"2.q11'-)!,,.*1--.s\CA7A5A73C5A77 C B  C B$$ C1 B<< C CCCz+chunk_size must be an int, it is instead a r) rrKr boolr%intrtyper-r0)r@rRdecode_unicoderS reused_chunks stream_chunkschunkss`` rBr6Response.iter_contents" *.  ! !j&E&E%' '  #Jz3,G,G=d:>N=OqQ $DMM:>  "&"8"8m 3FDAF rENc#8# SnURXS9HwnUbXE-nU(aURU5nOUR5nU(a1US(a'U(a USSUS:XaUR5nOSnUShvN My UbUv ggN7f)zIterates over the response data, one line at a time. When stream=True is set on the request, this avoids reading the content at once into memory for large responses. .. note:: This method is not reentrant safe. N)rRrX)r6split splitlinespop)r@rRrX delimiterpendingrQliness rB iter_linesResponse.iter_linesUs&&!' E" I.((*rur2%)1K))+  # &  M  sBBBBc,URSLasUR(a [S5eURS:Xd URcSUlO2SR UR [55=(d SUlSUlUR$)z"Content of the response, in bytes.Fz2The content for this response was already consumedrNrET)r r RuntimeErrorr rr?r6CONTENT_CHUNK_SIZErs rBrResponse.contentwsy ==E !%%"#WXX1$(8 $ #):):;M)N O VSV !%}}rEcSnURnUR(dgURc URn[URUSS9nU$![[ 4a [URSS9nU$f=f)aContent of the response, in unicode. If Response.encoding is None, encoding will be guessed using ``charset_normalizer`` or ``chardet``. The encoding of the response content is determined based solely on HTTP headers, following RFC 2616 to the letter. If you can take advantage of non-HTTP knowledge to make a better guess at the encoding, you should set ``r.encoding`` appropriately before accessing this property. Nr:replace)errors)r rrJrL LookupErrorr)r@rr s rBtext Response.texts~==|| == --H :$,,CGY' :$,,y9G :sA$A:9A:c XUR(dsUR(ab[UR5S:aI[UR5nUb1[R "URR U540UD6$[R "UR40UD6$![a N.[a0n[URURUR5eSnAff=f![a0n[URURUR5eSnAff=f)zReturns the json-encoded content of a response, if any. :param \*\*kwargs: Optional arguments that ``json.loads`` takes. :raises requests.exceptions.JSONDecodeError: If the response body does not contain valid json. rYN)r rrbr,rloadsr_UnicodeDecodeErrorrRequestsJSONDecodeErrormsgdocposro)r@kwargsr rs rBr Response.jsons}}#dll2Ca2G &dll3H# G&,,T\\-@-@-JUfUU ?$$TYY9&9 9* &G1!%%FFG  ?*!%%> > ?s6/B' C/' C,3 C,<+C''C,/ D)9+D$$D)cURRS5n0nU(aA[U5nUH0nURS5=(d URS5nXBU'M2 U$)z8Returns the parsed header links of the response, if any.linkrelr;)r\rr.)r@rresolved_linkslinksr{keys rBr~Response.linkss^!!&) &v.Ehhuo8%&*s#rEcSn[UR[5(aURRS5nO URnSUR s=::aS:a"O OUR SUSUR 3nO8SUR s=::aS:a!O OUR S USUR 3nU(a [XS 9eg ![a URRS5nNf=f) z+Raises :class:`HTTPError`, if one occurred.r:rIz iso-8859-1iiz Client Error: z for url: iXz Server Error: )responseN)rKr rMr_rsr r;r!)r@http_error_msgr s rBr9Response.raise_for_statuss dkk5 ) )  :++G4[[F $"" (S (##$OF8:dhhZP D$$ *s *##$OF8:dhhZP  N: : & :++L9 :sC %C54C5cUR(dURR5 [URSS5nUbU"5 gg)zReleases the connection back to the pool. Once this method has been called the underlying ``raw`` object must not be accessed again. *Note: Should not normally need to be called explicitly.* release_connN)rrrr)r@rs rBrResponse.closes= %% HHNN txx>  # N $rE) r rrrrr r\r rr rr r;)r F)rtrurvrwrrrrrr!r&rr.r2rHrxr-r>rCrFrJr6ITER_CHUNK_SIZErerrorr~r9rrzrsrErBrrs I-^L#2&  QQ   888v)$ D$##J?B ;: rEr)Rrrencodings.idna encodingsiorpip._vendor.urllib3.exceptionsrrrrrpip._vendor.urllib3.fieldsr pip._vendor.urllib3.filepostr pip._vendor.urllib3.utilr _internal_utilsr rrrcompatrrrrrrrrrrrrrrrr exceptionsrrr r!r"r#rtr$rPr%rr& status_codesr' structuresr(utilsr)r*r+r,r-r.r/r0r1r2movedfoundothertemporary_redirectrBr=DEFAULT_REDIRECT_LIMITrirr5r|rrrrsrErBrs  #4B.?(33MMC%4+ +     KK KK KK   w"w"t0QQhD4*,=D4N IIrE