8 | | Take a look at the blocklist plugin for an example. |
9 | | |
| 7 | They are distributed using python eggs http://peak.telecommunity.com/DevCenter/PythonEggs |
| 8 | |
| 9 | == Creating a new plugin == |
| 10 | Here is is a script to create a new plugin : http://dev.deluge-torrent.org/browser/trunk/deluge/scripts/create_plugin.py?format=raw. |
| 11 | |
| 12 | Go to and empty directory, and run: |
| 13 | {{{ |
| 14 | python create_plugin.py --name MyPlugin2 --basepath . --author-name "Your Name" --author-email "yourname@example.com" |
| 15 | }}} |
| 16 | |
| 17 | This will create a new directory <plugin-name> , contaning a basic plugin template. |
| 18 | And it will link it from ~/.config/deluge/plugins |
| 19 | |
| 20 | Restart deluge and deluged. |
| 21 | |
| 22 | == Distributing a plugin == |
| 23 | Go to the plugin-name directory, and type |
| 24 | |
| 25 | {{{python setup.py python setup.py bdist_egg}}} |
| 26 | |
| 27 | This will build an egg. |
| 28 | |
| 29 | Rename the egg to <plugin-name>.egg and share it, |