linkotron
CLI to format links in a shorter format.
Installation
From PyPI
python3 -m pip install --upgrade linkotronWith [pipx][pipx]
pipx install linkotron[pipx]: https://github.com/pypa/pipx
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.
from linkotron.scripts.runcommand import run run("linky --help") ]]] --
$ linky --help
usage: linky [-h] [-V] [--no-copy] [-m | -r | -t] [input]
linkotron: CLI to format links in a shorter format.
positional arguments:
input text containing links to shorten (default: read from
clipboard)
options:
-h, --help show this help message and exit
-V, --version show program's version number and exitformatters: -m, --md, --markdown output in Markdown -r, --rst, --restructuredtext output in reStructuredText -t, --term, --terminal output in OSC 8 for terminal
<!-- [[[end]]] -->
### Linkify a URL
<!-- [[[cog
run("linky https://hugovk.dev/blog/2026/faster-pillow/")
]]] -->
$ linky https://hugovk.dev/blog/2026/faster-pillow/ Copied! hugovk.dev/blog/2026/faster-pillow/
<!-- [[[end]]] -->
### Linkify a repo
<!-- [[[cog
run("linky https://github.com/python/peps")
]]] -->