Module Expr Str Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias identifier ImportFrom alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias alias alias ImportFrom alias Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad GeneratorExp TupleLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If BoolOpAnd Call AttributeLoad Call AttributeLoad NameLoad attr attr Str NameLoad body Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad If NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad NameLoad Str Dict Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad Call AttributeLoad NameLoad attr attr If NameLoad body Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore BoolOpOr NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr If NameLoad body Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict Assign TupleStore NameStore NameStore Call NameLoad NameLoad If BoolOpAnd NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore UnaryOpNot BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad CompareIn Str AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call NameLoad keyword NameLoad orelse Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad TryExcept body If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad orelse If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad Call NameLoad Call NameLoad NameLoad Slice Num attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body If Call NameLoad NameLoad NameLoad body Raise Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Raise Call NameLoad NameLoad orelse Raise Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Expr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A 
requests.adapters
~~~~~~~~~~~~~~~~~

This module contains the transport adapters that Requests uses to define
and maintain connections.
 N/A socket models Response packages.urllib3.poolmanager PoolManager proxy_from_url packages.urllib3.response HTTPResponse packages.urllib3.util Timeout TimeoutSauce compat urlparse basestring urldefrag unquote utils DEFAULT_CA_BUNDLE_PATH get_encoding_from_headers except_on_missing_scheme get_auth_from_url structures CaseInsensitiveDict packages.urllib3.exceptions MaxRetryError packages.urllib3.exceptions TimeoutError packages.urllib3.exceptions SSLError _SSLError packages.urllib3.exceptions HTTPError _HTTPError cookies extract_cookies_to_jar exceptions ConnectionError Timeout SSLError auth _basic_auth_str N/A DEFAULT_POOLBLOCK False N/A DEFAULT_POOLSIZE 10 N/A DEFAULT_RETRIES 0 BaseAdapter N/A object N/A N/A The Base Transport Adapter __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super BaseAdapter self __init__ N/A send N/A N/A self N/A N/A N/A NotImplementedError N/A close N/A N/A self N/A N/A N/A NotImplementedError N/A N/A HTTPAdapter N/A BaseAdapter N/A N/A The built-in HTTP Adapter for urllib3.

    Provides a general-case interface for Requests sessions to contact HTTP and
    HTTPS urls by implementing the Transport Adapter interface. This class will
    usually be created by the :class:`Session <Session>` class under the
    covers.

    :param pool_connections: The number of urllib3 connection pools to cache.
    :param pool_maxsize: The maximum number of connections to save in the pool.
    :param max_retries: The maximum number of retries each connection should attempt.
    :param pool_block: Whether the connection pool should block for connections.

    Usage::

      >>> import requests
      >>> s = requests.Session()
      >>> a = requests.adapters.HTTPAdapter()
      >>> s.mount('http://', a)
     N/A __attrs__ N/A max_retries config _pool_connections _pool_maxsize _pool_block __init__ N/A N/A self pool_connections pool_maxsize max_retries pool_block N/A DEFAULT_POOLSIZE DEFAULT_POOLSIZE DEFAULT_RETRIES DEFAULT_POOLBLOCK N/A N/A N/A self max_retries max_retries N/A N/A self config N/A N/A N/A self proxy_manager N/A N/A N/A N/A N/A super HTTPAdapter self __init__ N/A N/A self _pool_connections pool_connections N/A N/A self _pool_maxsize pool_maxsize N/A N/A self _pool_block pool_block N/A N/A N/A self init_poolmanager pool_connections pool_maxsize block pool_block N/A __getstate__ N/A N/A self N/A N/A N/A N/A dict N/A N/A attr N/A getattr self attr None N/A attr N/A self __attrs__ N/A __setstate__ N/A N/A self state N/A N/A N/A N/A attr value N/A N/A state items N/A N/A N/A setattr self attr value N/A N/A N/A self init_poolmanager N/A self _pool_connections N/A self _pool_maxsize block N/A self _pool_block N/A init_poolmanager N/A N/A self connections maxsize block N/A DEFAULT_POOLBLOCK N/A N/A Initializes a urllib3 PoolManager. This method should not be called
        from user code, and is only exposed for use when subclassing the
        :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.

        :param connections: The number of urllib3 connection pools to cache.
        :param maxsize: The maximum number of connections to save in the pool.
        :param block: Block when no free connections are available.
         N/A N/A self _pool_connections connections N/A N/A self _pool_maxsize maxsize N/A N/A self _pool_block block N/A N/A self poolmanager N/A PoolManager num_pools connections maxsize maxsize block block N/A cert_verify N/A N/A self conn url verify cert N/A N/A N/A Verify a SSL certificate. This method should not be called from user
        code, and is only exposed for use when subclassing the
        :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.

        :param conn: The urllib3 connection object associated with the cert.
        :param url: The requested URL.
        :param verify: Whether we should actually verify the certificate.
        :param cert: The SSL certificate to verify.
         N/A N/A N/A N/A N/A N/A url lower startswith https verify N/A N/A cert_loc None N/A N/A verify True N/A N/A cert_loc verify N/A N/A cert_loc N/A N/A cert_loc DEFAULT_CA_BUNDLE_PATH N/A N/A cert_loc N/A N/A N/A Exception Could not find a suitable SSL CA certificate bundle. N/A N/A conn cert_reqs CERT_REQUIRED N/A N/A conn ca_certs cert_loc N/A N/A N/A conn cert_reqs CERT_NONE N/A N/A conn ca_certs None N/A cert N/A N/A N/A N/A isinstance cert basestring N/A N/A N/A conn cert_file N/A cert N/A 0 N/A N/A conn key_file N/A cert N/A 1 N/A N/A N/A conn cert_file cert N/A build_response N/A N/A self req resp N/A N/A N/A Builds a :class:`Response <requests.Response>` object from a urllib3
        response. This should not be called from user code, and is only exposed
        for use when subclassing the
        :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`

        :param req: The :class:`PreparedRequest <PreparedRequest>` used to generate the response.
        :param resp: The urllib3 response object.
         N/A response N/A Response N/A N/A response status_code N/A getattr resp status None N/A N/A response headers N/A CaseInsensitiveDict N/A getattr resp headers N/A N/A N/A response encoding N/A get_encoding_from_headers N/A response headers N/A N/A response raw resp N/A N/A response reason N/A N/A response raw reason N/A N/A isinstance N/A req url bytes N/A N/A N/A response url N/A N/A N/A req url decode utf-8 N/A N/A N/A response url N/A req url N/A N/A extract_cookies_to_jar N/A response cookies req resp N/A N/A response request req N/A N/A response connection self N/A response N/A get_connection N/A N/A self url proxies N/A None N/A N/A Returns a urllib3 connection for the given URL. This should not be
        called from user code, and is only exposed for use when subclassing the
        :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.

        :param url: The URL to connect to.
        :param proxies: (optional) A Requests-style dictionary of proxies used on this request.
         N/A proxies N/A proxies N/A N/A proxy N/A N/A proxies get N/A N/A urlparse N/A N/A url lower scheme N/A proxy N/A N/A N/A except_on_missing_scheme proxy N/A proxy_headers N/A N/A self proxy_headers proxy N/A N/A N/A proxy N/A self proxy_manager N/A N/A N/A N/A self proxy_manager N/A proxy N/A proxy_from_url proxy proxy_headers proxy_headers N/A conn N/A N/A N/A N/A self proxy_manager N/A proxy connection_from_url url N/A N/A conn N/A N/A N/A self poolmanager connection_from_url N/A N/A url lower N/A conn N/A close N/A N/A self N/A N/A N/A Disposes of any internal state.

        Currently, this just closes the PoolManager, which closes pooled
        connections.
         N/A N/A N/A N/A self poolmanager clear N/A request_url N/A N/A self request proxies N/A N/A N/A Obtain the url to use when making the final request.

        If the message is being sent through a proxy, the full URL has to be
        used. Otherwise, we should only use the path portion of the URL.

        This should not be called from user code, and is only exposed for use
        when subclassing the
        :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.

        :param request: The :class:`PreparedRequest <PreparedRequest>` being sent.
        :param proxies: A dictionary of schemes to proxy URLs.
         N/A proxies N/A proxies N/A N/A proxy N/A N/A proxies get N/A N/A urlparse N/A request url scheme N/A proxy N/A N/A N/A url _ N/A urldefrag N/A request url N/A N/A url N/A request path_url N/A url N/A add_headers N/A N/A self request N/A kwargs N/A N/A Add any headers needed by the connection. As of v2.0 this does
        nothing by default, but is left for overriding by users that subclass
        the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.

        This should not be called from user code, and is only exposed for use
        when subclassing the
        :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.

        :param request: The :class:`PreparedRequest <PreparedRequest>` to add headers to.
        :param kwargs: The keyword arguments from the call to send().
         N/A N/A proxy_headers N/A N/A self proxy N/A N/A N/A Returns a dictionary of the headers to add to any request sent
        through a proxy. This works with urllib3 magic to ensure that they are
        correctly sent to the proxy, rather than in a tunnelled request if
        CONNECT is being used.

        This should not be called from user code, and is only exposed for use
        when subclassing the
        :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.

        :param proxies: The url of the proxy being used for this request.
        :param kwargs: Optional additional keyword arguments.
         N/A headers N/A N/A N/A username password N/A get_auth_from_url proxy N/A N/A username password N/A N/A username N/A unquote username N/A password N/A unquote password N/A N/A headers N/A Proxy-Authorization N/A _basic_auth_str username password N/A headers N/A send N/A N/A self request stream timeout verify cert proxies N/A False None True None None N/A N/A Sends PreparedRequest object. Returns Response object.

        :param request: The :class:`PreparedRequest <PreparedRequest>` being sent.
        :param stream: (optional) Whether to stream the request content.
        :param timeout: (optional) The timeout on the request.
        :param verify: (optional) Whether to verify SSL certificates.
        :param vert: (optional) Any user-provided SSL certificate to be trusted.
        :param proxies: (optional) The proxies dictionary to apply to the request.
         N/A conn N/A N/A self get_connection N/A request url proxies N/A N/A N/A self cert_verify conn N/A request url verify cert N/A url N/A N/A self request_url request proxies N/A N/A N/A self add_headers request N/A chunked N/A N/A N/A N/A request body None N/A Content-Length N/A request headers N/A stream N/A N/A timeout N/A TimeoutSauce connect timeout N/A N/A timeout N/A TimeoutSauce connect timeout read timeout N/A N/A N/A N/A chunked N/A N/A resp N/A N/A conn urlopen method N/A request method url url body N/A request body headers N/A request headers redirect False assert_same_host False preload_content False decode_content False retries N/A self max_retries timeout timeout N/A N/A N/A hasattr conn proxy_pool N/A N/A conn N/A conn proxy_pool N/A low_conn N/A N/A conn _get_conn timeout timeout N/A N/A N/A low_conn putrequest N/A request method url skip_accept_encoding True N/A N/A header value N/A N/A N/A request headers items N/A N/A N/A N/A low_conn putheader header value N/A N/A N/A low_conn endheaders N/A i N/A request body N/A N/A N/A N/A low_conn send N/A N/A N/A N/A hex N/A len i N/A 2 encode utf-8 N/A N/A N/A low_conn send N/A N/A N/A low_conn send i N/A N/A N/A low_conn send N/A N/A N/A low_conn send 0

 N/A r N/A N/A low_conn getresponse N/A resp N/A N/A HTTPResponse from_httplib r pool conn connection low_conn preload_content False decode_content False N/A N/A N/A N/A socket error N/A sockerr N/A N/A N/A ConnectionError sockerr N/A N/A MaxRetryError N/A e N/A N/A N/A ConnectionError e N/A N/A N/A _SSLError _HTTPError N/A e N/A N/A N/A isinstance e _SSLError N/A N/A N/A SSLError e N/A N/A N/A isinstance e TimeoutError N/A N/A N/A Timeout e N/A N/A N/A r N/A N/A self build_response request resp N/A N/A stream N/A N/A N/A r content N/A r N/A N/A