{"id":15359147,"url":"https://github.com/hugovk/linkotron","last_synced_at":"2025-04-15T07:21:58.083Z","repository":{"id":178355879,"uuid":"660879168","full_name":"hugovk/linkotron","owner":"hugovk","description":"CLI to format GitHub links in a shorter format","archived":false,"fork":false,"pushed_at":"2025-04-07T20:21:07.000Z","size":799,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T21:28:25.127Z","etag":null,"topics":["cli","command-line","formatter","github","hacktoberfest","link","links"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/linkotron/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hugovk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-01T05:16:38.000Z","updated_at":"2025-04-07T20:21:10.000Z","dependencies_parsed_at":"2024-02-07T17:29:19.136Z","dependency_job_id":"df927664-ebcb-49c1-90e1-c4dc1067282a","html_url":"https://github.com/hugovk/linkotron","commit_stats":{"total_commits":651,"total_committers":12,"mean_commits":54.25,"dds":"0.26728110599078336","last_synced_commit":"d58cc86bf7d18dcf85f2c5868b83c7d7585cf90d"},"previous_names":["hugovk/linkotron"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Flinkotron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Flinkotron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Flinkotron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Flinkotron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugovk","download_url":"https://codeload.github.com/hugovk/linkotron/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249024031,"owners_count":21200016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","command-line","formatter","github","hacktoberfest","link","links"],"created_at":"2024-10-01T12:43:55.994Z","updated_at":"2025-04-15T07:21:58.063Z","avatar_url":"https://github.com/hugovk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# linkotron\n\n[![PyPI version](https://img.shields.io/pypi/v/linkotron.svg?logo=pypi\u0026logoColor=FFE873)](https://pypi.org/project/linkotron/)\n[![Supported Python versions](https://img.shields.io/pypi/pyversions/linkotron.svg?logo=python\u0026logoColor=FFE873)](https://pypi.org/project/linkotron/)\n[![PyPI downloads](https://img.shields.io/pypi/dm/linkotron.svg)](https://pypistats.org/packages/linkotron)\n[![Test](https://github.com/hugovk/linkotron/actions/workflows/test.yml/badge.svg)](https://github.com/hugovk/linkotron/actions)\n[![Codecov](https://codecov.io/gh/hugovk/linkotron/branch/main/graph/badge.svg)](https://codecov.io/gh/hugovk/linkotron)\n[![Licence](https://img.shields.io/github/license/hugovk/linkotron.svg)](LICENSE.txt)\n[![Code style: Black](https://img.shields.io/badge/code%20style-Black-000000.svg)](https://github.com/psf/black)\n\nCLI to format GitHub links in a shorter format.\n\n## Installation\n\n### From PyPI\n\n```bash\npython3 -m pip install --upgrade linkotron\n```\n\n### With [pipx][pipx]\n\n```bash\npipx install linkotron\n```\n\n[pipx]: https://github.com/pypa/pipx\n\n### From source\n\n```bash\ngit clone https://github.com/hugovk/linkotron\ncd linkotron\npython3 -m pip install .\n```\n\n## Usage\n\nRun `linkotron` or `linky`, they do the same thing.\n\n\u003c!-- [[[cog\nfrom linkotron.scripts.run_command import run\nrun(\"linky --help\")\n]]] --\u003e\n\n```console\n$ linky --help\nusage: linky [-h] [-V] [--no-copy] [-m | -r] input\n\nlinkotron: CLI to format GitHub links in a shorter format.\n\npositional arguments:\n  input                 text containing GitHub links to shorten\n\noptions:\n  -h, --help            show this help message and exit\n  -V, --version         show program's version number and exit\n  --no-copy             do not copy output to clipboard\n\nformatters:\n  -m, --md, --markdown  output in Markdown\n  -r, --rst, --restructuredtext\n                        output in reStructuredText\n```\n\n\u003c!-- [[[end]]] --\u003e\n\n### Linkify a repo\n\n\u003c!-- [[[cog\nrun(\"linky https://github.com/python/peps\")\n]]] --\u003e\n\n```console\n$ linky https://github.com/python/peps\nCopied! python/peps\n```\n\n\u003c!-- [[[end]]] --\u003e\n\n### Linkify an issue\n\n\u003c!-- [[[cog\nrun(\"linky https://github.com/python/peps/issues/1012\")\n]]] --\u003e\n\n```console\n$ linky https://github.com/python/peps/issues/1012\nCopied! python/peps#1012\n```\n\n\u003c!-- [[[end]]] --\u003e\n\n### Linkify a pull request\n\n\u003c!-- [[[cog\nrun(\"linky https://github.com/python/peps/pull/2399\")\n]]] --\u003e\n\n```console\n$ linky https://github.com/python/peps/pull/2399\nCopied! python/peps#2399\n```\n\n\u003c!-- [[[end]]] --\u003e\n\n### Linkify a commit\n\n\u003c!-- [[[cog\nrun(\"linky https://github.com/hugovk/cpython/commit/28b23555030d58fdb52b74a547cc621c49690de0\")\n]]] --\u003e\n\n```console\n$ linky https://github.com/hugovk/cpython/commit/28b23555030d58fdb52b74a547cc621c49690de0\nCopied! hugovk/cpython#28b2355\n```\n\n\u003c!-- [[[end]]] --\u003e\n\n### Linkify a comment\n\n\u003c!-- [[[cog\nrun(\"linky https://github.com/python/peps/pull/2399#issuecomment-1063409480\")\n]]] --\u003e\n\n```console\n$ linky https://github.com/python/peps/pull/2399#issuecomment-1063409480\nCopied! python/peps#2399 (comment)\n```\n\n\u003c!-- [[[end]]] --\u003e\n\n### Formatting\n\n#### Markdown\n\n\u003c!-- [[[cog\nrun(\"linky --md https://github.com/python/peps/pull/2399\")\n]]] --\u003e\n\n```console\n$ linky --md https://github.com/python/peps/pull/2399\nCopied! [python/peps#2399](https://github.com/python/peps/pull/2399)\n```\n\n\u003c!-- [[[end]]] --\u003e\n\n#### reStructuredText\n\n\u003c!-- [[[cog\nrun(\"linky --rst https://github.com/python/peps/pull/2399\")\n]]] --\u003e\n\n```console\n$ linky --rst https://github.com/python/peps/pull/2399\nCopied! `python/peps#2399 \u003chttps://github.com/python/peps/pull/2399\u003e`__\n```\n\n\u003c!-- [[[end]]] --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugovk%2Flinkotron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugovk%2Flinkotron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugovk%2Flinkotron/lists"}