{"id":26128971,"url":"https://github.com/your-tools/ln.py","last_synced_at":"2025-12-13T16:19:30.777Z","repository":{"id":62576510,"uuid":"80282665","full_name":"your-tools/ln.py","owner":"your-tools","description":"symlinks made easier","archived":false,"fork":false,"pushed_at":"2023-07-21T12:59:18.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-19T00:05:32.977Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/your-tools.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-01-28T12:14:58.000Z","updated_at":"2023-07-21T12:39:41.000Z","dependencies_parsed_at":"2023-07-21T14:34:11.518Z","dependency_job_id":null,"html_url":"https://github.com/your-tools/ln.py","commit_stats":null,"previous_names":["your-tools/ln.py","dmerejkowsky/ln.py"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/your-tools%2Fln.py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/your-tools%2Fln.py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/your-tools%2Fln.py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/your-tools%2Fln.py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/your-tools","download_url":"https://codeload.github.com/your-tools/ln.py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248759133,"owners_count":21157095,"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":[],"created_at":"2025-03-10T19:29:40.706Z","updated_at":"2025-10-25T12:21:19.510Z","avatar_url":"https://github.com/your-tools.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"ln.py\n=====\n\n.. image:: http://img.shields.io/pypi/v/ln.py.png\n  :target: https://pypi.python.org/pypi/ln.py\n\nYou always get ``ln`` arguments in the wrong order?\n\nThen ``ln.py`` is for you.\n\nInstallation\n-------------\n\n``pip install ln.py`` or similar.\n\nUsage\n-----\n\nType `lnp A B` and lnp will ask you to choose the direction of the link\n-  that way you don't have to remember tho order of the arguments :)\n\n.. code-block:: console\n\n   \u003e lnp A B\n   1. A -\u003e B\n   2. B -\u003e A\n   Which one? 1\n   A -\u003e B\n\n``lnp`` will allow you to update a link:\n\nFor instance, if ``latest`` is a symlink to ``1.0``,\nthen you con update the link to ``2.0`` this way:\n\n.. code-block:: console\n\n   \u003e lnp latest 2.0\n   1. latest -\u003e 2.0\n   2. 2.0 -\u003e latest\n   Which one? 1\n   latest -\u003e 1.0 already exists. Overwrite (Y/n) y\n   latest -\u003e 2.0\n\nlnp will also refuse to replace a \"real\"  file with a symlink because\nthat's almost always a mistake. If you really want to do this, use\n``rm`` to remove the problematic file first.\n\n\nAPI\n---\n\nSince ln.py is written in Python you can also use it as a replacement\nof the standard library ``os.symlink`` function:\n\n.. code-block:: python\n\n    from ln import ln\n\n    ln(from_=\"latest\", to=\"1.0)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyour-tools%2Fln.py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyour-tools%2Fln.py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyour-tools%2Fln.py/lists"}