MCPcopy Create free account

hub / github.com/aio-libs/yarl / functions

Functions989 in github.com/aio-libs/yarl

↓ 69 callersMethodbuild
Creates and returns a new URL
yarl/_url.py:464
↓ 61 callersFunctionquoter
(request: pytest.FixtureRequest)
tests/test_quoting.py:17
↓ 42 callersMethodwith_query
(self, query: Query)
yarl/_url.py:1271
↓ 38 callersMethodjoin
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 callersFunctionunquoter
(request: pytest.FixtureRequest)
tests/test_quoting.py:21
↓ 19 callersMethodupdate_query
(self, query: Query)
yarl/_url.py:1324
↓ 19 callersMethodwith_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 callersMethodwith_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 callersMethodwith_path
Return a new URL with path replaced.
yarl/_url.py:1250
↓ 14 callersMethodhuman_repr
Return decoded human readable string for URL representation.
yarl/_url.py:1560
↓ 13 callersMethodjoinpath
Return a new URL with the elements in other appended to the path.
yarl/_url.py:1556
↓ 13 callersMethodwith_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 callersMethodwith_port
Return a new URL with port replaced. Clear port to default if None is passed.
yarl/_url.py:1232
↓ 12 callersFunctionquery_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 callersMethodextend_query
(self, query: Query)
yarl/_url.py:1296
↓ 11 callersFunctionmake_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 callersMethodwith_password
Return a new URL with password replaced. Autoencode password if needed. Clear password if argument is None.
yarl/_url.py:1189
↓ 10 callersMethodwith_user
Return a new URL with user replaced. Autoencode user if needed. Clear user/password if user is None.
yarl/_url.py:1167
↓ 9 callersMethod__new__
( cls, val: Union[str, SplitResult, "URL", UndefinedType] = UNDEFINED, *, enco
yarl/_url.py:434
↓ 9 callersMethodorigin
Return an URL with scheme, host and port parts only. user, password, path, query and fragment are removed.
yarl/_url.py:694
↓ 9 callersMethodwith_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 callersMethodwith_scheme
Return a new URL with scheme replaced.
yarl/_url.py:1152
↓ 7 callersMethodis_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 callersMethodis_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 callersMethodrelative
Return a relative part of the URL. scheme, user, password, host and port are removed.
yarl/_url.py:724
↓ 5 callersFunction_encode_relative_scheme_colon
Re-encode a scheme-shaped leading ``:`` in a relative path to ``%3A``.
yarl/_url.py:213
↓ 5 callersFunctionnormalize_path
(path: str)
yarl/_path.py:31
↓ 4 callersMethod_cache_netloc
Cache the netloc parts of the URL.
yarl/_url.py:660
↓ 4 callersFunctionhexescape
Escape char as RFC 2396 specifies
tests/test_quoting.py:49
↓ 3 callersMethod__setstate__
( self, state: tuple[SplitURLType] | tuple[None, _InternalURLCache] )
yarl/_url.py:648
↓ 3 callersFunction_encode_host
Encode host part of URL.
yarl/_url.py:1645
↓ 3 callersFunction_get_setting_value
( config_settings: _ConfigDict | None = None, config_setting_name: str | None = None, env_var_name
packaging/pep517_backend/_backend.py:112
↓ 3 callersFunctionfrom_parts_uncached
Create a new URL from parts.
yarl/_url.py:335
↓ 3 callersFunctionget_str_query
Return a query string from supported args.
yarl/_query.py:85
↓ 3 callersFunctionsplit_netloc
Split netloc into username, password, host and port.
yarl/_parse.py:132
↓ 2 callersFunction_build_inplace
( config_settings: _ConfigDict | None = None, *, default: bool = False, )
packaging/pep517_backend/_backend.py:155
↓ 2 callersFunction_idna_encode
(host: str)
yarl/_url.py:1637
↓ 2 callersMethod_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 callersFunction_make_pure_python
(config_settings: _ConfigDict | None = None)
packaging/pep517_backend/_backend.py:133
↓ 2 callersFunctionget_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 callersFunctionget_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 callersFunctionmaybe_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 callersFunctionnormalize_path_segments
Drop '.' and '..' from a sequence of str segments
yarl/_path.py:7
↓ 2 callersFunctionquery_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 callersFunctionsplit_url
Split URL into parts.
yarl/_parse.py:25
↓ 2 callersFunctionunsplit_result
Unsplit a URL without any normalization.
yarl/_parse.py:172
↓ 2 callersMethodwithout_query_params
Remove some keys from query part and return new URL.
yarl/_url.py:1391
↓ 1 callersMethod__ge__
(self, other: object)
yarl/_url.py:617
↓ 1 callersMethod__get_pydantic_core_schema__
( cls, source_type: type[Self] | type[str], handler: "GetCoreSchemaHandler
yarl/_url.py:1594
↓ 1 callersMethod__getstate__
(self)
yarl/_url.py:638
↓ 1 callersMethod__gt__
(self, other: object)
yarl/_url.py:622
↓ 1 callersMethod__le__
(self, other: object)
yarl/_url.py:607
↓ 1 callersMethod__lt__
(self, other: object)
yarl/_url.py:612
↓ 1 callersFunction_check_netloc
(netloc: str)
yarl/_parse.py:109
↓ 1 callersFunction_configure_cython_line_tracing
Configure Cython line tracing directives if requested.
packaging/pep517_backend/_cython_configuration.py:147
↓ 1 callersFunction_idna_collapses
True if IDNA encoding silently deletes ``code_point`` from a host.
tests/test_url.py:2795
↓ 1 callersFunction_idna_decode
(raw: str)
yarl/_url.py:1629
↓ 1 callersFunction_in_temporary_directory
(src_dir: Path)
packaging/pep517_backend/_backend.py:254
↓ 1 callersFunction_include_cython_line_tracing
( config_settings: _ConfigDict | None = None, *, default: bool = False, )
packaging/pep517_backend/_backend.py:142
↓ 1 callersFunction_is_truthy_setting_value
(setting_value: str)
packaging/pep517_backend/_backend.py:107
↓ 1 callersFunctionbuild_pre_encoded_url
Build a pre-encoded URL from parts.
yarl/_url.py:301
↓ 1 callersFunctionchdir_cm
Temporarily change the current directory, recovering on exit.
packaging/pep517_backend/_compat.py:18
↓ 1 callersFunctionencode_url
Parse unencoded URL.
yarl/_url.py:225
↓ 1 callersFunctionget_cli_kwargs_from_config
Make a list of options with values from config.
packaging/pep517_backend/_transformers.py:28
↓ 1 callersFunctionget_enabled_cli_flags_from_config
Make a list of enabled boolean flags from config.
packaging/pep517_backend/_transformers.py:35
↓ 1 callersFunctionhuman_quote
(s: str | None, unsafe: str)
yarl/_quoters.py:24
↓ 1 callersFunctionpatched_dist_get_long_description
Make `has_ext_modules` of `Distribution` always return `True`. :yields: None
packaging/pep517_backend/_backend.py:207
↓ 1 callersFunctionpatched_dist_has_ext_modules
Make `has_ext_modules` of `Distribution` always return `True`. :yields: None
packaging/pep517_backend/_backend.py:191
↓ 1 callersFunctionpatched_distutils_cmd_install
Make `install_lib` of `install` cmd always use `platlib`. :yields: None
packaging/pep517_backend/_backend.py:169
↓ 1 callersFunctionpre_encoded_url
Parse pre-encoded URL.
yarl/_url.py:291
↓ 1 callersFunctionrun_main_program
Invoke ``translate-cython`` or fail.
packaging/pep517_backend/cli.py:31
↓ 1 callersFunctionsanitize_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
Methodabsolute
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