module documentation
Function match_partial_url Matches a parsed url with a partial url (no scheme/netloc).
Function match_urls Check if a URL matches a URL prefix.
Function urlmatch_credential_sections Returns credential sections from the config which match the given URL.
def match_partial_url(valid_url: ParseResult, partial_url: str) -> bool:

Matches a parsed url with a partial url (no scheme/netloc).

def match_urls(url: ParseResult, url_prefix: ParseResult) -> bool:

Check if a URL matches a URL prefix.

Parameters
url:ParseResultParsed URL to check
url_prefix:ParseResultParsed URL prefix to match against
Returns
boolTrue if url matches the prefix
def urlmatch_credential_sections(config: ConfigDict, url: str | None) -> Iterator[SectionLike]:

Returns credential sections from the config which match the given URL.