Expand description
Source string parsing.
Converts user-provided source strings (GitHub shorthand, URLs, local
paths, etc.) into a structured ParsedSource.
Internal layout (private submodules):
regex— compiled regex patterns and classification helpersfragment—#ref[@filter]parsing for ref-aware installsmatchers— individual URL-shape matchers composed byparse_source
The public API is this module’s parse_source, owner_repo,
parse_owner_repo, and sanitize_subpath.
Functions§
- owner_
repo - Extract
owner/repo(orgroup/subgroup/repoforGitLab) from a parsed source for telemetry and lock-file tracking. - parse_
owner_ repo - Parse
owner/repointo separate components. - parse_
source - Parse a source string into a structured
ParsedSource. - sanitize_
subpath - Sanitize a subpath to prevent path traversal.