git-me-the-url
Generate sharable links to your Git source
What it is and what it does
Git me the URL is a Python library and command-line tool that takes a reference to a file, commit, or branch in a local git repository and generates a shareable URL pointing to that resource on a public git hosting platform. It currently supports GitHub, GitLab, and Bitbucket out of the box, and provides a plugin interface for adding support for other hosting services.
The package is designed for developers who want to quickly share links to code with teammates or in documentation without manually constructing URLs. It works by inspecting the local repository's remote configuration to determine the hosting platform and constructing the appropriate URL format for that platform. The library can be used either as a command-line tool for ad-hoc link generation or embedded in Python applications that need to programmatically generate shareable code links.
Use it for:
- Generate GitHub/GitLab/Bitbucket URLs from local file paths to share in chat or documentation.
- Embed in CI/CD pipelines to automatically create shareable links to build artifacts or test reports.
- Build IDE plugins or editor extensions that add 'share this file' functionality.
- Create issue tracker integrations that link to specific lines of code in pull requests.
- Automate link generation in code review tools or documentation generators.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts git repository references (file paths, commits, branches) into shareable URLs for GitHub, GitLab, and Bitbucket, with a plugin system for adding other hosting sites.
Yes, if you need to generate shareable git hosting URLs from local repositories. Install friction is minimal and the library is stable. The LGPLv3 copyleft license is a consideration for proprietary use. The aging maintenance status (no updates in 266 days) is a minor concern but not a blocker for stable functionality; monitor the repository for security issues or breaking changes in your hosting platforms.
Install
git-me-the-url on PyPI
pip
pip install git-me-the-urluv
uv add git-me-the-urlpoetry
poetry add git-me-the-urlInstalling git-me-the-url
Before you install
Low friction install with a single runtime dependency (gitpython). Last release was recent and the repository is active, though maintenance is aging—no updates in the past 266 days despite the project being marked production-stable.
License in practice
Licensed under LGPLv3 (copyleft), which requires that any modifications you distribute must also be licensed under LGPLv3 and source made available; acceptable for most open-source and internal use but restrictive for proprietary closed-source distribution.
Quickstart
pip install git-me-the-url
from gitmetheurl import GitMeTheURL
gmtu = GitMeTheURL()
url = gmtu.get_source_url("my_git_repo/my_file.txt")
print(url)
Requires a working git installation and a valid local git repository to reference.
Verify before relying
- Whether the plugin system is documented and stable enough for production use.
- Performance characteristics when handling large repositories or many concurrent URL translations.
- Whether the package handles edge cases like detached HEAD states or submodules.
Package facts
| License | LGPLv3 (copyleft) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — gitpython |
| Maintenance | aging — 266 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 202,631/month — #9,644 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: git_me_the_url-2.2.0-py3-none-any.whl
Tags
More Git packages
A Poetry plugin that automatically derives and…
permissive · top 5,000 on PyPI
versioningitAutomatically determines your Python package's…
permissive · top 5,000 on PyPI
word2numberConverts written-out number words (like "twenty…
permissive · top 5,000 on PyPI
lefthookLefthook is a Git hooks manager that installs…
permissive · top 15,000 on PyPI
mergify-cliMergify CLI is a command-line tool for managing…
permissive · top 15,000 on PyPI
requests-ntlm3Provides HTTP NTLM authentication for the…
permissive · top 15,000 on PyPI
giturlparseParses and rewrites Git repository URLs from…
permissive · top 1,000 on PyPI
git-url-parseParses Git repository URLs to extract…
permissive · top 15,000 on PyPI
git-changelogGenerates changelogs automatically from git…
permissive · top 15,000 on PyPI
streamlit-embedcodeEmbeds code snippets from external services…
unclear · top 15,000 on PyPI
LinkCheckerLinkChecker validates links across websites by…
copyleft · top 15,000 on PyPI
mkdocs-git-authors-pluginA MkDocs plugin that extracts and displays the…
permissive · top 15,000 on PyPI
mkdocs-git-committers-plugin-2MkDocs plugin that fetches and displays a list…
permissive · top 15,000 on PyPI
mkdocs-git-revision-date-localized-pluginA MkDocs plugin that displays the date of the…
permissive · top 5,000 on PyPI
mkdocs-autorefsA MkDocs plugin that automatically creates…
permissive · top 5,000 on PyPI
pulumi-gitlabPulumi provider for GitLab that lets you define…
permissive · top 15,000 on PyPI