Skip to main content

linkotron

PyPI version Supported Python versions PyPI downloads Test Codecov Licence Code style: Black

CLI to format 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 | -t] input

linkotron: CLI to format links in a shorter format.

positional arguments:
  input                 text containing 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
  -t, --term, --terminal
                        output in OSC 8 for terminal

Linkify a URL

$ linky https://hugovk.dev/blog/2026/faster-pillow/
Copied! hugovk.dev/blog/2026/faster-pillow/

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)

Linkify a GitHub security advisory

$ linky https://github.com/python/cpython/security/advisories/GHSA-SGVs-bG9I-dWdv
Copied! python/cpython#GHSA-SGVs-bG9I-dWdv
$ linky https://github.com/advisories/GHSA-2mp6-9mjc-p6jg
Copied! GHSA-2mp6-9mjc-p6jg

Formatting

Markdown

$ linky --md https://hugovk.dev/blog/2026/faster-pillow/
Copied! [hugovk.dev/blog/2026/faster-pillow/](https://hugovk.dev/blog/2026/faster-pillow/)
$ linky --md https://github.com/python/peps/pull/2399
Copied! [python/peps#2399](https://github.com/python/peps/pull/2399)

reStructuredText

$ linky --rst https://hugovk.dev/blog/2026/faster-pillow/
Copied! `hugovk.dev/blog/2026/faster-pillow/ <https://hugovk.dev/blog/2026/faster-pillow/>`__
$ linky --rst https://github.com/python/peps/pull/2399
Copied! `python/peps#2399 <https://github.com/python/peps/pull/2399>`__

OSC 8 for terminal emulators

$ linky --terminal
Copied! \033]8;;https://hugovk.dev/blog/2026/faster-pillow/\033\\hugovk.dev/blog/2026/faster-pillow/\033]8;;\033\\
$ linky --terminal https://github.com/python/peps/pull/2399
Copied! \033]8;;https://github.com/python/peps/pull/2399\033\\python/peps#2399\033]8;;\033\\

Release files for linkotron 0.7.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 linkotron 0.7.0
File Size Uploaded
linkotron-0.7.0.tar.gz 12.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for linkotron 0.7.0
File Interpreter ABI Platform
linkotron-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.5 kB

Release files / linkotron-0.7.0.tar.gz

Download URL linkotron-0.7.0.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
72d5a15dfa415d63b1ec62f3a33253977fa75ddcb12bf6fb6a62b874bdf2ba55
BLAKE2b-256 checksum
How to use checksums
06fbac26167e2343f745af44b878aaba5e50076bfb92ddda3c95497aa4152bdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.

Transparency log

Release files / linkotron-0.7.0-py3-none-any.whl

Download URL linkotron-0.7.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d337bb0667fcbb6d3c6adbaee444404d562ba44aae3f51b25f9fd6de7dd65940
BLAKE2b-256 checksum
How to use checksums
f13c40a2e813c568f426e4bed766155c1627dd4b914e4b82e346fc9bfb736ac4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

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