All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kr.motd.maven.sphinx.dist.urllib3.contrib.appengine$py.class Maven / Gradle / Ivy

There is a newer version: 2.10.0
Show newest version
????1bf$0R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;__doc__C
This module provides a pool manager that uses Google App Engine's
`URLFetch Service `_.

Example usage::

    from urllib3 import PoolManager
    from urllib3.contrib.appengine import AppEngineManager, is_appengine_sandbox

    if is_appengine_sandbox():
        # AppEngineManager uses AppEngine's URLFetch API behind the scenes
        http = AppEngineManager()
    else:
        # PoolManager uses a socket-level API behind the scenes
        http = PoolManager()

    r = http.request('GET', 'https://google.com/')

There are `limitations `_ to the URLFetch service and it may not be
the best choice for your application. There are three options for using
urllib3 on Google App Engine:

1. You can use :class:`AppEngineManager` with URLFetch. URLFetch is
   cost-effective in many circumstances as long as your usage is within the
   limitations.
2. You can use a normal :class:`~urllib3.PoolManager` by enabling sockets.
   Sockets also have `limitations and restrictions
   `_ and have a lower free quota than URLFetch.
   To use sockets, be sure to specify the following in your ``app.yaml``::

        env_variables:
            GAE_USE_SOCKETS_HTTPLIB : 'true'

3. If you are using `App Engine Flexible
`_, you can use the standard
:class:`PoolManager` without any configuration or special environment variables.
org/python/core/PyStringfromInterned.(Ljava/lang/String;)Lorg/python/core/PyString;	

org/python/core/PyFrame
	setglobal/(Ljava/lang/String;Lorg/python/core/PyObject;)V
setline(I)V

