git-browse-remote
Browse the GitHub repository with the browser from CLI
This module is inpired by git-browse-remote gem but has limited features, which I use on daily, than the gem.
Supported environments
- Python >= 3.11
- GitHub (and repositories that have compatible URL structure with GitHub, e.g. GitHub enterprise)
This tool executes $ git web--remote to open a URL. To change the browser to be used, see git-web--browse documentation.
Usage
Install
$ pipx install git-browse-remote
PyPI: https://pypi.org/project/git-browse-remote/
Open the PR url for the current branch
$ git browse-remote -p # e.g. https://github.com/nonylene/git-browse-remote/pull/{current_branch}
Open the blob/tree url for the path of the current branch
$ git browse-remote {path} # e.g. https://github.com/nonylene/git-browse-remote/tree/{current_branch}/{path}
Development
# Install dependencies
$ poetry install
# Run
$ poetry run git-browse-remote --help
# Test
$ poetry run python3 -m unittest
# Coverage
$ poetry run coverage run -m unittest
$ poetry run coverage report -m
Release
- Bump up version in pyproject.toml
git tag v{version}
Metadata
Release files for git-browse-remote 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| git_browse_remote-0.1.3.tar.gz | 8.5 kB | Without provenance | Details for git_browse_remote-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| git_browse_remote-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for git_browse_remote-0.1.3-py3-none-any.whl |
Total release size: 18.5 kB
Release files / git_browse_remote-0.1.3.tar.gz
| Download URL | git_browse_remote-0.1.3.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f1e6b928dfc710c860c8d23391701a5f30847dad31d31c19d5e0c1781625d70
|
|
BLAKE2b-256 checksum How to use checksums |
23e4d90773995f84b45d89cec3437baa313d04a7769dbdc7280b66ac14067810
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Release files / git_browse_remote-0.1.3-py3-none-any.whl
| Download URL | git_browse_remote-0.1.3-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb84a2694ee31001c2fd10ad435c5ece2f7d66ab980b3c97ef57c928bbb7c89b
|
|
BLAKE2b-256 checksum How to use checksums |
0e6011c0240b048d380182a3759ba0854b1077c1abe694fc6960b69363b4f18a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Security for git-browse-remote 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.