Skip to content

requests 2.32.5

Version history | Download JSON

  • PyPI https://pypi.org/project/requests/
    Repository https://github.com/psf/requests

  • py.typed

  • Coverage


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "Typed" : 1
        "Any" : 0
        "Untyped" : 608
    • 0.2% coverage
    • 0.2% coverage (strict)
    • 609 typable
      • 1 typed
      • 608 untyped
      • 0 Any
  • Typables


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "functions" : 171
        "classes" : 382
        "other" : 8
    • 64 functions (+0 overloads)
      • 107 parameters
    • 44 classes
      • 146 methods (+0 overloads)
        • 224 parameters
      • 12 properties
    • 15 modules
      • 8 attrs

Modules

Module Coverage Coverage (strict) Typables Ignores
requests 0.0% 0.0% 4 0
requests.adapters 0.0% 0.0% 67 0
requests.api 0.0% 0.0% 30 0
requests.auth 0.0% 0.0% 36 0
requests.compat 0.0% 0.0% 2 0
requests.cookies 0.0% 0.0% 102 0
requests.exceptions 0.0% 0.0% 9 0
requests.help 0.0% 0.0% 2 0
requests.hooks 0.0% 0.0% 6 0
requests.models 0.0% 0.0% 116 0
requests.packages 50.0% 50.0% 2 0
requests.sessions 0.0% 0.0% 111 0
requests.status_codes 0.0% 0.0% 1 0
requests.structures 0.0% 0.0% 26 0
requests.utils 0.0% 0.0% 95 0

Incomplete Annotations

requests (4 missing, 0 any)

Symbol Typable Typed Any
func check_compatibility 4 0 0

requests.adapters (67 missing, 0 any)

Symbol Typable Typed Any
func SOCKSProxyManager 3 0 0
meth BaseAdapter.init 1 0 0
meth BaseAdapter.send 7 0 0
meth BaseAdapter.close 1 0 0
meth HTTPAdapter.init 5 0 0
meth HTTPAdapter.getstate 1 0 0
meth HTTPAdapter.setstate 2 0 0
meth HTTPAdapter.init_poolmanager 5 0 0
meth HTTPAdapter.proxy_manager_for 3 0 0
meth HTTPAdapter.cert_verify 5 0 0
meth HTTPAdapter.build_response 3 0 0
meth HTTPAdapter.build_connection_pool_key_attributes 4 0 0
meth HTTPAdapter.get_connection_with_tls_context 5 0 0
meth HTTPAdapter.get_connection 3 0 0
meth HTTPAdapter.close 1 0 0
meth HTTPAdapter.request_url 3 0 0
meth HTTPAdapter.add_headers 3 0 0
meth HTTPAdapter.proxy_headers 2 0 0
meth HTTPAdapter.send 7 0 0
attr HTTPAdapter.config 1 0 0
attr HTTPAdapter.proxy_manager 1 0 0
attr HTTPAdapter.max_retries 1 0 0

requests.api (30 missing, 0 any)

Symbol Typable Typed Any
func post 5 0 0
func options 3 0 0
func head 3 0 0
func delete 3 0 0
func request 4 0 0
func patch 4 0 0
func get 4 0 0
func put 4 0 0

requests.auth (36 missing, 0 any)

Symbol Typable Typed Any
meth HTTPProxyAuth.call 2 0 0
meth HTTPBasicAuth.init 3 0 0
meth HTTPBasicAuth.eq 2 0 0
meth HTTPBasicAuth.ne 2 0 0
meth HTTPBasicAuth.call 2 0 0
attr HTTPBasicAuth.username 1 0 0
attr HTTPBasicAuth.password 1 0 0
meth AuthBase.call 2 0 0
meth HTTPDigestAuth.init 3 0 0
meth HTTPDigestAuth.init_per_thread_state 1 0 0
meth HTTPDigestAuth.build_digest_header 3 0 0
meth HTTPDigestAuth.handle_redirect 3 0 0
meth HTTPDigestAuth.handle_401 3 0 0
meth HTTPDigestAuth.call 2 0 0
meth HTTPDigestAuth.eq 2 0 0
meth HTTPDigestAuth.ne 2 0 0
attr HTTPDigestAuth.username 1 0 0
attr HTTPDigestAuth.password 1 0 0

requests.compat (2 missing, 0 any)

Symbol Typable Typed Any
attr is_urllib3_1 1 0 0
attr chardet 1 0 0

requests.cookies (102 missing, 0 any)

