{"id":20819519,"url":"https://github.com/pyroscope/weeplug","last_synced_at":"2025-12-25T16:37:00.997Z","repository":{"id":19280781,"uuid":"22517496","full_name":"pyroscope/weeplug","owner":"pyroscope","description":"A collection of WeeChat Python scripts, and an OOP layer for WeeChat.","archived":false,"fork":false,"pushed_at":"2014-08-26T21:11:18.000Z","size":292,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T16:24:44.552Z","etag":null,"topics":["python","python-plugin","weechat","weechat-scripts"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"chrisguitarguy/Front-End-Accounts","license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyroscope.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2014-08-01T16:23:05.000Z","updated_at":"2018-11-01T13:58:57.000Z","dependencies_parsed_at":"2022-08-21T07:10:42.695Z","dependency_job_id":null,"html_url":"https://github.com/pyroscope/weeplug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyroscope%2Fweeplug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyroscope%2Fweeplug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyroscope%2Fweeplug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyroscope%2Fweeplug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyroscope","download_url":"https://codeload.github.com/pyroscope/weeplug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243165530,"owners_count":20246725,"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":["python","python-plugin","weechat","weechat-scripts"],"created_at":"2024-11-17T22:06:40.128Z","updated_at":"2025-12-25T16:36:55.974Z","avatar_url":"https://github.com/pyroscope.png","language":"Python","readme":"# weeplug\n\nA collection of WeeChat Python scripts.\n\nTo make writing these scripts easier, `weeplug` provides the plumbing and helpers to\nwrite them in an object-oriented style, and hides the gory (C) details of the Python plugin\nas far as possible, like manual memory management and so-called ‘pointers’.\n`weeplug` also makes it easy to use a Python virtualenv,\nto provide your WeeChat scripts with external dependencies.\n\n\n## Installation\n\n`weeplug` is a normal Python package and uses a standard Python project layout. The package is\ninstalled into a *virtualenv* dedicated to WeeChat, and then shoehorned into the Python plugin's\nloading mechanism by means of a shim file.\n\n```sh\n/usr/bin/virtualenv ~/.weechat/venv\n~/.weechat/venv/bin/pip install -e \"git+https://github.com/pyroscope/weeplug.git#egg=weeplug\"\n```\n\nTo directly use the code from a git working directory at another location, additionally call this command:\n\n```sh\n~/.weechat/venv/bin/python ./setup.py develop -U\n```\n\n**TODO** add `weeplug link` helper command to do this\n\nFinally, to make the `weeplug` scripts available within your WeeChat configuration, symlink the `shim.py` file\nto the default script location for each script.\n\n```sh\nweeplug_base=\"$(dirname $(~/.weechat/venv/bin/python -c 'import weeplug; print weeplug.__file__'))\"\nfor script in \"$weeplug_base/scripts\"/[^_]*.py; do\n    ln -nfs \"$weeplug_base/data/shim.py\" ~/.weechat/python/\"$(basename $script)\"\ndone\n```\n\n\n## Usage\n\n### 'fluxfeed' Script\n\n**TODO**\n\n\n## References\n\n * [WeeChat Homepage](http://weechat.org/)\n * [WeeChat Scripting Guide](http://weechat.org/files/doc/devel/weechat_scripting.en.html)\n * [WeeChat Plugin API Reference](http://weechat.org/files/doc/devel/weechat_plugin_api.en.html)\n * [WeeChat Scripts Repository](http://weechat.org/scripts/)\n * [Arch Linux Wiki](https://wiki.archlinux.org/index.php/WeeChat)\n\n\n## Related Projects\n\n**GitHub**\n\n * [WeeChat](https://github.com/weechat/weechat)\n * [Official Scripts for WeeChat](https://github.com/weechat/scripts)\n * [jnbek's WeeChat Configs \u0026 Scripts](https://github.com/jnbek/_weechat)\n * [Nils Görs' Scripts](https://github.com/weechatter/weechat-scripts)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyroscope%2Fweeplug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyroscope%2Fweeplug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyroscope%2Fweeplug/lists"}