git-url-parse
git-url-parse - A simple GIT URL parser.
What it is and what it does
git-url-parse is a lightweight utility for parsing Git repository URLs into their component parts. It handles both SSH (git@host:owner/repo.git) and HTTPS (https://host/owner/repo.git) formats, extracting the host, owner, and repository name for programmatic use. The package depends only on pbr and installs with minimal friction.
The package is in beta status and has not been actively maintained since 2019, though the repository remains public. It is suitable for simple URL parsing tasks in applications that need to extract Git repository metadata, but users should verify compatibility with their specific Git hosting providers and be aware of the two known security vulnerabilities before deploying to production.
Use it for:
- Extract repository metadata from Git URLs in deployment or CI/CD scripts
- Parse user-provided Git repository URLs in web applications to validate and normalize them
- Automate Git repository cloning by extracting host and path components from URLs
- Build tools that need to identify repository owners or names from remote URLs
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses Git repository URLs to extract components like host, owner, and repository name, supporting both SSH and HTTPS formats.
Yes, with caution. The package solves a narrow, well-defined problem with low install friction. However, the lack of maintenance since 2019, the presence of two known vulnerabilities, and the aging status mean you should verify the vulnerabilities do not affect your use case and test thoroughly before production deployment. For simple, non-security-critical URL parsing, it remains viable; for security-sensitive applications, consider whether an actively maintained alternative exists.
Install
git-url-parse on PyPI
pip
pip install git-url-parseuv
uv add git-url-parsepoetry
poetry add git-url-parseInstalling git-url-parse
Before you install
Low install friction with a single lightweight dependency (pbr). However, the package is aging—last release was 2019-03-23 and no commits since 2025-10-15, suggesting limited active maintenance despite the repository not being archived.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install git-url-parse
from git_url_parse import GitUrlParse
url = GitUrlParse('git@github.com:user/repo.git')
print(url.host, url.owner, url.repo)
Verify before relying
- Whether the package handles all modern Git hosting providers (GitHub, GitLab, Gitea, etc.) or only a subset
- Whether the two known vulnerabilities (GHSA-4xqq-73wg-5mjp, PYSEC-2026-1404) affect this version or have been patched
- Whether Python 2.7 support is still functional or if the package is effectively Python 3 only in practice
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pbr |
| Maintenance | aging — 2,701 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 252,197/month — #8,553 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | 2 — GHSA-4xqq-73wg-5mjp, PYSEC-2026-1404 |
Evidence: git_url_parse-1.2.2-py2-none-any.whl; git_url_parse-1.2.2-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
giturlparseParses and rewrites Git repository URLs from…
permissive · top 1,000 on PyPI
httptoolshttptools provides Python bindings for parsing…
permissive · top 1,000 on PyPI
git-me-the-urlConverts git repository references (file paths,…
copyleft · top 15,000 on PyPI
ssh-import-idssh-import-id fetches public SSH keys from…
copyleft · top 15,000 on PyPI
pyfaup-rsParses URLs into components (scheme, host,…
copyleft · top 15,000 on PyPI
requirements-parserParses pip requirement files into structured…
permissive · top 5,000 on PyPI
can-adaParses and manipulates URLs according to the…
permissive · top 15,000 on PyPI
pyrfc6266Parses RFC 6266 Content-Disposition headers to…
permissive · top 15,000 on PyPI
tldextractAccurately extracts subdomain, domain, and…
permissive · top 1,000 on PyPI
ada-urlParse, validate, and manipulate URLs according…
permissive · top 15,000 on PyPI