Symbol Typable Typed Any
meth MockRequest.init 2 0 0
meth MockRequest.get_type 1 0 0
meth MockRequest.get_host 1 0 0
meth MockRequest.get_origin_req_host 1 0 0
meth MockRequest.get_full_url 1 0 0
meth MockRequest.is_unverifiable 1 0 0
meth MockRequest.has_header 2 0 0
meth MockRequest.get_header 3 0 0
meth MockRequest.add_header 3 0 0
meth MockRequest.add_unredirected_header 3 0 0
meth MockRequest.get_new_headers 1 0 0
prop MockRequest.unverifiable 1 0 0
prop MockRequest.origin_req_host 1 0 0
prop MockRequest.host 1 0 0
attr MockRequest.type 1 0 0
func extract_cookies_to_jar 4 0 0
func cookiejar_from_dict 4 0 0
meth MockResponse.init 2 0 0
meth MockResponse.info 1 0 0
meth MockResponse.getheaders 2 0 0
func get_cookie_header 3 0 0
func morsel_to_cookie 2 0 0
meth RequestsCookieJar.get 5 0 0
meth RequestsCookieJar.set 4 0 0
meth RequestsCookieJar.iterkeys 1 0 0
meth RequestsCookieJar.keys 1 0 0
meth RequestsCookieJar.itervalues 1 0 0
meth RequestsCookieJar.values 1 0 0
meth RequestsCookieJar.iteritems 1 0 0
meth RequestsCookieJar.items 1 0 0
meth RequestsCookieJar.list_domains 1 0 0
meth RequestsCookieJar.list_paths 1 0 0
meth RequestsCookieJar.multiple_domains 1 0 0
meth RequestsCookieJar.get_dict 3 0 0
meth RequestsCookieJar.contains 2 0 0
meth RequestsCookieJar.getitem 2 0 0
meth RequestsCookieJar.setitem 3 0 0
meth RequestsCookieJar.delitem 2 0 0
meth RequestsCookieJar.set_cookie 4 0 0
meth RequestsCookieJar.update 2 0 0
meth RequestsCookieJar._find 4 0 0
meth RequestsCookieJar._find_no_duplicates 4 0 0
meth RequestsCookieJar.getstate 1 0 0
meth RequestsCookieJar.setstate 2 0 0
meth RequestsCookieJar.copy 1 0 0
meth RequestsCookieJar.get_policy 1 0 0
func create_cookie 4 0 0
func remove_cookie_by_name 5 0 0
func merge_cookies 3 0 0

requests.exceptions (9 missing, 0 any)

Symbol Typable Typed Any
meth RequestException.init 3 0 0
attr RequestException.response 1 0 0
attr RequestException.request 1 0 0
meth JSONDecodeError.init 3 0 0
meth JSONDecodeError.reduce 1 0 0

requests.help (2 missing, 0 any)

Symbol Typable Typed Any
func info 1 0 0
func main 1 0 0

requests.hooks (6 missing, 0 any)

Symbol Typable Typed Any
func default_hooks 1 0 0
func dispatch_hook 5 0 0

requests.models (116 missing, 0 any)

Symbol Typable Typed Any
meth Response.init 1 0 0
meth Response.enter 1 0 0
meth Response.exit 2 0 0
meth Response.getstate 1 0 0
meth Response.setstate 2 0 0
meth Response.repr 1 0 0
meth Response.bool 1 0 0
meth Response.nonzero 1 0 0
meth Response.iter 1 0 0
meth Response.iter_content 3 0 0
meth Response.iter_lines 4 0 0
meth Response.json 2 0 0
meth Response.raise_for_status 1 0 0
meth Response.close 1 0 0
prop Response.ok 1 0 0
prop Response.is_redirect 1 0 0
prop Response.is_permanent_redirect 1 0 0
prop Response.next 1 0 0
prop Response.apparent_encoding 1 0 0
prop Response.content 1 0 0
prop Response.text 1 0 0
prop Response.links 1 0 0
attr Response.status_code 1 0 0
attr Response.headers 1 0 0
attr Response.raw 1 0 0
attr Response.url 1 0 0
attr Response.encoding 1 0 0
attr Response.history 1 0 0
attr Response.reason 1 0 0
attr Response.cookies 1 0 0
attr Response.elapsed 1 0 0
attr Response.request 1 0 0
meth RequestEncodingMixin._encode_params 2 0 0
meth RequestEncodingMixin._encode_files 3 0 0
prop RequestEncodingMixin.path_url 1 0 0
meth PreparedRequest.init 1 0 0
meth PreparedRequest.prepare 11 0 0
meth PreparedRequest.repr 1 0 0
meth PreparedRequest.copy 1 0 0
meth PreparedRequest.prepare_method 2 0 0
meth PreparedRequest._get_idna_encoded_host 2 0 0
meth PreparedRequest.prepare_url 3 0 0
meth PreparedRequest.prepare_headers 2 0 0
meth PreparedRequest.prepare_body 4 0 0
meth PreparedRequest.prepare_content_length 2 0 0
meth PreparedRequest.prepare_auth 3 0 0
meth PreparedRequest.prepare_cookies 2 0 0
meth PreparedRequest.prepare_hooks 2 0 0
attr PreparedRequest.method 1 0 0
attr PreparedRequest.url 1 0 0
attr PreparedRequest.headers 1 0 0
attr PreparedRequest.body 1 0 0
attr PreparedRequest.hooks 1 0 0
meth RequestHooksMixin.register_hook 3 0 0
meth RequestHooksMixin.deregister_hook 3 0 0
meth Request.init 11 0 0
meth Request.repr 1 0 0
meth Request.prepare 1 0 0
attr Request.hooks 1 0 0
attr Request.method 1 0 0
attr Request.url 1 0 0
attr Request.headers 1 0 0
attr Request.files 1 0 0
attr Request.data 1 0 0
attr Request.json 1 0 0
attr Request.params 1 0 0
attr Request.auth 1 0 0
attr Request.cookies 1 0 0

