1 from typing import Any, NamedTuple, Text
3 class _URLTuple(NamedTuple):
10 class BaseURL(_URLTuple):
11 def replace(self, **kwargs): ...
15 def ascii_host(self): ...
21 def username(self): ...
23 def raw_username(self): ...
25 def password(self): ...
27 def raw_password(self): ...
28 def decode_query(self, *args, **kwargs): ...
29 def join(self, *args, **kwargs): ...
31 def decode_netloc(self): ...
32 def to_uri_tuple(self): ...
33 def to_iri_tuple(self): ...
34 def get_file_location(self, pathformat: Any | None = ...): ...
37 def encode_netloc(self): ...
38 def encode(self, charset: Text = ..., errors: Text = ...): ...
40 class BytesURL(BaseURL):
41 def encode_netloc(self): ...
42 def decode(self, charset: Text = ..., errors: Text = ...): ...
44 def url_parse(url, scheme: Any | None = ..., allow_fragments: bool = ...): ...
45 def url_quote(string, charset: Text = ..., errors: Text = ..., safe: str = ..., unsafe: str = ...): ...
46 def url_quote_plus(string, charset: Text = ..., errors: Text = ..., safe: str = ...): ...
47 def url_unparse(components): ...
48 def url_unquote(string, charset: Text = ..., errors: Text = ..., unsafe: str = ...): ...
49 def url_unquote_plus(s, charset: Text = ..., errors: Text = ...): ...
50 def url_fix(s, charset: Text = ...): ...
51 def uri_to_iri(uri, charset: Text = ..., errors: Text = ...): ...
52 def iri_to_uri(iri, charset: Text = ..., errors: Text = ..., safe_conversion: bool = ...): ...
56 decode_keys: bool = ...,
57 include_empty: bool = ...,
60 cls: Any | None = ...,
62 def url_decode_stream(
65 decode_keys: bool = ...,
66 include_empty: bool = ...,
69 cls: Any | None = ...,
70 limit: Any | None = ...,
71 return_iterator: bool = ...,
74 obj, charset: Text = ..., encode_keys: bool = ..., sort: bool = ..., key: Any | None = ..., separator: bytes = ...
76 def url_encode_stream(
78 stream: Any | None = ...,
80 encode_keys: bool = ...,
82 key: Any | None = ...,
83 separator: bytes = ...,
85 def url_join(base, url, allow_fragments: bool = ...): ...
92 def __init__(self, base: str = ..., charset: Text = ..., sort: bool = ..., key: Any | None = ...): ...
93 def __getattr__(self, name): ...
94 def __call__(self, *path, **query): ...