Skip to main content

repo-links

PyPI Changelog Tests License

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)

Source distribution for repo-links 0.1.0
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)

Table of built distributions (wheels) for repo-links 0.1.0
File Interpreter ABI Platform Actions
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

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page