1from typing import Any, AnyStr, Iterable, Mapping, Text
2
3from . import compat, cookies, exceptions, structures
4
5OrderedDict = compat.OrderedDict
6RequestsCookieJar = cookies.RequestsCookieJar
7cookiejar_from_dict = cookies.cookiejar_from_dict
8CaseInsensitiveDict = structures.CaseInsensitiveDict
9InvalidURL = exceptions.InvalidURL
10
11NETRC_FILES: Any
12DEFAULT_CA_BUNDLE_PATH: Any
13DEFAULT_PORTS: Any
14
15def dict_to_sequence(d): ...
16def super_len(o): ...
17def get_netrc_auth(url, raise_errors: bool = ...): ...
18def guess_filename(obj): ...
19def extract_zipped_paths(path): ...
20def from_key_val_list(value): ...
21def to_key_val_list(value): ...
22def parse_list_header(value): ...
23def parse_dict_header(value): ...
24def unquote_header_value(value, is_filename=...): ...
25def dict_from_cookiejar(cj): ...
26def add_dict_to_cookiejar(cj, cookie_dict): ...
27def get_encodings_from_content(content): ...
28def get_encoding_from_headers(headers): ...
29def stream_decode_response_unicode(iterator, r): ...
30def iter_slices(string, slice_length): ...
31def get_unicode_from_response(r): ...
32
33UNRESERVED_SET: Any
34
35def unquote_unreserved(uri): ...
36def requote_uri(uri): ...
37def address_in_network(ip, net): ...
38def dotted_netmask(mask): ...
39def is_ipv4_address(string_ip): ...
40def is_valid_cidr(string_network): ...
41def set_environ(env_name, value): ...
42def should_bypass_proxies(url, no_proxy: Iterable[AnyStr] | None) -> bool: ...
43def get_environ_proxies(url, no_proxy: Iterable[AnyStr] | None = ...) -> dict[Any, Any]: ...
44def select_proxy(url: Text, proxies: Mapping[Any, Any] | None): ...
45def default_user_agent(name=...): ...
46def default_headers(): ...
47def parse_header_links(value): ...
48def guess_json_utf(data): ...
49def prepend_scheme_if_needed(url, new_scheme): ...
50def get_auth_from_url(url): ...
51def to_native_string(string, encoding=...): ...
52def urldefragauth(url): ...
53def rewind_body(prepared_request): ...
54def check_header_validity(header: tuple[AnyStr, AnyStr]) -> None: ...
55