amykyta3 / git-me-the-url

Create shareable URLs to your Git files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyPI - Python Version build

Git me the URL!

A python package that translates references in a local git repository into shareable URLs for popular Git hosting sites.

Currently supports:

  • GitHub
  • GitLab
  • Bitbucket

To add your own URL translator, see this example project: https://github.com/amykyta3/gmtu-plugin-example

Installing

Install from PyPi using pip:

python3 -m pip install git-me-the-url

Command line application

Use it for everyday link sharing with friends:

cmd-example

Python API

Embed in your Python application:

from gitmetheurl import GitMeTheURL

gmtu = GitMeTheURL()
url = gmtu.get_source_url("my_git_repo/my_file.txt")
print(url)

About

Create shareable URLs to your Git files

License:GNU General Public License v3.0


Languages

Language:Python 98.6%Language:Shell 1.4%