yarl API reference
69 public APIs from yarl (aio-libs/yarl) — 3 classes, 22 functions, 44 methods. Signatures extracted by static analysis of the actual source.
Repository: aio-libs/yarl
| Kind | Count |
|---|---|
| Classes | 3 |
| Functions | 22 |
| Methods | 44 |
API list
func
packaging.pep517_backend._backend.build_editable(wheel_directory:str, config_settings:_ConfigDict | None=None, metadata_directory:str | None=None) -> strProduce a built wheel for editable installs.
func
packaging.pep517_backend._backend.build_wheel(wheel_directory:str, config_settings:_ConfigDict | None=None, metadata_directory:str | None=None) -> strProduce a built wheel.
func
packaging.pep517_backend._compat.chdir_cm(path:'os.PathLike[str]') -> _c.Iterator[None]Temporarily change the current directory, recovering on exit.
class
packaging.pep517_backend._cython_configuration.ConfigData structure for the TOML config.
func
packaging.pep517_backend._transformers.get_cli_kwargs_from_config(kwargs_map:dict[str, str | dict[str, str]]) -> list[str]Make a list of options with values from config.
func
packaging.pep517_backend._transformers.get_enabled_cli_flags_from_config(flags_map:_c.Mapping[str, bool]) -> list[str]Make a list of enabled boolean flags from config.
func
packaging.pep517_backend._transformers.sanitize_rst_roles(rst_source_text:str) -> strReplace RST roles with inline highlighting.
func
packaging.pep517_backend.cli.run_main_program(argv:_c.Sequence[str]) -> int | strInvoke ``translate-cython`` or fail.
func
yarl._parse.make_netloc(user:str | None, password:str | None, host:str | None, port:int | None, encode:bool=False) -> strMake netloc from parts.
func
yarl._parse.query_to_pairs(query_string:str) -> list[tuple[str, str]]Parse a query given as a string argument.
func
yarl._parse.split_netloc(netloc:str) -> tuple[str | None, str | None, str | None, int | None]Split netloc into username, password, host and port.
func
yarl._parse.split_url(url:str) -> SplitURLTypeSplit URL into parts.
func
yarl._parse.unsplit_result(scheme:str, netloc:str, url:str, query:str, fragment:str) -> strUnsplit a URL without any normalization.
func
yarl._path.normalize_path_segments(segments:Sequence[str]) -> list[str]Drop '.' and '..' from a sequence of str segments
func
yarl._query.get_str_query(*args:Any, **kwargs:Any) -> str | NoneReturn a query string from supported args.
func
yarl._query.get_str_query_from_iterable(items:Iterable[tuple[str | istr, SimpleQuery]]) -> strReturn a query string from an iterable.
func
yarl._query.query_var(v:SimpleQuery) -> strConvert a query variable to a string.
class
yarl._url.CacheInfoHost encoding cache.
method
yarl._url.URL.absolute() -> boolA check for absolute URLs.
method
yarl._url.URL.authority() -> strDecoded authority part of URL.
method
yarl._url.URL.build(*scheme:str='', *authority:str='', *user:str | None=None, *password:str | None=None, *host:str='', *port:int | None=None, *path:str='', *query:Query | None=None, *query_string:str='', *fragment:str='', *encoded:bool=False) -> 'URL'Creates and returns a new URL
method
yarl._url.URL.explicit_port() -> int | NonePort part of URL, without scheme-based fallback.
method
yarl._url.URL.fragment() -> strDecoded fragment part of URL.
method
yarl._url.URL.host() -> str | NoneDecoded host part of URL.
method
yarl._url.URL.host_port_subcomponent() -> str | NoneReturn the host and port subcomponent part of URL.
method
yarl._url.URL.host_subcomponent() -> str | NoneReturn the host subcomponent part of URL.
method
yarl._url.URL.human_repr() -> strReturn decoded human readable string for URL representation.
method
yarl._url.URL.is_absolute() -> boolA check for absolute URLs.
method
yarl._url.URL.is_default_port() -> boolA check for default port.
method
yarl._url.URL.joinpath(*encoded:bool=False, *other:str) -> 'URL'Return a new URL with the elements in other appended to the path.
method
yarl._url.URL.name() -> strThe last part of parts.
method
yarl._url.URL.origin() -> 'URL'Return an URL with scheme, host and port parts only.
method
yarl._url.URL.parts() -> tuple[str, ...]A tuple containing decoded *path* parts.
method
yarl._url.URL.password() -> str | NoneDecoded password part of URL.
method
yarl._url.URL.path() -> strDecoded path of URL.
method
yarl._url.URL.path_qs() -> strDecoded path of URL with query.
method
yarl._url.URL.path_safe() -> strDecoded path of URL.
method
yarl._url.URL.port() -> int | NonePort part of URL, with scheme-based fallback.
method
yarl._url.URL.query_string() -> strDecoded query part of URL.
method
yarl._url.URL.raw_authority() -> strEncoded authority part of URL.
method
yarl._url.URL.raw_fragment() -> strEncoded fragment part of URL.
method
yarl._url.URL.raw_host() -> str | NoneEncoded host part of URL.
method
yarl._url.URL.raw_name() -> strThe last part of raw_parts.
method
yarl._url.URL.raw_parts() -> tuple[str, ...]A tuple containing encoded *path* parts.
method
yarl._url.URL.raw_password() -> str | NoneEncoded password part of URL.
method
yarl._url.URL.raw_path() -> strEncoded path of URL.
method
yarl._url.URL.raw_path_qs() -> strEncoded path of URL with query.
method
yarl._url.URL.raw_query_string() -> strEncoded query part of URL.
method
yarl._url.URL.raw_user() -> str | NoneEncoded user part of URL.
method
yarl._url.URL.relative() -> 'URL'Return a relative part of the URL.
method
yarl._url.URL.scheme() -> strScheme for absolute URLs.
method
yarl._url.URL.user() -> str | NoneDecoded user part of URL.
method
yarl._url.URL.with_fragment(fragment:str | None) -> 'URL'Return a new URL with fragment replaced.
method
yarl._url.URL.with_host(host:str) -> 'URL'Return a new URL with host replaced.
method
yarl._url.URL.with_name(name:str, *keep_query:bool=False, *keep_fragment:bool=False) -> 'URL'Return a new URL with name (last part of path) replaced.
method
yarl._url.URL.with_password(password:str | None) -> 'URL'Return a new URL with password replaced.
method
yarl._url.URL.with_path(path:str, *encoded:bool=False, *keep_query:bool=False, *keep_fragment:bool=False) -> 'URL'Return a new URL with path replaced.
method
yarl._url.URL.with_port(port:int | None) -> 'URL'Return a new URL with port replaced.
method
yarl._url.URL.with_scheme(scheme:str) -> 'URL'Return a new URL with scheme replaced.
method
yarl._url.URL.with_suffix(suffix:str, *keep_query:bool=False, *keep_fragment:bool=False) -> 'URL'Return a new URL with suffix (file extension of name) replaced.
method
yarl._url.URL.with_user(user:str | None) -> 'URL'Return a new URL with user replaced.
method
yarl._url.URL.without_query_params(*query_params:str) -> 'URL'Remove some keys from query part and return new URL.
class
yarl._url.UndefinedTypeSingleton type for use with not set sentinel values.
func
yarl._url.build_pre_encoded_url(scheme:str, authority:str, user:str | None, password:str | None, host:str, port:int | None, path:str, query_string:str, fragment:str) -> 'URL'Build a pre-encoded URL from parts.
func
yarl._url.cache_clear() -> NoneClear all LRU caches.
func
yarl._url.cache_info() -> CacheInfoReport cache statistics.
func
yarl._url.encode_url(url_str:str) -> 'URL'Parse unencoded URL.
func
yarl._url.from_parts_uncached(scheme:str, netloc:str, path:str, query:str, fragment:str) -> 'URL'Create a new URL from parts.
func
yarl._url.pre_encoded_url(url_str:str) -> 'URL'Parse pre-encoded URL.
About this data
These signatures were extracted from the public source of aio-libs/yarl
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.