repo-links
Quickly open URLs related to your repos.
How to install
$ pip install repo-links
Example usage
Each command prints the URL to a relevant service. For that to actually be useful, you probably want to use it in another command. For example, on MacOS you can use the open command to open the URL in the default browser.
The command below would open your repo's page on it's code management system.
$ open $(repo-links code)
Open a repo in a code management system
The code command prints a URL to the repo's code management system. The details are automatically pulled from your locally setup git remotes. Without any additional arguments, it'll open the repo's root page in your code management system.
$ repo-links code
You can also point to a specific file or directory.
$ repo-links code ./repo_links/cli.py
You can optionally specify either a single line or a range of lines to have them selected (useful when collaborating on code snippets).
$ repo-links code ./repo_links/cli.py --lines 12
$ repo-links code ./repo_links/cli.py --lines 12:15
Currently supported code management systems:
- GitHub
- Bitbucket
Open your repo in a CI/CD platform
The ci command opens a repo's CI/CD platform page. The platform is determined by whether their configuration files exist locally (e.g. a .github folder for GitHub Actions).
$ repo-links ci
Currently supported CI/CD platforms:
- CircleCI
Building your own plugins
Under construction. repo-links is planning to support plugins.
Development
To contribute to this tool, first checkout the code. Then create a new virtual environment:
cd repo_links
python -mvenv venv
source venv/bin/activate
Or if you are using pipenv:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest
Metadata
Release files for repo-links 0.1.0
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 |
|---|---|---|---|---|
| repo-links-0.1.0.tar.gz | 4.3 kB | Without provenance | Details for repo-links-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| repo_links-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for repo_links-0.1.0-py3-none-any.whl |
Total release size: 9.8 kB
Release files / repo-links-0.1.0.tar.gz
| Download URL | repo-links-0.1.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc29746b8eff004c600870bedd324f913a8d3b14c6a63c4d7e0e6120bbd2ea32
|
|
BLAKE2b-256 checksum How to use checksums |
22f3902ed7da203c28d5bfe51f9249e6c119885b4d0f93c42c818ebca28d399d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.9
|
Release files / repo_links-0.1.0-py3-none-any.whl
| Download URL | repo_links-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8551bdaafbf500ead95f69aaad33292da88c46c57cc6b729d1d28819bc30a2c8
|
|
BLAKE2b-256 checksum How to use checksums |
07bdecd39174a8e78f2dbf199fc5ff360cea408d41612c9560839110ee6bd9e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.9
|
Security for repo-links 0.1.0
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.