dulwich.credentials module

Support for git credential helpers

https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage

dulwich.credentials.match_partial_url(valid_url: ParseResult, partial_url: str) bool

matches a parsed url with a partial url (no scheme/netloc)

dulwich.credentials.match_urls(url: ParseResult, url_prefix: ParseResult) bool
dulwich.credentials.urlmatch_credential_sections(config: ConfigDict, url: Optional[str]) Iterator[Union[bytes, str, Tuple[Union[bytes, str], ...]]]

Returns credential sections from the config which match the given URL