__future__java/lang/Stringabsolute_importorg/python/core/imp
importFrom\(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; 
!setlocal#
$logging&	importOneH(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;()
*os,warnings.packages.six.moves.urllib.parse0urljoin2
exceptions4	HTTPError6HTTPWarning8
MaxRetryError:
ProtocolError<TimeoutError>SSLError@packages.sixBBytesIODrequestFRequestMethodsHresponseJHTTPResponseLutil.timeoutNTimeoutP
util.retryRRetryTgoogle.appengine.apiVurlfetchXorg/python/core/PyZsetExceptionM(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException;\]
[^ImportError`getname.(Ljava/lang/String;)Lorg/python/core/PyObject;bc
dorg/python/core/PyExceptionfmatch(Lorg/python/core/PyObject;)Zhi
gjNoneljava/lang/Throwablen	getLoggerporg/python/core/PyObjectr__getattr__tc
su__name__w__call__S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;yz
s{log}AppEnginePlatformWarningAppEnginePlatformWarning$1
__module__?getf_locals()Lorg/python/core/PyObject;??
?urllib3/contrib/appengine$py?Lorg/python/core/PyCode;??	??	makeClassa(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject;??
[?java/util/Arrays?fill(([Ljava/lang/Object;Ljava/lang/Object;)V??
??AppEnginePlatformError?AppEnginePlatformError$2??	??AppEngineManager?AppEngineManager$3
    Connection manager for Google App Engine sandbox applications.

    This manager uses the URLFetch service directly instead of using the
    emulated httplib, and is subject to URLFetch limitations as described in
    the App Engine documentation `here
    `_.

    Notably it will raise an :class:`AppEnginePlatformError` if:
        * URLFetch is not available.
        * If you attempt to use this on App Engine Flexible, as full socket
          support is available.
        * If a request size is more than 10 megabytes.
        * If a response size is more than 32 megabtyes.
        * If you use an unsupported request method such as OPTIONS.

    Beyond those cases, it will raise normal urllib3 errors.
    ?True?org/python/core/PyFunction?	f_globalsLorg/python/core/PyObject;??	?
__init__$4	getglobal?c
?__not__??
s?__nonzero__()Z??
s?.URLFetch is not available in this environment.?
makeException9(Lorg/python/core/PyObject;)Lorg/python/core/PyException;??
[?is_prod_appengine_mvms?9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;y?
s??Use normal urllib3.PoolManager instead of AppEngineManageron Managed VMs, as using URLFetch is not necessary in this environment.?warn??urllib3 is using URLFetch on Google App Engine sandbox instead of sockets. To use sockets directly instead of URLFetch see https://urllib3.readthedocs.io/en/latest/reference/urllib3.contrib.html.?m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;y?
s?__init__?getlocal(I)Lorg/python/core/PyObject;??
?validate_certificate?__setattr__?
s?urlfetch_retries?DEFAULT?retries?f_lastiI??	?l?	[???	??j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V??
??EmptyObjectsorg/python/core/PyObject;??	[?__enter__$5??	??	__enter__?
__exit__$6False???	??__exit__?DEFAULT_TIMEOUT?	urlopen$7_get_retries?(ILorg/python/core/PyObject;)V#?
?redirect?
newInteger(I)Lorg/python/core/PyInteger;?
[_ne6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject;
stotalfetch	org/python/core/PyDictionary([Lorg/python/core/PyObject;)V?
_get_absolute_timeoutpayloadmethodheadersallow_truncatedfollow_redirectsdeadlineg(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject;y
sDeadlineExceededError!value#?	g$InvalidURLError&	too large(str*_in,
s-OURLFetch request too large, URLFetch only supports requests up to 10mb in size./
DownloadError1Too many redirects3reason5ResponseTooLargeError7PURLFetch response too large, URLFetch only supportsresponses up to 32mb in size.9SSLCertificateError;InvalidMethodError=$URLFetch does not support method: %s?_modA
sB#_urlfetch_response_to_http_responseD
_callextra~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;FG
sHget_redirect_locationJraise_on_redirectLtoo many redirectsN?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;yP
sQstatusS_eqU
sVGETX	incrementZ_pool\sleep_for_retry^debug`Redirecting %s -> %sburlopendtimeoutfboolh	getheaderjRetry-Afterlis_retryn	Retry: %spsleeprbodyt??	?v%_urlfetch_response_to_http_response$8is_prod_appengineyget{content-encoding}deflate__delitem__(Lorg/python/core/PyObject;)V??
s?transfer-encoding?chunked?split?,?remove?join?__setitem__7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V??
s?content?status_code?x?	??_get_absolute_timeout$9_is?
s?
isinstance?_read?_isnot?
s?_connect?dURLFetch does not support granular timeout settings, reverting to total or default URLFetch timeout.???	??_get_retries$10from_int?default?connect?read?hURLFetch only supports total retries and does not recognize connect, read, or redirect retry parameters.???	????	??is_appengine$11is_local_appengine???	??is_appengine?is_appengine_sandbox$12??	??is_appengine_sandbox?is_local_appengine$13APPENGINE_RUNTIME?environ?Development/?SERVER_SOFTWARE?__getitem__?
s???	??is_prod_appengine$14Google App Engine/???	??is_prod_appengine_mvms$15GAE_VM?true???	??(Ljava/lang/String;)Vorg/python/core/PyFunctionTable?()V??
??selfLurllib3/contrib/appengine$py;??	???newCode?(I[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZLorg/python/core/PyFunctionTable;I[Ljava/lang/String;[Ljava/lang/String;II)Lorg/python/core/PyCode;??
[??	???exc_type?exc_val?exc_tb?url?response_kw?e?
http_responseredirect_locationredirect_urlhas_retry_after
urlfetch_respcontent_encoding
transfer_encoding	encodingsgetMain()Lorg/python/core/PyCode;main([Ljava/lang/String;)V???
?
?org/python/core/CodeLoadercreateSimpleBootstrap9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;
runMain5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V 
[!getCodeBootstrap!()Lorg/python/core/CodeBootstrap;#org/python/core/PyRunnableBootstrap%)getFilenameConstructorReflectionBootstrap2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;'(
&)
call_functionS(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
?-?
?/?
?1?
?3?
?5?
?7?
?9?
?;x
?=?
???
?A?
?C?
?E?
?G?
?I?
?Korg/python/core/PyRunnableM Lorg/python/compiler/APIVersion;%Lorg/python/compiler/MTime;`9??Lorg/python/compiler/Filename;c/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/urllib3/contrib/appengine.pyorg/python/core/ThreadStateV?java/lang/ObjectY[Ljava/lang/String;[CodeLineNumberTableStackMap
SourceFileRuntimeVisibleAnnotations!??N?????????????????x???????????????]??+??+'??W+)??N-S-+?"N-2:+?%:+*?'+?+N+'-?%N++?-+?+N+--?%N+,?/+?+N+/-?%N+-?1?N-3S-+?"N-2:+3?%:+/?5?N-7S-9S-;S-=S-?S-AS-+?"N-2:+7?%:-2:+9?%:-2:+;?%:-2:+=?%:-2:+??%:-2:+A?%:+8?C?N-ES-+?"N-2:+E?%:+9?G?N-IS-+?"N-2:+I?%:+:?K?N-MS-+?"N-2:+M?%:+;?O?N-QS-+?"N-2:+Q?%:+:?WXoh?Wgj?WZ?]/+?+x?e?%+H?+???^H?]/+?+x?e?%+L?+???^L?]??+?+x?e?%+???%+a???W+c??sN+m?e-__S+m?e-__S+??e-__S+??e-__S??Y+??-????N+?-?%N+{???N??Y+??-????N+?-?%N+~???N??Y+??-????N+?-?%N+???sN+m?e-__S+m?e-__S+m?e-__S+??e-__S+Q?e??v-__S??Y+??-?w??N+e-?%N+ݶ??N??Y+??-????N+E-?%N+????N??Y+??-????N+-?%N+???N??Y+??-????N+?-?%N+???^"ac{~????]v+e?+Y???????+f?+???,???|???+i?+???,?????+j?+???,???|???+o?+/??¶v,ĸ+?????W+u?+I??ɶv,+??+?Ͷ?W+v?+??N+???-??N+w?+??N+???-??N+y?+??Y???W+U??ֶvN+???-??N+?ܲް^&	efijouvwy_3.?W]?W??Ws?]++|?+??N+??-?^|?]-+??+??N+??-?^??]e?+??+????v,+??+?Ͷ?N+-??N+??+??Y???-W+????vN?-_?NY???W+???vN+	-??N+??+Y??
?v,?sN+??-__S+??-__S+??-__S+??Y???W?Y??-__S+??-__S+??ԶvY???
W+	??-__S+???v,+?Ͷ|-__S+??϶v-__S?:SSSSSS?S-? NN+
-??N?+?_N-+Y??"?v?k?7-?%:+??:+??+???,+??+?ͶǸ???-+Y??'?v?k??-?%:+??:+??)?:++??,+?Ͷ|_?.:???$+??+???,0?+?ͶǸ??+??+=??,+?Ͷ|????-+Y??2?v?k??-?%:+??:+??4?:++??,+?Ͷ|_?.:???T+??+;??,?s:+??__S+??__S+??__S?:6S? :???+??+=??,+?Ͷ|????-+Y??8?v?k?8-?%:+??:+??+???,:?+?ͶǸ???-+Y???v?k?@-?%:+??:+??+???,@?+?ͶC+?ͶǸ???-?+??+??E?v?sN+
??-__S+??-__S?:?S+??-^X?INN+-??N+??+??Y???W+??K?v,??N+
-??N+??+
?Ͷ??g+??+??ԶvY???W+??M?v???(+??+;??,+??+??O??R???+??+??T?vN/?-_?WN???+??Y?N+-??N?+??+??[?v,?sN+??-__S+??-__S+??-__S+??-__S?:KS]S-? NN+-??N?n+?_N-+;???k?Z+¶+??M?v???(+ö+;??,+??+??O??R???+Ķ+??:+????-?+ƶ+??_?v,+?Ͷ|W+Ƕ+~??a?v,c?+??+
?ͶRW+ȶ+3??,+??+
?Ͷ?N+-??N+ɶ+??e?v?sN+??-__S+??-__S+??-__S+??-__S+??-__S+??-__S+??-__S?:?S?SgS+??-^X?IN:+???+϶+i??,+??k?v,m??|?|N+-??N+ж+??o?v,+??+??T?v+?ͶR???K+Ѷ+??[?v,?sN+??-__S+??-__S+??-__S+??-__S?:KS]S-? NN+-??N+Ӷ+~??a?v,q?+?Ͷ?W+Զ+??s?v,+?Ͷ|W+ն+??e?v?sN+??-__S+??-__S+??-__S+??-__S+??-__S+??-__S+??-__S?:uSS?S?SgS+??-^X?IN:+???+۶+??:+???)beojmo^?#???????????????????????????????????_g?Ws??WXsWs??WXsWse?WXo?o??Wg%?Wg@oC?Wg??Wgo?WgJoM?Wg?o??Wg?o??Wg??W\Y?W\s??W\s??W\?W\m?WZ\o??Wg\?o??Wg\??W\??W\??W\x]:?+߶+z??,?????o+?+???v|?v,~??|N+-??N+?+??N??-_?WN???!+?+???v~?????+?+???v|?v,???|N+-??N+?+??N??-_?WN???|+?+????v,???|N+-??N+?+????v,???|W+??????v,+?Ͷ|N+???v??-??N?+?+M???sN+E??,+????v?|-__S+???v-__S+????v-__S?:uSSTS+??-^X?INN+??-?^*
??????????_1??W??WH?W?]{?+??+??N+Q????v-_??N???+??+m??N+??-?+??+???,+??+Q???Ƕ???+??+????v:+m??_??:Y??? W+????v:+m??_??:???)+??+/??¶v,??+?????W?+?+???vN+??-?+?+??N+??-?^?????_G:?W??Ws??W??W?]`+?+???,+??+U???Ƕ????f+?+U????v,?sN+??-__S+??-__S+??ضv-__S?:?S?S-? NN+-??N?+	?+????vY???!W+????vY???W+????v???)+
?+/??¶v,??+?????W?+?+??N+??-?^	
_2??W??Ws??W?]q?+?+???,??Y???!W+z??,??Y???W+???,??N+??-?^_7?Ws?]a/+?+???,??Y???W+???,????N+??-?^_'?Ws?]?T+?ɸN+-??˶v-_?.NY???'W͸N+-??˶vϸ??-_?.NN+??-?^_L?Ws?]?i+"?ɸN+-??˶v-_?.NY?????@??B??D??F??H??J??L??_?T?W?WX?W?W\?W?W`?W?Wd?W?Wh?W?Wl?W?Wp?W?Wt?W?Wx?W?W|?W?W??W?W??W?W??W?W??W?W??W?W??W?W`UaO#IPQ#JRT#sU




© 2015 - 2024 Weber Informatics LLC | Privacy Policy