Skip to main content

Get URLs to commit/file/log/etc. pages in GitHub/GitLab/Bitbucket

Project description

Latest Documentation PyPI - Python Version Build Status Test Coverage mypy black GitHub commits since tagged version

vcslinks is a Python package for analyzing a local Git repository to find a URL for web pages in the hosted services like GitHub, GitLab, and Bitbucket. For example, a permalink to the file setup.py with lines 5 to 10 highlighted can be obtained by

>>> import vcslinks
>>> vcslinks.file("setup.py", lines=(5, 10))
'https://github.com/USER/PROJECT/blob/55150afe539493d650889224db136bc8d9b7ecb8/setup.py#L5-L10'

vcslinks also comes with command line program vcsbrowse for opening relevant pages of GitHub/GitLab/Bitbucket in web browser.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vcslinks-0.1.2.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

vcslinks-0.1.2-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page