A Python library for parsing and constructing GitHub repository URLs and specifiers (e.g., 'owner/repo'). Current version 0.7.1, requires Python >=3.8. Released on PyPI with moderate cadence.
pip install ghrepoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: create GHRepo from URL or specifier, get components and URLs.
Use GHRepo(url) instead of GHRepo.from_url(url).
Strip trailing slashes before passing to GHRepo or parse().
Use a dedicated library like github3.py for enterprise support, or manually handle.
Strip trailing slash: GHRepo('owner/repo'.rstrip('/'))Ensure proper usage: repo = GHRepo('url') then use repo.owner, not reassign repo to string.No dependency data recorded yet.