parser¶
Parse the remote origin url in the .git/config file.
- class git_web_url.parser.ProtocolEnum(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Supported protocols.
- class git_web_url.parser.PlatformEnum(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Supported git platforms.
- class git_web_url.parser.ParseResult(protocol: ProtocolEnum, platform: PlatformEnum, domain: str, owner: str, repo: str)[source]¶
The result of the
parse().
- git_web_url.parser.parse(remote_origin_url: str, debug: bool = False) ParseResult[source]¶
Parse the remote origin url in the
.git/configfile.