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
Function
test_join_query_string
Test that query strings are correctly joined.
tests/test_url.py:2595
Function
test_join_query_string_with_special_chars
Test url joining when the query string has non-ascii params.
tests/test_url.py:2608
Function
test_joinpath
(base: str, to_join: tuple[str, ...], expected: str)
tests/test_url.py:1307
Function
test_joinpath_backtrack_to_base
()
tests/test_url.py:1347
Method
test_joinpath_does_not_introduce_scheme
joinpath() onto a relative base must not materialize a host.
tests/test_url_parsing.py:873
Function
test_joinpath_edgecases
(to_join: tuple[str, ...], expected: str)
tests/test_url.py:1439
Function
test_joinpath_empty_segments
(base: str, to_join: str, expected: str)
tests/test_url.py:1339
Function
test_joinpath_encoding
( url: str, to_join: tuple[str, ...], encoded: bool, e_path: str, e_raw_path: str, e_p
tests/test_url.py:1416
Function
test_joinpath_path_starting_from_slash_is_forbidden
()
tests/test_url.py:1444
Function
test_joinpath_relative
( url: URL, to_join: tuple[str, ...], expected: tuple[str, ...] )
tests/test_url.py:1375
Function
test_joinpath_single_empty_segments
joining standalone empty segments does not create empty segments
tests/test_url.py:1355
Function
test_json_roundtrip_json
()
tests/test_pydantic.py:49
Function
test_le_eq
()
tests/test_url_cmp_and_hash.py:32
Function
test_le_less
()
tests/test_url_cmp_and_hash.py:25
Function
test_le_not_implemented
()
tests/test_url_cmp_and_hash.py:39
Method
test_legitimate_scheme_not_affected
Legitimate URLs with real schemes must not be affected.
tests/test_url_parsing.py:754
Function
test_localhost
()
tests/test_url.py:260
Function
test_long_query
(benchmark: "BenchmarkFixture")
tests/test_quoting_benchmarks.py:64
Function
test_long_query_with_pct
(benchmark: "BenchmarkFixture")
tests/test_quoting_benchmarks.py:71
Function
test_lowercase
()
tests/test_url.py:315
Function
test_lowercase_nonascii
()
tests/test_url.py:322
Function
test_lowercase_scheme
()
tests/test_url.py:2206
Function
test_lt
()
tests/test_url_cmp_and_hash.py:45
Function
test_lt_not_implemented
()
tests/test_url_cmp_and_hash.py:52
Function
test_malformed_bracketed_host_in_authority
Reject malformed brackets via URL.build(authority=...) path.
tests/test_url.py:460
Function
test_malformed_bracketed_host_rejected
Reject URLs with multiple brackets to prevent host confusion (SSRF).
tests/test_url.py:454
Function
test_matches_parse_qsl
(query_string: str)
tests/test_query_to_pairs.py:61
Function
test_matches_parse_qsl_encoding
(query_string: str, encoding: str)
tests/test_query_to_pairs.py:69
Function
test_max_fields_empty_query_string
()
tests/test_query_to_pairs.py:126
Function
test_max_fields_exceeded
(query_string: str, max_fields: int)
tests/test_query_to_pairs.py:119
Function
test_max_fields_none_is_unlimited
()
tests/test_query_to_pairs.py:131
Function
test_max_fields_not_exceeded
(query_string: str, max_fields: int)
tests/test_query_to_pairs.py:102
Function
test_name_for_empty_url
()
tests/test_url.py:922
Function
test_name_non_ascii
()
tests/test_url.py:962
Function
test_ne_str
()
tests/test_url_cmp_and_hash.py:6
Function
test_never_quote
(quoter: type[_Quoter])
tests/test_quoting.py:165
Method
test_no_host
(self)
tests/test_url_parsing.py:207
Method
test_no_path
(self)
tests/test_url_parsing.py:198
Function
test_no_scheme
()
tests/test_url.py:2036
Method
test_no_scheme1
(self)
tests/test_url_parsing.py:41
Function
test_no_scheme2
()
tests/test_url.py:2043
Method
test_no_scheme2
(self)
tests/test_url_parsing.py:49
Method
test_no_scheme_no_host
(self)
tests/test_url_parsing.py:155
Function
test_no_user
()
tests/test_url.py:149
Method
test_no_user
(self)
tests/test_url_parsing.py:263
Method
test_non_alpha_start_pct_encoded_does_not_materialize_scheme
split_url() accepts any scheme_chars in the first position, not just ALPHA, so digit / "+" / "-" / "." starts must also be guarded against
tests/test_url_parsing.py:797
Function
test_nonascii_in_qs
()
tests/test_url.py:1092
Function
test_none_value_for_query
()
tests/test_url.py:2260
Function
test_normalize_path
(original: str, expected: str)
tests/test_normalize_path.py:35
Method
test_not_a_scheme1
(self)
tests/test_url_parsing.py:57
Method
test_not_a_scheme2
(self)
tests/test_url_parsing.py:65
Function
test_origin
()
tests/test_url.py:74
Function
test_origin_ipv6
()
tests/test_url.py:94
Function
test_origin_is_equal_to_self
()
tests/test_url.py:79
Function
test_origin_no_scheme
()
tests/test_url.py:105
Function
test_origin_nonascii
()
tests/test_url.py:89
Function
test_origin_not_absolute_url
()
tests/test_url.py:99
Function
test_origin_with_no_auth
()
tests/test_url.py:84
Function
test_parent_for_absolute_url
()
tests/test_url.py:2244
Function
test_parent_for_empty_url
()
tests/test_url.py:2216
Function
test_parent_for_no_netloc_url
()
tests/test_url.py:2233
Function
test_parent_for_relative_url
()
tests/test_url.py:2227
Function
test_parent_for_relative_url_with_child
()
tests/test_url.py:2221
Function
test_parent_for_top_level_absolute_url
()
tests/test_url.py:2249
Function
test_parent_for_top_level_no_netloc_url
()
tests/test_url.py:2238
Method
test_parent_of_scheme_shaped_relative
parent derives from an already-encoded path and stays relative.
tests/test_url_parsing.py:946
Function
test_parent_raw_parts
()
tests/test_url.py:1115
Function
test_parent_raw_path
()
tests/test_url.py:1110
Function
test_parse_query_uncached
Test parsing the query string without the cache.
tests/test_url_benchmarks.py:834
Function
test_parsing_populates_cache
Test that parsing a URL populates the cache.
tests/test_url.py:2630
Function
test_parsing_populates_cache_for_single_dot
Test that parsing a URL populates the cache for a single dot path.
tests/test_url.py:2676
Function
test_parts_for_empty_url
()
tests/test_url.py:903
Function
test_parts_non_ascii
()
tests/test_url.py:917
Function
test_password_non_ascii
()
tests/test_url.py:171
Function
test_password_without_user
()
tests/test_url.py:176
Method
test_path
(self)
tests/test_url_parsing.py:523
Method
test_path_empty_frag
(self)
tests/test_url_parsing.py:563
Function
test_path_non_ascii
()
tests/test_url.py:706
Method
test_path_only
(self)
tests/test_url_parsing.py:463
Function
test_path_qs
()
tests/test_url.py:798
Function
test_path_safe
Test accessing path safe.
tests/test_url_benchmarks.py:757
Function
test_path_safe_only_round_trips
Path safe can round trip with documented decode method.
tests/test_url.py:762
Function
test_path_safe_uncached
Test accessing path safe without cache.
tests/test_url_benchmarks.py:766
Function
test_path_safe_unquoter_encoded_delims
(benchmark: "BenchmarkFixture")
tests/test_quoting_benchmarks.py:162
Function
test_path_safe_unquoter_long_pct
(benchmark: "BenchmarkFixture")
tests/test_quoting_benchmarks.py:155
Function
test_path_safe_with_25
Path safe should not decode %25, otherwise it is prone to double unquoting.
tests/test_url.py:733
Function
test_path_safe_with_2F
Path safe should not decode %2F, otherwise it may look like a path separator.
tests/test_url.py:726
Function
test_path_safe_with_no_netloc
Path safe should not decode %2F, otherwise it may look like a path separator.
tests/test_url.py:742
Function
test_path_with_2F
Path should decode %2F.
tests/test_url.py:719
Function
test_path_with_spaces
()
tests/test_url.py:711
Function
test_percent_encoded_in_qs
()
tests/test_url.py:1098
Function
test_pickle
()
tests/test_pickle.py:9
Function
test_pickle_does_not_pollute_cache
Verify the unpickling does not pollute the cache. Since unpickle will call URL.__new__ with default args, we need to make sure that default a
tests/test_pickle.py:35
Function
test_pickle_getstate_returns_plain_tuple
Regression test for gh-1632. Python 3.15 added a ``SplitResult.__getstate__`` that touches instance attributes set by ``__init__``. yarl prev
tests/test_pickle.py:81
Function
test_pickle_legacy_splitresult_state
Pickles produced by older yarl releases embedded a ``SplitResult``. Loading such bytes must still rebuild the URL so users upgrading from pre
tests/test_pickle.py:64
Function
test_plus_in_path
()
tests/test_url.py:1087
Function
test_port_for_explicit_port
()
tests/test_url.py:637
Function
test_port_for_implicit_port
()
tests/test_url.py:643
Function
test_port_for_relative_url
()
tests/test_url.py:649
Function
test_port_for_unknown_scheme
()
tests/test_url.py:655
← previous
next →
401–500 of 989, ranked by callers