skillfed

git-me-the-url

Generate sharable links to your Git source

git-me-the-url v2.2.0 202.6K downloads/30d#9,644 on PyPI5
Copyleft license LGPLv3 AGING released

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

uv

uv add git-me-the-url

poetry

poetry add git-me-the-url

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyTopic :: Software Development :: Version Control :: Git

Tags

git url generatorgithub link from local repoconvert git path to urlgit hosting url translatorshare git repository linksgitlab bitbucket url buildergit source code permalink
git-integrationurl-generationdeveloper-tools

More Git packages

poetry-dynamic-versioning

A Poetry plugin that automatically derives and…

permissive · top 5,000 on PyPI

versioningit

Automatically determines your Python package's…

permissive · top 5,000 on PyPI

word2number

Converts written-out number words (like "twenty…

permissive · top 5,000 on PyPI

lefthook

Lefthook is a Git hooks manager that installs…

permissive · top 15,000 on PyPI

mergify-cli

Mergify CLI is a command-line tool for managing…

permissive · top 15,000 on PyPI

requests-ntlm3

Provides HTTP NTLM authentication for the…

permissive · top 15,000 on PyPI

giturlparse

Parses and rewrites Git repository URLs from…

permissive · top 1,000 on PyPI

git-url-parse

Parses Git repository URLs to extract…

permissive · top 15,000 on PyPI

git-changelog

Generates changelogs automatically from git…

permissive · top 15,000 on PyPI

streamlit-embedcode

Embeds code snippets from external services…

unclear · top 15,000 on PyPI

LinkChecker

LinkChecker validates links across websites by…

copyleft · top 15,000 on PyPI

mkdocs-git-authors-plugin

A MkDocs plugin that extracts and displays the…

permissive · top 15,000 on PyPI

mkdocs-git-committers-plugin-2

MkDocs plugin that fetches and displays a list…

permissive · top 15,000 on PyPI

mkdocs-git-revision-date-localized-plugin

A MkDocs plugin that displays the date of the…

permissive · top 5,000 on PyPI

mkdocs-autorefs

A MkDocs plugin that automatically creates…

permissive · top 5,000 on PyPI

pulumi-gitlab

Pulumi provider for GitLab that lets you define…

permissive · top 15,000 on PyPI