Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
sessions.cpython-313.pyc270 linesDownload Raw Back to __pycache__
1�

2��jڅ��X�SrSSKJr SSKrSSKrSSKrSSKJr SSKJ	r	J3r4Jr SSKJ
r
 SSKJrJrJr SS	KJr SS5KJr SSKJr SSKJr SS
KJrJrJr SSKJ r J!r!J"r"J#r# SSK$J%r%J&r&J'r'J(r( SSK)J*r*J+r+ SSK,J-r-J.r.J/r/J0r0J1r1 SSK2J3r3 SSK4J5r5 SSK6J7r7J8r8J9r9J:r:J;r;J<r<J=r=J>r>J?r?J@r@ \(aSSKAJBrB SSKCJDrDJErE SSKFJrG SSKJHrH \R�S:Xa
\R�rKO\R6rK\4S!SjjrL\4S"SjjrM"SS5rN"SS\N5rOS#S jrPg)$z�7requests.sessions8~~~~~~~~~~~~~~~~~9 10This module provides a Session object to manage and persist settings across11requests (cookies, auth, proxies).12�)�annotationsN)�OrderedDict)�	Generator�Mapping�MutableMapping)�	timedelta)�
TYPE_CHECKING�Any�cast�)�to_native_string)�is_prepared)�HTTPAdapter)�_basic_auth_str)�	cookielib�urljoin�urlparse)�RequestsCookieJar�cookiejar_from_dict�extract_cookies_to_jar�
merge_cookies)�ChunkedEncodingError�ContentDecodingError�
InvalidSchema�TooManyRedirects)�
default_hooks�
dispatch_hook)�DEFAULT_REDIRECT_LIMIT�REDIRECT_STATI�PreparedRequest�Request�Response)�codes)�CaseInsensitiveDict)13�
DEFAULT_PORTS�default_headers�get_auth_from_url�get_environ_proxies�get_netrc_auth�requote_uri�resolve_proxies�rewind_body�should_bypass_proxies�to_key_val_list)�	CookieJar)�Self�Unpack)�_types)�BaseAdapter�win32c�<�UcU$UcU$[U[5(a[U[5(dU$U"[U55nUR[U55 UR	5VVs/sHupEUbM14UPM nnnUHnX7	M U$s snnf)z�Determines appropriate setting for a given request, taking into account15the explicit setting on that request, and the setting in the session. If a16setting is a dictionary, they will be merged together using `dict_class`17)�18isinstancerr.�update�items)�request_setting�session_setting�19dict_class�merged_setting�k�v�	none_keys�keys        �WD:\code\apps\devtools\python\user_packages\Python313\site-packages\requests/sessions.py�
merge_settingrBLs�����������	�?�G�,�,��O�W�1U�1U������ @�A�N����/�/�:�;�"0�!5�!5�!7�E�!7�v��1��!7�I�E���������	Fs�5	B�Bc��UbURS5/:XaU$UbURS5/:XaU$[XU5$)z�Properly merges both requests and session hooks.20 21This is necessary because when request_hooks == {'response': []}, the22merge breaks Session hooks entirely.23�response)�getrB)�
request_hooks�
session_hooksr;s   rA�merge_hooksrHlsM����
� 1� 1�*� =�� C�����
� 1� 1�*� =�� C�����z�B�B�c���\rSrSr%S\S'S\S'S\S'SSjrSS	jrSS24jrSSSjjrSS
jr	SSjr25SSjrSrg)�SessionRedirectMixin��int�
max_redirects�bool�	trust_envr�cookiesc��g�N�)�self�request�kwargss   rA�send�SessionRedirectMixin.send�s��rIc�~�UR(a,URSnURS5n[US5$g)z7Receives a Response. Returns a redirect URI or ``None``�location�latin1�utf8N)�is_redirect�headers�encoder
)rU�respr[s   rA�get_redirect_target�(SessionRedirectMixin.get_redirect_target�s;������|�|�J�/�H� ���x�0�H�#�H�f�5�5�rIc���[U5n[U5nURUR:wagURS:Xa1URS;a!URS:XaURS;agURUR:gnURUR:gn[R26"URS5S4nU(d!URU;aURU;agU=(d U$)zFDecide whether Authorization header should be removed when redirectingT�http)�PN�https)i�NFN)r�hostname�scheme�portr%rE)rU�old_url�new_url�27old_parsed�28new_parsed�changed_port�changed_scheme�default_ports        rA�should_strip_auth�&SessionRedirectMixin.should_strip_auth�s����g�&�29��g�&�30����*�"5�"5�5��
����'����:�-��!�!�W�,����;�.��"���*�/�/�9��#�*�*�j�.?�.?�?��%�)�)�*�*;�*;�T�B�D�I������<�/����<�/���-�~�-rINc	31+�(# �/n32URU5n[UR5RnU(GaUR	5n
U33SSUlU34R
U5 UR [UR355UR:�a[SURS3US9eUR!5 UR#S5(a;[UR5nSR%['UR(5U/5n[U5nURS	:XaU(aUR+US369nOUR(aURnUR-5nUR.(d [1UR[3U55nO[3U5n['U5U
lUR5X�5 UR6[8R:[8R<4;a.SnUHnU
R>RAUS5 M! SU
l!U
R>nURASS5 [ES
U
RF5n[IUX!R5 [KUURL5 U
ROU5 URQX�5nURSX�5 U
RTSL=(a SU;=(d SU;nU(a[WU
5 U
nU(aUv� OOURX"U4UUUUUSS.U	D6n[IURLX�R5 URU5nUv� U(aGMgg![[[4a URRSS9 GNf=f7f)zBReceives a Response. Returns a generator of Responses or Requests.NF)�decode_contentz	Exceeded z redirects.)rDz//�:�)�fragment)�Content-LengthzContent-Type�Transfer-Encoding�Cookier/ryrz)�stream�timeout�verify�cert�proxies�allow_redirects)-rbr�urlrx�copy�history�append�contentrr�RuntimeError�raw�read�lenrNr�close�37startswith�joinr
ri�_replace�geturl�netlocrr*�rebuild_method�status_coder#�temporary_redirect�permanent_redirectr_�pop�bodyr�_cookiesrrrQ�prepare_cookies�rebuild_proxies�rebuild_auth�_body_positionr,rX)rUra�reqr|r}r~rr��yield_requests�adapter_kwargs�histr��previous_fragment�prepared_request�parsed_rurl�parsed�purged_headers�headerr_�38cookie_jar�39rewindables                     rA�resolve_redirects�&SessionRedirectMixin.resolve_redirects�s!��� "���&�&�t�,��$�S�W�W�-�6�6���"�x�x�z�� ��7�D�L��K�K���
4�����4�<�<� �D�$6�$6�6�&��� 2� 2�3�;�?�$���40
�J�J�L��~�~�d�#�#�&�t�x�x�0���h�h� 0��1C�1C� D�c�J�K���c�]�F����"�$�):����2C��D�����$*�O�O�!��-�-�/�C�41�=�=��d�h�h��C�(8�9��!�#�&��#3�C�#8�� ���� 0�7�����(�(��(�(�(��42"Y��,�F�$�,�,�0�0���>�-�(,� �%�&�.�.�G��K�K��$�'�43�k�+;�+D�+D�E�J�"�:�s�H�H�=��*�d�l�l�3��,�,�Z�8��*�*�+;�E�G����.�5�44*�8�8��D�� �G�+�M�/B�g�/M�
�45��,�-�#�C���	��y�y��	�!�#�!��#�$)�	�%�	��'�t�|�|�5E�x�x�P��.�.�t�4���46�O�c��)�*>��M�
4����
�
�U�
�3�
4�s1�A&N�)M�5K#N�N�.N�N�N�Nc�P�URn[U5(de[U5(deURnURnURnSU;aUR	XV5(aUS	UR47(a[
U5OSnUbURU5 gg)z�When being redirected we may want to strip authentication from the48request to avoid leaking credentials. This method intelligently removes49and reapplies authentication where possible to avoid credential loss.50�
AuthorizationN)rV�_is_preparedr_r�rrrPr)�prepare_auth)rUr�rD�original_requestr_�original_urlr��new_auths        rAr��!SessionRedirectMixin.rebuild_auth5s���$�+�+���,�-�-�-�-��,�-�-�-�-�"�*�*��'�+�+���"�"���g�%�$�*@�*@��*S�*S���(�+/�.�.�>�#�&�d�����)�)�(�3� rIc�j�[U5(deURn[UR5Rn[XUR5nSU;aUS	[XT5upgURS5(dU(aU(a[Xg5US'U$![a SupgNDf=f)apThis method re-evaluates the proxy configuration by considering the51environment variables. If we are redirected to a URL covered by52NO_PROXY, we strip the proxy configuration. Otherwise, we set missing53proxy keys for this URL (in case they were stripped by a previous54redirect).55 56This method also replaces the Proxy-Authorization header where57necessary.58 59:rtype: dict60zProxy-Authorization�NNrg)r�r_rr�rir+rPr'�KeyErrorr�r)rUr�r�r_ri�new_proxies�username�passwords        rAr��$SessionRedirectMixin.rebuild_proxiesNs��� �,�-�-�-�-�"�*�*���*�.�.�/�6�6��%�&6����P�� �G�+��-�.�	,�!2�;�3F�!G��H�� � ��)�)�h�8�-<�X�-P�G�)�*�����	,�!+��H�h�	,�s�B!�!B2�1B2c��URnUR[R:XaUS:waSnUR[R:XaUS:waSnUR[R61:XaUS:XaSnX1lg)zrWhen being redirected we may want to change the method of the request62based on certain specs or browser behavior.63�HEAD�GET�POSTN)�methodr�r#�	see_other�found�moved)rUr�rDr�s    rAr��#SessionRedirectMixin.rebuild_methodrsu��"�(�(�����5�?�?�2�v��7G��F����5�;�;�.�6�V�3C��F����5�;�;�.�6�V�3C��F�"(�rIrT�rVr rWr64�returnr")rar"r�z65str | None)rk�strrlr�r�rO)FNTNNF)rar"r�r r|rOr}�_t.TimeoutTyper~�
_t.VerifyTyper�_t.CertTyper��dict[str, str] | Noner�rOr�r66r�zGenerator[Response, None, None])r�r rDr"r��None)r�r r�r�r��dict[str, str])
�__name__�67__module__�__qualname__�__firstlineno__�__annotations__rXrbrrr�r�r�r��__static_attributes__rTrIrArKrKs�����O�
��L��(.�H�"&� $� �)-�$�y��y��y��	y�68 �y��
y��y�'�y��y��y�69)�y�v4� /�4�;C�4�	
�4�2"�)�"�'�"�70�	"�H)� /�)�;C�)�	
�)rIrKc�2�\rSrSr%SrS\S'S\S'S\S'S	\S71'S\S'S
\S'S\S'S\S'S\S'S
\S'S\S'S\S'/SQrS\S'S2SjrS3SjrS4Sjr	S5S jr72S6S7S"jjrS8S9S#jjrS:S$jr
S:S%jrS;S<S&jjrS8S=S'jjrS8S=S(jjrS:S)jrS>S*jrS?S+jrS@S,jrS2S-jrSAS.jrSBS/jrSCS0jrS1rg!)D�Sessioni�aTA Requests session.73 74Provides cookie persistence, connection-pooling, and configuration.75 76Basic Usage::77 78  >>> import requests79  >>> s = requests.Session()80  >>> s.get('https://httpbin.org/get')81  <Response [200]>82 83Or as a context manager::84 85  >>> with requests.Session() as s:86  ...     s.get('https://httpbin.org/get')87  <Response [200]>88zCaseInsensitiveDict[str]r_�_t.AuthType�authr�r�zdict[str, list[_t.HookType]]�hookszMutableMapping[str, Any]�paramsrOr|r�r~r�rrMrNrPrrQz MutableMapping[str, BaseAdapter]�adapters)r_rQr�r�r�r�r~rr�r|rPrNz	list[str]�	__attrs__c�^�[5UlSUl0Ul[	5Ul0UlSUlSUlSUl	[UlSUl[05Ul[5UlUR#S[%55 UR#S[%55 g)NFTzhttps://zhttp://)r&r_r�r�rr�r�r|r~rrrNrPrrQrr��mountr�rUs rA�__init__�Session.__init__�s���'�(�����	�89���#�_��90�91�����������	�4������+�2�.���$�
��
��92�93�:�{�}�-��94�95�9�k�m�,rIc��U$rSrTr�s rA�	__enter__�Session.__enter__�s���rIc�$�UR5 grS)r�)rU�argss  rA�__exit__�Session.__exit__�s���96�97�rIc�0�[SUR5n[[UR5nUR=(d 0n[U[R5(d[U5n[[[5UR5U5nURnUR(a#U(dUR(d[U5n[5nURUR!5UUR"UR$UR&[)UR*UR*[,S9[)UR.UR.5[)X`R5U[1UR2UR25S998 U$)aSConstructs a :class:`PreparedRequest <PreparedRequest>` for99transmission and returns it. The :class:`PreparedRequest` has settings100merged from the :class:`Request <Request>` instance and those of the101:class:`Session`.102 103:param request: :class:`Request` instance to prepare with this104    session's settings.105:rtype: requests.PreparedRequest106�107_t.UriType)r;)108r�r��files�data�jsonr_r�r�rQr�)rr�r�r�rQr6rr/rrrr�rPr)r �prepare�upperr�r�r�rBr_r$r�rHr�)rUrVr�r�rQ�merged_cookiesr��ps        rA�prepare_request�Session.prepare_request�s#���<����-���c�7�>�>�*���/�/�'�R���'�9�#6�#6�7�7�)�'�2�G�'��+�-�t�|�|�<�g�109��110�|�|���>�>�$�t�y�y�!�#�&�D����	�	�	��<�<�>���-�-�������!�������:M��!�������=��t�Y�Y�/�"��g�m�m�T�Z�Z�8�	�
	111��rINc
��[U[5(aURS5n[UR	5UUUU=(d 0UU=(d 0UUUS9112nURU5n[
U5(deU=(d 0nURURX�X�5nU	U113S.nURU5 UR"U40UD6nU$)a�Constructs a :class:`Request <Request>`, prepares it and sends it.114Returns :class:`Response <Response>` object.115 116:param method: method for the new :class:`Request` object.117:param url: URL for the new :class:`Request` object.118:param params: (optional) Dictionary or bytes to be sent in the query119    string for the :class:`Request`.120:param data: (optional) Dictionary, list of tuples, bytes, or file-like121    object to send in the body of the :class:`Request`.122:param json: (optional) json to send in the body of the123    :class:`Request`.124:param headers: (optional) Dictionary of HTTP Headers to send with the125    :class:`Request`.126:param cookies: (optional) Dict or CookieJar object to send with the127    :class:`Request`.128:param files: (optional) Dictionary of ``'filename': file-like-objects``129    for multipart encoding upload.130:param auth: (optional) Auth tuple or callable to enable131    Basic/Digest/Custom HTTP Auth.132:param timeout: (optional) How many seconds to wait for the server to send133    data before giving up, as a float, or a :ref:`(connect timeout,134    read timeout) <timeouts>` tuple.135:type timeout: float or tuple136:param allow_redirects: (optional) Set to True by default.137:type allow_redirects: bool138:param proxies: (optional) Dictionary mapping protocol or protocol and139    hostname to the URL of the proxy.140:param hooks: (optional) Dictionary mapping hook name to one event or141    list of events, event must be callable.142:param stream: (optional) whether to immediately download the response143    content. Defaults to ``False``.144:param verify: (optional) Either a boolean, in which case it controls whether we verify145    the server's TLS certificate, or a string, in which case it must be a path146    to a CA bundle to use. Defaults to ``True``. When set to147    ``False``, requests will accept any TLS certificate presented by148    the server, and will ignore hostname mismatches and/or expired149    certificates, which will make your application vulnerable to150    man-in-the-middle (MitM) attacks. Setting verify to ``False``151    may be useful during local development or testing.152:param cert: (optional) if String, path to ssl client cert file (.pem).153    If Tuple, ('cert', 'key') pair.154:rtype: requests.Response155zutf-8)156r�r�r_r�r�r�r�r�rQr�)r}r�)r6�bytes�decoder!r�r�r��merge_environment_settingsr�r7rX)rUr�r�r�r�r_rQr�r�r}r�r�r�r|r~rr�r��prep�settings�send_kwargsras                      rArV�Session.request-s���|�c�5�!�!��*�*�W�%�C���<�<�>���������<�R����157���#�#�C�(���D�!�!�!�!��-�R���2�2��H�H�g�v�158���.�159��	���8�$��y�y��-��-���rIc�R�URSS5 UR"SU4SU0UD6$)a9Sends a GET request. Returns :class:`Response` object.160 161:param url: URL for the new :class:`Request` object.162:param params: (optional) Dictionary, list of tuples or bytes to send163in the query string for the :class:`Request`.164:param \*\*kwargs: Optional arguments that ``request`` takes.165:rtype: requests.Response166r�Tr�r���167setdefaultrV)rUr�r�rWs    rArE�Session.get�s0��	���+�T�2��|�|�E�3�@�v�@��@�@rIc�N�URSS5 UR"SU40UD6$)z�Sends a OPTIONS request. Returns :class:`Response` object.168 169:param url: URL for the new :class:`Request` object.170:param \*\*kwargs: Optional arguments that ``request`` takes.171:rtype: requests.Response172r�T�OPTIONSr��rUr�rWs   rA�options�Session.options�s+��	���+�T�2��|�|�I�s�5�f�5�5rIc�N�URSS5 UR"SU40UD6$)z�Sends a HEAD request. Returns :class:`Response` object.173 174:param url: URL for the new :class:`Request` object.175:param \*\*kwargs: Optional arguments that ``request`` takes.176:rtype: requests.Response177r�Fr�r�r�s   rA�head�Session.head�s+��	���+�U�3��|�|�F�C�2�6�2�2rIc�.�UR"SU4X#S.UD6$)a�Sends a POST request. Returns :class:`Response` object.178 179:param url: URL for the new :class:`Request` object.180:param data: (optional) Dictionary, list of tuples, bytes, or file-like181    object to send in the body of the :class:`Request`.182:param json: (optional) json to send in the body of the :class:`Request`.183:param \*\*kwargs: Optional arguments that ``request`` takes.184:rtype: requests.Response185r�)r�r��rV)rUr�r�r�rWs     rA�post�Session.post�s��"�|�|�F�C�H�d�H��H�HrIc�.�UR"SU4SU0UD6$)aESends a PUT request. Returns :class:`Response` object.186 187:param url: URL for the new :class:`Request` object.188:param data: (optional) Dictionary, list of tuples, bytes, or file-like189    object to send in the body of the :class:`Request`.190:param \*\*kwargs: Optional arguments that ``request`` takes.191:rtype: requests.Response192�PUTr�r�rUr�r�rWs    rA�put�Session.put�s���|�|�E�3�<�T�<�V�<�<rIc�.�UR"SU4SU0UD6$)aGSends a PATCH request. Returns :class:`Response` object.193 194:param url: URL for the new :class:`Request` object.195:param data: (optional) Dictionary, list of tuples, bytes, or file-like196    object to send in the body of the :class:`Request`.197:param \*\*kwargs: Optional arguments that ``request`` takes.198:rtype: requests.Response199�PATCHr�rr200s    rA�patch�
Session.patch�s���|�|�G�S�>�t�>�v�>�>rIc�*�UR"SU40UD6$)z�Sends a DELETE request. Returns :class:`Response` object.201 202:param url: URL for the new :class:`Request` object.203:param \*\*kwargs: Optional arguments that ``request`` takes.204:rtype: requests.Response205�DELETErr�s   rA�delete�Session.delete�s���|�|�H�c�4�V�4�4rIc��URSUR5 URSUR5 URSUR5 SU;a#[	XR206UR5US'[U[5(a[S5e[U5(deURSS5nURS5nURnURURS9n[!5nUR""U40UD6n[!5U-207n	[%U	S	9Ul[)S208XX40UD6nUR*(a>UR*H.n209[-UR.U210R0U211R25 M0 [-UR.XR25 U(a%UR4"X�40UD6nUV212s/sHo�PM nn213O/nU(a(UR7SU5 UR5nX�lU(d$[9UR4"X�4SS0UD65UlU(dUR> U$s sn214f![<a N&f=f)
z9Send a given PreparedRequest.215 216:rtype: requests.Response217r|r~rr�z#You can only send PreparedRequests.r�T)r�)�secondsrDrr�) r�r|r~rr+r�rPr6r!�218ValueErrorr�r�rEr��get_adapterr��preferred_clockrXr�elapsedrr�rrQrVr�r��insert�next�_next�
StopIterationr�)
rUrVrWr�r|r��adapter�start�rrra�genr�s
             rArX�Session.send�s��	���(�D�K�K�0����(�D�K�K�0����&�$�)�)�,��F�"� /����t�~�~� V�F�9���g�w�'�'��B�C�C��G�$�$�$�$�!�*�*�%6��=�����H�%���
�
���"�"�w�{�{�"�3�� �!��
�L�L��+�F�+��"�#�e�+���g�.��	�
�*�e�9�&�9��
�9�9��	�	��&�t�|�|�T�\�\�4�8�8�L�"�	�t�|�|�W�e�e�<���(�(��>�v�>�C�(+�,���t��G�,�G��G���N�N�1�a� ����
�A��I��
���*�*�1�U�d�U�f�U�����
�I�I����1-��$!�
��
�s�219I	�#I�220I�Ic��UR(a�UbURS5OSn[XS9nUb*UR5Hup�UR	X�5 M USLdUcN[221RRS5=(d( [222RRS5=(d Un[X R5n[X0R5n[X@R5n[XPR5nX#XES.$)zF223Check the environment and merge it with some settings.224 225:rtype: dict226N�no_proxy)r%T�REQUESTS_CA_BUNDLE�CURL_CA_BUNDLE)r�r|r~r)rPrEr(r8r��os�environrBr�r|r~r)227rUr�r�r|r~rr%�env_proxiesr=r>s228          rAr��"Session.merge_environment_settings?s����>�>�29�2E�w�{�{�:�.�4�H�-�c�E�K��"�'�-�-�/�D�A��&�&�q�,�0�229��~����J�J�N�N�#7�8���z�z�~�~�&6�7���� ����6���v�{�{�3���v�{�{�3���T�9�9�-��"��U�UrIc���URR5H;up#UR5RUR55(dM9Us $ [	SU<35e)zf230Returns the appropriate connection adapter for the given URL.231 232:rtype: requests.adapters.BaseAdapter233z&No connection adapters were found for )r�r8�lowerr�r)rUr��prefixrs    rAr�Session.get_adapterfsT�� $�}�}�2�2�4�O�F��y�y�{�%�%�f�l�l�n�5�5��� 5�234�D�S�G�L�M�MrIc�f�URR5HnUR5 M g)z+Closes all adapters and as such the sessionN)r��valuesr�)rUr>s  rAr��
Session.closess"�����%�%�'�A�
�G�G�I�(rIc���X RU'URVs/sHn[U5[U5:dMUPM! nnUH+nURRU5URU'M- gs snf)zgRegisters a connection adapter to a prefix.235 236Adapters are sorted in descending order by prefix length.237N)r�r�r�)rUr.rr=�keys_to_mover@s      rAr��
Session.mountxsd��238!(�
�
�f��#'�=�=�I�=�a�C��F�S��[�4H��=��I��C�!%���!2�!2�3�!7�D�M�M�#�� ��Js239�A7�A7c	�\�URVs0sHo[XS5_M nnU$s snfrS)r��getattr)rU�attr�states   rA�__getstate__�Session.__getstate__�s/��=A�^�^�L�^�T�w�t�4�0�0�^��L����Ms�)c�N�UR5Hup#[XU5 M grS)r8�setattr)rUr9r8�values    rA�__setstate__�Session.__setstate__�s�� �;�;�=�K�D��D��&�)rI)r�r�rrQr_r�rNr�r�r|rPr~)r�r�)r�r0)r�r240r�r�)rVr!r�r )NNNNNNNTNNNNNN)"r�r�r�r�r��
_t.ParamsTyper��_t.DataTyper_z Mapping[str, str | bytes] | NonerQz5RequestsCookieJar | CookieJar | dict[str, str] | Noner�z_t.FilesTyper�r�r}r�r�rOr�r�r�z_t.HooksInputType | Noner|�bool | Noner~�_t.VerifyType | Nonerr�r��_t.JsonTyper�r"rS)r�r�r�rArWzUnpack[_t.GetKwargs]r�r")r�r�rWzUnpack[_t.RequestKwargs]r�r"r�)241r�r�r�rBr�rErWzUnpack[_t.PostKwargs]r�r")r�r�r�rBrWzUnpack[_t.DataKwargs]r�r"r�)r�r�r�r�r|rCr~rDrr�r��dict[str, Any])r�r�r�r3)r.r�rr3r�r�)r�rF)r9rFr�r�)r�r�r�r��__doc__r�r�r�r�r�r�rVrEr�rrrrrrXr�rr�r�r:r?r�rTrIrAr�r��s����$&�%�242��
��'�'�$�$��L���243�����O�
��.�.�
�I�y�
�=-�~��,�d!%� �48�IM�"� �"&� $�)-�*.�"�'+� � �#`��`��`��	`�244�`�2�
`�G�`��`��`� �`��`�'�`�(�`��`�%�`� �!`�"�#`�$245�%`�J!%�A�
�A��A�'�	A�246247�A�$	6�	3�!� �	I�
�I��I��	I�248(�I�249�
I�(48�=��=�%0�=�CX�=�	�=�48�?��?�%0�?�CX�?�	�?�5�M�^%V�
�%V�'�%V��	%V�250%�%V��
%V�251�%V�NN��252	8��'rIr�c��[5$)a>253Returns a :class:`Session` for context-management.254 255.. deprecated:: 1.0.0256 257    This method has been deprecated since version 1.0.0 and is only kept for258    backwards compatibility. New code should use :class:`~requests.sessions.Session`259    to create a session. This may be removed at a future date.260 261:rtype: Session262)r�rTrIrA�sessionrI�s���9�rI)r9r263r:r264r;�typer�r265)rF�_t.HooksTyperGrKr;rJr�rK)r�r�)QrG�266__future__rr(�sys�time�collectionsr�collections.abcrrr�datetimer�typingr	r267r�_internal_utilsr
r2rr�r�rr�r�compatrrrrQrrrr�268exceptionsrrrrr�rr�modelsrrr r!r"�status_codesr#�269structuresr$�utilsr%r&r'r(r)r*r+r,r-r.�http.cookiejarr/�typing_extensionsr0r1rw�_tr3�platform�perf_counterrrBrHrKr�rIrTrIrA�<module>r_s+���#�	�270��#�>�>��+�+�-�/�!�!�0�0�����0��� �+�����(�.��%��<�<�7���'�'�O��i�i�O�DO����+.��<@����F#�C��C��C��C��	C�&I)�I)�X~'�"�~'�BrI
codekingpro/portable-devtools · Team Ai