Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aio-libs/yarl
/ functions
Functions
989 in github.com/aio-libs/yarl
⨍
Functions
989
◇
Types & classes
30
↳
Endpoints
12
↓ 69 callers
Method
build
Creates and returns a new URL
yarl/_url.py:464
↓ 61 callers
Function
quoter
(request: pytest.FixtureRequest)
tests/test_quoting.py:17
↓ 42 callers
Method
with_query
(self, query: Query)
yarl/_url.py:1271
↓ 38 callers
Method
join
Join URLs Construct a full (“absolute”) URL by combining a “base URL” (self) with another URL (url). Informally, this uses c
yarl/_url.py:1504
↓ 37 callers
Function
unquoter
(request: pytest.FixtureRequest)
tests/test_quoting.py:21
↓ 19 callers
Method
update_query
(self, query: Query)
yarl/_url.py:1324
↓ 19 callers
Method
with_suffix
Return a new URL with suffix (file extension of name) replaced. Query and fragment parts are cleaned up. suffix is encoded if needed
yarl/_url.py:1463
↓ 17 callers
Method
with_name
Return a new URL with name (last part of path) replaced. Query and fragment parts are cleaned up. Name is encoded if needed.
yarl/_url.py:1425
↓ 15 callers
Method
with_path
Return a new URL with path replaced.
yarl/_url.py:1250
↓ 14 callers
Method
human_repr
Return decoded human readable string for URL representation.
yarl/_url.py:1560
↓ 13 callers
Method
joinpath
Return a new URL with the elements in other appended to the path.
yarl/_url.py:1556
↓ 13 callers
Method
with_host
Return a new URL with host replaced. Autoencode host if needed. Changing host for relative URLs is not allowed, use .join()
yarl/_url.py:1211
↓ 13 callers
Method
with_port
Return a new URL with port replaced. Clear port to default if None is passed.
yarl/_url.py:1232
↓ 12 callers
Function
query_to_pairs
Parse a query string into a list of decoded name, value pairs. The result is the same as ``urllib.parse.parse_qsl(query_string, keep_blank_va
yarl/_parse.py:222
↓ 11 callers
Method
extend_query
(self, query: Query)
yarl/_url.py:1296
↓ 11 callers
Function
make_netloc
Make netloc from parts. The user and password are encoded if encode is True. The host must already be encoded with _encode_host.
yarl/_parse.py:189
↓ 10 callers
Method
with_password
Return a new URL with password replaced. Autoencode password if needed. Clear password if argument is None.
yarl/_url.py:1189
↓ 10 callers
Method
with_user
Return a new URL with user replaced. Autoencode user if needed. Clear user/password if user is None.
yarl/_url.py:1167
↓ 9 callers
Method
__new__
( cls, val: Union[str, SplitResult, "URL", UndefinedType] = UNDEFINED, *, enco
yarl/_url.py:434
↓ 9 callers
Method
origin
Return an URL with scheme, host and port parts only. user, password, path, query and fragment are removed.
yarl/_url.py:694
↓ 9 callers
Method
with_fragment
Return a new URL with fragment replaced. Autoencode fragment if needed. Clear fragment to default if None is passed.
yarl/_url.py:1404
↓ 9 callers
Method
with_scheme
Return a new URL with scheme replaced.
yarl/_url.py:1152
↓ 7 callers
Method
is_default_port
A check for default port. Return True if port is default for specified scheme, e.g. 'http://python.org' or 'http://python.org:80', Fa
yarl/_url.py:677
↓ 6 callers
Method
is_absolute
A check for absolute URLs. Return True for absolute ones (having scheme or starting with //), False otherwise. Is is preferr
yarl/_url.py:666
↓ 6 callers
Method
relative
Return a relative part of the URL. scheme, user, password, host and port are removed.
yarl/_url.py:724
↓ 5 callers
Function
_encode_relative_scheme_colon
Re-encode a scheme-shaped leading ``:`` in a relative path to ``%3A``.
yarl/_url.py:213
↓ 5 callers
Function
normalize_path
(path: str)
yarl/_path.py:31
↓ 4 callers
Method
_cache_netloc
Cache the netloc parts of the URL.
yarl/_url.py:660
↓ 4 callers
Function
hexescape
Escape char as RFC 2396 specifies
tests/test_quoting.py:49
↓ 3 callers
Method
__setstate__
( self, state: tuple[SplitURLType] | tuple[None, _InternalURLCache] )
yarl/_url.py:648
↓ 3 callers
Function
_encode_host
Encode host part of URL.
yarl/_url.py:1645
↓ 3 callers
Function
_get_setting_value
( config_settings: _ConfigDict | None = None, config_setting_name: str | None = None, env_var_name
packaging/pep517_backend/_backend.py:112
↓ 3 callers
Function
from_parts_uncached
Create a new URL from parts.
yarl/_url.py:335
↓ 3 callers
Function
get_str_query
Return a query string from supported args.
yarl/_query.py:85
↓ 3 callers
Function
split_netloc
Split netloc into username, password, host and port.
yarl/_parse.py:132
↓ 2 callers
Function
_build_inplace
( config_settings: _ConfigDict | None = None, *, default: bool = False, )
packaging/pep517_backend/_backend.py:155
↓ 2 callers
Function
_idna_encode
(host: str)
yarl/_url.py:1637
↓ 2 callers
Method
_make_child
add paths to self._path, accounting for absolute vs relative paths, keep existing, but do not create new, empty segments
yarl/_url.py:1105
↓ 2 callers
Function
_make_pure_python
(config_settings: _ConfigDict | None = None)
packaging/pep517_backend/_backend.py:133
↓ 2 callers
Function
get_str_query_from_iterable
Return a query string from an iterable. The iterable must contain (key, value) pairs. The values are not allowed to be sequences, only singl
yarl/_query.py:66
↓ 2 callers
Function
get_str_query_from_sequence_iterable
Return a query string from a sequence of (key, value) pairs. value is a single value or a sequence of values for the key The sequence of val
yarl/_query.py:46
↓ 2 callers
Function
maybe_prebuild_c_extensions
Pre-build C-extensions in a temporary directory, when needed. This context manager also patches metadata, setuptools and distutils. :param b
packaging/pep517_backend/_backend.py:273
↓ 2 callers
Function
normalize_path_segments
Drop '.' and '..' from a sequence of str segments
yarl/_path.py:7
↓ 2 callers
Function
query_var
Convert a query variable to a string. Note: Objects implementing the ``__int__`` data model method (typed as ``SupportsInt``; e.g. ``uuid.UUI
yarl/_query.py:18
↓ 2 callers
Function
split_url
Split URL into parts.
yarl/_parse.py:25
↓ 2 callers
Function
unsplit_result
Unsplit a URL without any normalization.
yarl/_parse.py:172
↓ 2 callers
Method
without_query_params
Remove some keys from query part and return new URL.
yarl/_url.py:1391
↓ 1 callers
Method
__ge__
(self, other: object)
yarl/_url.py:617
↓ 1 callers
Method
__get_pydantic_core_schema__
( cls, source_type: type[Self] | type[str], handler: "GetCoreSchemaHandler
yarl/_url.py:1594
↓ 1 callers
Method
__getstate__
(self)
yarl/_url.py:638
↓ 1 callers
Method
__gt__
(self, other: object)
yarl/_url.py:622
↓ 1 callers
Method
__le__
(self, other: object)
yarl/_url.py:607
↓ 1 callers
Method
__lt__
(self, other: object)
yarl/_url.py:612
↓ 1 callers
Function
_check_netloc
(netloc: str)
yarl/_parse.py:109
↓ 1 callers
Function
_configure_cython_line_tracing
Configure Cython line tracing directives if requested.
packaging/pep517_backend/_cython_configuration.py:147
↓ 1 callers
Function
_idna_collapses
True if IDNA encoding silently deletes ``code_point`` from a host.
tests/test_url.py:2795
↓ 1 callers
Function
_idna_decode
(raw: str)
yarl/_url.py:1629
↓ 1 callers
Function
_in_temporary_directory
(src_dir: Path)
packaging/pep517_backend/_backend.py:254
↓ 1 callers
Function
_include_cython_line_tracing
( config_settings: _ConfigDict | None = None, *, default: bool = False, )
packaging/pep517_backend/_backend.py:142
↓ 1 callers
Function
_is_truthy_setting_value
(setting_value: str)
packaging/pep517_backend/_backend.py:107
↓ 1 callers
Function
build_pre_encoded_url
Build a pre-encoded URL from parts.
yarl/_url.py:301
↓ 1 callers
Function
chdir_cm
Temporarily change the current directory, recovering on exit.
packaging/pep517_backend/_compat.py:18
↓ 1 callers
Function
encode_url
Parse unencoded URL.
yarl/_url.py:225
↓ 1 callers
Function
get_cli_kwargs_from_config
Make a list of options with values from config.
packaging/pep517_backend/_transformers.py:28
↓ 1 callers
Function
get_enabled_cli_flags_from_config
Make a list of enabled boolean flags from config.
packaging/pep517_backend/_transformers.py:35
↓ 1 callers
Function
human_quote
(s: str | None, unsafe: str)
yarl/_quoters.py:24
↓ 1 callers
Function
patched_dist_get_long_description
Make `has_ext_modules` of `Distribution` always return `True`. :yields: None
packaging/pep517_backend/_backend.py:207
↓ 1 callers
Function
patched_dist_has_ext_modules
Make `has_ext_modules` of `Distribution` always return `True`. :yields: None
packaging/pep517_backend/_backend.py:191
↓ 1 callers
Function
patched_distutils_cmd_install
Make `install_lib` of `install` cmd always use `platlib`. :yields: None
packaging/pep517_backend/_backend.py:169
↓ 1 callers
Function
pre_encoded_url
Parse pre-encoded URL.
yarl/_url.py:291
↓ 1 callers
Function
run_main_program
Invoke ``translate-cython`` or fail.
packaging/pep517_backend/cli.py:31
↓ 1 callers
Function
sanitize_rst_roles
Replace RST roles with inline highlighting.
packaging/pep517_backend/_transformers.py:44
Method
__bool__
(self)
yarl/_url.py:635
Method
__bytes__
(self)
yarl/_url.py:582
Method
__call__
(self, val: str)
yarl/_quoting_py.py:72
Method
__call__
(self, val: str)
yarl/_quoting_py.py:185
Method
__eq__
(self, other: object)
yarl/_url.py:585
Method
__get_pydantic_json_schema__
( cls, core_schema: "CoreSchema", handler: "GetJsonSchemaHandler",
yarl/_url.py:1584
Method
__hash__
(self)
yarl/_url.py:599
Method
__init__
( self, *, safe: str = "", protected: str = "", qs: bool = False,
yarl/_quoting_py.py:48
Method
__init__
( self, *, ignore: str = "", qs: bool = False, plus: bool = False,
yarl/_quoting_py.py:157
Method
__init__
(self)
tests/test_cached_property.py:7
Method
__init_subclass__
(cls)
yarl/_url.py:560
Method
__int__
(self)
tests/test_update_query.py:260
Method
__mod__
(self, query: Query)
yarl/_url.py:632
Method
__repr__
(self)
yarl/_url.py:579
Method
__str__
(self)
yarl/_url.py:563
Method
__str__
(self)
tests/test_url.py:1191
Method
__str__
(self)
tests/test_update_query.py:175
Method
__truediv__
(self, name: str)
yarl/_url.py:627
Function
_emit_opt_pairs
( opt_pair: tuple[str, dict[str, str] | str], )
packaging/pep517_backend/_transformers.py:14
Function
_exclude_dir_path
Prevent recursive directory traversal.
packaging/pep517_backend/_backend.py:230
Function
_get_sanitized_long_description
( # noqa: WPS430 self: _DistutilsDistributionMetadata, )
packaging/pep517_backend/_backend.py:215
Method
_origin
Return an URL with scheme, host and port parts only. user, password, path, query and fragment are removed.
yarl/_url.py:708
Method
_parsed_query
Parse query part of URL.
yarl/_url.py:970
Function
_run
()
tests/test_url_benchmarks.py:52
Function
_run
()
tests/test_quoting_benchmarks.py:38
Function
_run
()
tests/test_query_benchmarks.py:219
Method
_val
(self)
yarl/_url.py:704
Method
absolute
A check for absolute URLs. Return True for absolute ones (having scheme or starting with //), False otherwise.
yarl/_url.py:735
next →
1–100 of 989, ranked by callers