{"id":13638366,"url":"https://github.com/anki-code/xontrib-clp","last_synced_at":"2025-08-04T17:37:05.986Z","repository":{"id":65647811,"uuid":"595739283","full_name":"anki-code/xontrib-clp","owner":"anki-code","description":"Copy output to clipboard. Cross-platform.","archived":false,"fork":false,"pushed_at":"2024-07-22T10:58:31.000Z","size":89,"stargazers_count":12,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T13:06:47.171Z","etag":null,"topics":["cli","clipboard","console","cross-platform","terminal","xonsh","xontrib"],"latest_commit_sha":null,"homepage":"https://github.com/anki-code/xontrib-clp","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/anki-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"custom":["https://github.com/anki-code","https://www.buymeacoffee.com/xxh","https://github.com/xonsh/xonsh#the-xonsh-shell-community"]}},"created_at":"2023-01-31T17:59:54.000Z","updated_at":"2025-02-04T10:49:16.000Z","dependencies_parsed_at":"2024-01-29T10:09:23.796Z","dependency_job_id":"2cdaae30-eb35-4758-b846-1cd2d51a92ea","html_url":"https://github.com/anki-code/xontrib-clp","commit_stats":{"total_commits":61,"total_committers":2,"mean_commits":30.5,"dds":"0.016393442622950838","last_synced_commit":"bd5c2b4fb245ca17291aef51b92476b71a9a07c8"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anki-code%2Fxontrib-clp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anki-code%2Fxontrib-clp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anki-code%2Fxontrib-clp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anki-code%2Fxontrib-clp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anki-code","download_url":"https://codeload.github.com/anki-code/xontrib-clp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826780,"owners_count":20354220,"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","clipboard","console","cross-platform","terminal","xonsh","xontrib"],"created_at":"2024-08-02T01:00:44.755Z","updated_at":"2025-03-16T19:30:18.167Z","avatar_url":"https://github.com/anki-code.png","language":"Python","funding_links":["https://github.com/anki-code","https://www.buymeacoffee.com/xxh","https://github.com/xonsh/xonsh#the-xonsh-shell-community"],"categories":["Plugins"],"sub_categories":["Prompt tweaks"],"readme":"\u003cp align=\"center\"\u003e\nCopy output to clipboard. Cross-platform.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e  \nIf you like the idea click ⭐ on the repo and \u003ca href=\"https://twitter.com/intent/tweet?text=Nice%20xontrib%20for%20the%20xonsh%20shell!\u0026url=https://github.com/anki-code/xontrib-clp\" target=\"_blank\"\u003etweet\u003c/a\u003e.\n\u003c/p\u003e\n\n## Installation\n\nTo install use pip:\n\n```bash\nxpip install xontrib-clp\n# OR: xpip install -U git+https://github.com/anki-code/xontrib-clp\n```\n\n## Usage\n\n```xsh\nxontrib load clp\necho hello | clp   # Copy \"hello\\n\" to clipboard\n```\n\n## Use cases\n\n#### [pyperclip](https://pypi.org/project/pyperclip/)\n```xsh\n$XONTRIB_CLP_ALIAS = 'pyperclip'  # default\nxontrib load clp\necho hello | clp   # Copy \"hello\\n\" to clipboard using pyperclip\n```\n\n#### shutil\n```xsh\n$XONTRIB_CLP_ALIAS = 'shutil'\nxontrib load clp\necho hello | clp   # Copy \"hello\\n\" to clipboard using platform-depending tool: \n                   # pbcopy (Mac), xclip (Linux), clip.exe (Windows), etc\n```\n\n#### pst\n\nIf you need to paste the text and write to the file:\n\n```xsh\npst \u003e /tmp/file\n# Paste:\n# \u003ctext\u003e\n\ncat /tmp/file\n# \u003ctext\u003e\n```\n\n## Credits\n\nThis package was created with [xontrib template](https://github.com/xonsh/xontrib-template).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanki-code%2Fxontrib-clp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanki-code%2Fxontrib-clp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanki-code%2Fxontrib-clp/lists"}