skillfed

git-url-parse

git-url-parse - A simple GIT URL parser.

git-url-parse v1.2.2 252.2K downloads/30d#8,553 on PyPI0
Permissive license AGING released

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-parse

uv

uv add git-url-parse

poetry

poetry add git-url-parse

Installing 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

Development Status :: 4 - BetaEnvironment :: ConsoleFramework :: FlaskIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Topic :: System :: Systems AdministrationTopic :: Utilities

Tags

git url parserparse git repository urlextract git remote urlgit ssh https url parsegithub gitlab url components
git-utilitiesurl-parsing

More Utilities packages