1 from typing import Any, AnyStr, IO, Mapping, Sequence, Text, Tuple, Union
\r
3 def url2pathname(pathname: str) -> str: ...
\r
4 def pathname2url(pathname: str) -> str: ...
\r
5 def urlopen(url: str, data=..., proxies: Mapping[str, str] = ..., context=...) -> IO[Any]: ...
\r
6 def urlretrieve(url, filename=..., reporthook=..., data=..., context=...): ...
\r
7 def urlcleanup() -> None: ...
\r
9 class ContentTooShortError(IOError):
\r
10 content = ... # type: Any
\r
11 def __init__(self, message, content) -> None: ...
\r
14 version = ... # type: Any
\r
15 proxies = ... # type: Any
\r
16 key_file = ... # type: Any
\r
17 cert_file = ... # type: Any
\r
18 context = ... # type: Any
\r
19 addheaders = ... # type: Any
\r
20 tempcache = ... # type: Any
\r
21 ftpcache = ... # type: Any
\r
22 def __init__(self, proxies: Mapping[str, str] = ..., context=..., **x509) -> None: ...
\r
23 def __del__(self): ...
\r
24 def close(self): ...
\r
25 def cleanup(self): ...
\r
26 def addheader(self, *args): ...
\r
27 type = ... # type: Any
\r
28 def open(self, fullurl: str, data=...): ...
\r
29 def open_unknown(self, fullurl, data=...): ...
\r
30 def open_unknown_proxy(self, proxy, fullurl, data=...): ...
\r
31 def retrieve(self, url, filename=..., reporthook=..., data=...): ...
\r
32 def open_http(self, url, data=...): ...
\r
33 def http_error(self, url, fp, errcode, errmsg, headers, data=...): ...
\r
34 def http_error_default(self, url, fp, errcode, errmsg, headers): ...
\r
35 def open_https(self, url, data=...): ...
\r
36 def open_file(self, url): ...
\r
37 def open_local_file(self, url): ...
\r
38 def open_ftp(self, url): ...
\r
39 def open_data(self, url, data=...): ...
\r
41 class FancyURLopener(URLopener):
\r
42 auth_cache = ... # type: Any
\r
43 tries = ... # type: Any
\r
44 maxtries = ... # type: Any
\r
45 def __init__(self, *args, **kwargs) -> None: ...
\r
46 def http_error_default(self, url, fp, errcode, errmsg, headers): ...
\r
47 def http_error_302(self, url, fp, errcode, errmsg, headers, data=...): ...
\r
48 def redirect_internal(self, url, fp, errcode, errmsg, headers, data): ...
\r
49 def http_error_301(self, url, fp, errcode, errmsg, headers, data=...): ...
\r
50 def http_error_303(self, url, fp, errcode, errmsg, headers, data=...): ...
\r
51 def http_error_307(self, url, fp, errcode, errmsg, headers, data=...): ...
\r
52 def http_error_401(self, url, fp, errcode, errmsg, headers, data=...): ...
\r
53 def http_error_407(self, url, fp, errcode, errmsg, headers, data=...): ...
\r
54 def retry_proxy_http_basic_auth(self, url, realm, data=...): ...
\r
55 def retry_proxy_https_basic_auth(self, url, realm, data=...): ...
\r
56 def retry_http_basic_auth(self, url, realm, data=...): ...
\r
57 def retry_https_basic_auth(self, url, realm, data=...): ...
\r
58 def get_user_passwd(self, host, realm, clear_cache=...): ...
\r
59 def prompt_user_passwd(self, host, realm): ...
\r
62 user = ... # type: Any
\r
63 passwd = ... # type: Any
\r
64 host = ... # type: Any
\r
65 port = ... # type: Any
\r
66 dirs = ... # type: Any
\r
67 timeout = ... # type: Any
\r
68 refcount = ... # type: Any
\r
69 keepalive = ... # type: Any
\r
70 def __init__(self, user, passwd, host, port, dirs, timeout=..., persistent=...) -> None: ...
\r
71 busy = ... # type: Any
\r
72 ftp = ... # type: Any
\r
74 def retrfile(self, file, type): ...
\r
75 def endtransfer(self): ...
\r
76 def close(self): ...
\r
77 def file_close(self): ...
\r
78 def real_close(self): ...
\r
81 fp = ... # type: Any
\r
82 read = ... # type: Any
\r
83 readline = ... # type: Any
\r
84 readlines = ... # type: Any
\r
85 fileno = ... # type: Any
\r
86 __iter__ = ... # type: Any
\r
87 next = ... # type: Any
\r
88 def __init__(self, fp) -> None: ...
\r
89 def close(self): ...
\r
91 class addclosehook(addbase):
\r
92 closehook = ... # type: Any
\r
93 hookargs = ... # type: Any
\r
94 def __init__(self, fp, closehook, *hookargs) -> None: ...
\r
95 def close(self): ...
\r
97 class addinfo(addbase):
\r
98 headers = ... # type: Any
\r
99 def __init__(self, fp, headers) -> None: ...
\r
100 def info(self): ...
\r
102 class addinfourl(addbase):
\r
103 headers = ... # type: Any
\r
104 url = ... # type: Any
\r
105 code = ... # type: Any
\r
106 def __init__(self, fp, headers, url, code=...) -> None: ...
\r
107 def info(self): ...
\r
108 def getcode(self): ...
\r
109 def geturl(self): ...
\r
111 def unwrap(url): ...
\r
112 def splittype(url): ...
\r
113 def splithost(url): ...
\r
114 def splituser(host): ...
\r
115 def splitpasswd(user): ...
\r
116 def splitport(host): ...
\r
117 def splitnport(host, defport=...): ...
\r
118 def splitquery(url): ...
\r
119 def splittag(url): ...
\r
120 def splitattr(url): ...
\r
121 def splitvalue(attr): ...
\r
122 def unquote(s: AnyStr) -> AnyStr: ...
\r
123 def unquote_plus(s: AnyStr) -> AnyStr: ...
\r
124 def quote(s: AnyStr, safe: Text = ...) -> AnyStr: ...
\r
125 def quote_plus(s: AnyStr, safe: Text = ...) -> AnyStr: ...
\r
126 def urlencode(query: Union[Sequence[Tuple[Any, Any]], Mapping[Any, Any]], doseq=...) -> str: ...
\r
128 def getproxies() -> Mapping[str, str]: ...
\r
129 def proxy_bypass(host): ...
\r
131 # Names in __all__ with no definition:
\r