requests.packages (1 missing, 0 any)

Symbol Typable Typed Any
attr mod 1 0 0

requests.sessions (111 missing, 0 any)

Symbol Typable Typed Any
func merge_setting 4 0 0
meth SessionRedirectMixin.get_redirect_target 2 0 0
meth SessionRedirectMixin.should_strip_auth 3 0 0
meth SessionRedirectMixin.resolve_redirects 10 0 0
meth SessionRedirectMixin.rebuild_auth 3 0 0
meth SessionRedirectMixin.rebuild_proxies 3 0 0
meth SessionRedirectMixin.rebuild_method 3 0 0
func merge_hooks 4 0 0
meth Session.init 1 0 0
meth Session.enter 1 0 0
meth Session.exit 2 0 0
meth Session.prepare_request 2 0 0
meth Session.request 17 0 0
meth Session.get 3 0 0
meth Session.options 3 0 0
meth Session.head 3 0 0
meth Session.post 5 0 0
meth Session.put 4 0 0
meth Session.patch 4 0 0
meth Session.delete 3 0 0
meth Session.send 3 0 0
meth Session.merge_environment_settings 6 0 0
meth Session.get_adapter 2 0 0
meth Session.close 1 0 0
meth Session.mount 3 0 0
meth Session.getstate 1 0 0
meth Session.setstate 2 0 0
attr Session.headers 1 0 0
attr Session.auth 1 0 0
attr Session.proxies 1 0 0
attr Session.hooks 1 0 0
attr Session.params 1 0 0
attr Session.stream 1 0 0
attr Session.verify 1 0 0
attr Session.cert 1 0 0
attr Session.max_redirects 1 0 0
attr Session.trust_env 1 0 0
attr Session.cookies 1 0 0
attr Session.adapters 1 0 0
func session 1 0 0

requests.status_codes (1 missing, 0 any)

Symbol Typable Typed Any
attr codes 1 0 0

requests.structures (26 missing, 0 any)

Symbol Typable Typed Any
meth CaseInsensitiveDict.init 3 0 0
meth CaseInsensitiveDict.setitem 3 0 0
meth CaseInsensitiveDict.getitem 2 0 0
meth CaseInsensitiveDict.delitem 2 0 0
meth CaseInsensitiveDict.iter 1 0 0
meth CaseInsensitiveDict.len 1 0 0
meth CaseInsensitiveDict.lower_items 1 0 0
meth CaseInsensitiveDict.eq 2 0 0
meth CaseInsensitiveDict.copy 1 0 0
meth CaseInsensitiveDict.repr 1 0 0
meth LookupDict.init 2 0 0
meth LookupDict.repr 1 0 0
meth LookupDict.getitem 2 0 0
meth LookupDict.get 3 0 0
attr LookupDict.name 1 0 0

requests.utils (95 missing, 0 any)

Symbol Typable Typed Any
attr DEFAULT_ACCEPT_ENCODING 1 0 0
func get_unicode_from_response 2 0 0
func from_key_val_list 2 0 0
func atomic_open 2 0 0
func parse_dict_header 2 0 0
func get_environ_proxies 3 0 0
func urldefragauth 2 0 0
attr UNRESERVED_SET 1 0 0
func should_bypass_proxies 3 0 0
func set_environ 3 0 0
func unquote_header_value 3 0 0
func get_netrc_auth 3 0 0
func iter_slices 3 0 0
func check_header_validity 2 0 0
func extract_zipped_paths 2 0 0
func parse_header_links 2 0 0
func default_user_agent 2 0 0
func to_key_val_list 2 0 0
func dict_from_cookiejar 2 0 0
attr DEFAULT_CA_BUNDLE_PATH 1 0 0
func unquote_unreserved 2 0 0
func select_proxy 3 0 0
func guess_filename 2 0 0
func add_dict_to_cookiejar 3 0 0
func guess_json_utf 2 0 0
func prepend_scheme_if_needed 3 0 0
func address_in_network 3 0 0
func get_encodings_from_content 2 0 0
func dotted_netmask 2 0 0
func get_auth_from_url 2 0 0
func stream_decode_response_unicode 3 0 0
func rewind_body 2 0 0
func proxy_bypass 2 0 0
func is_ipv4_address 2 0 0
func is_valid_cidr 2 0 0
func proxy_bypass_registry 2 0 0
func super_len 2 0 0
func get_encoding_from_headers 2 0 0
func parse_list_header 2 0 0
func default_headers 1 0 0
func resolve_proxies 4 0 0
func requote_uri 2 0 0
func dict_to_sequence 2 0 0

Type-Ignore Comments

No type-ignore comments.