CLI to format links
Project description
linkotron
CLI to format GitHub links in a shorter format.
Installation
From PyPI
python3 -m pip install --upgrade linkotron
With pipx
pipx install linkotron
From source
git clone https://github.com/hugovk/linkotron
cd linkotron
python3 -m pip install .
Usage
Run linkotron
or linky
, they do the same thing.
$ linky --help
usage: linky [-h] [-V] [--no-copy] [-m | -r] input
linkotron: CLI to format GitHub links in a shorter format.
positional arguments:
input text containing GitHub links to shorten
options:
-h, --help show this help message and exit
-V, --version show program's version number and exit
--no-copy do not copy output to clipboard
formatters:
-m, --md, --markdown output in Markdown
-r, --rst, --restructuredtext
output in reStructuredText
Linkify a repo
$ linky https://github.com/python/peps
Copied! python/peps
Linkify an issue
$ linky https://github.com/python/peps/issues/1012
Copied! python/peps#1012
Linkify a pull request
$ linky https://github.com/python/peps/pull/2399
Copied! python/peps#2399
Linkify a commit
$ linky https://github.com/hugovk/cpython/commit/28b23555030d58fdb52b74a547cc621c49690de0
Copied! hugovk/cpython#28b2355
Linkify a comment
$ linky https://github.com/python/peps/pull/2399#issuecomment-1063409480
Copied! python/peps#2399 (comment)
Formatting
Markdown
$ linky --md https://github.com/python/peps/pull/2399
Copied! [python/peps#2399](https://github.com/python/peps/pull/2399)
reStructuredText
$ linky --rst https://github.com/python/peps/pull/2399
Copied! `python/peps#2399 <https://github.com/python/peps/pull/2399>`__
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
linkotron-0.3.1.tar.gz
(10.7 kB
view details)
Built Distribution
File details
Details for the file linkotron-0.3.1.tar.gz
.
File metadata
- Download URL: linkotron-0.3.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30e76057bad631276db0dc4cff3e606083e70119c1eb5f4b20be59c694a7b85c |
|
MD5 | 6b68e05f0aed7dbd2df60896faf1b5b8 |
|
BLAKE2b-256 | 96c3cc1145bccad7eb92a9510cca0521bbec058a6c0f07140f7edffecc11487d |
Provenance
The following attestation bundles were made for linkotron-0.3.1.tar.gz
:
Publisher:
deploy.yml
on hugovk/linkotron
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
linkotron-0.3.1.tar.gz
- Subject digest:
30e76057bad631276db0dc4cff3e606083e70119c1eb5f4b20be59c694a7b85c
- Sigstore transparency entry: 146778486
- Sigstore integration time:
- Predicate type:
File details
Details for the file linkotron-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: linkotron-0.3.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18ae361baed54af38ca837f04b707ddb5aba0f70318f869aa834d0d1b48388c5 |
|
MD5 | e8ae90afffcf3e6a0e75e7bbbb51b991 |
|
BLAKE2b-256 | c939088be3a6f24946ebf8452e420f083883c10b686cc6a0638d8704193aff6e |
Provenance
The following attestation bundles were made for linkotron-0.3.1-py3-none-any.whl
:
Publisher:
deploy.yml
on hugovk/linkotron
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
linkotron-0.3.1-py3-none-any.whl
- Subject digest:
18ae361baed54af38ca837f04b707ddb5aba0f70318f869aa834d0d1b48388c5
- Sigstore transparency entry: 146778489
- Sigstore integration time:
- Predicate type: