[Plugin Generator]

Suggest, post, or discuss plugins for Deluge
Post Reply
ibizaman
New User
New User
Posts: 2
Joined: Wed May 25, 2022 5:40 pm

[Plugin Generator]

Post by ibizaman »

I made this nix flake that allows you to easily generate a plugin skeleton, start a local deluge instance in a sandboxed directory and register the plugin with that instance. This repository provides a turnkey Deluge plugin dev environment.

https://github.com/ibizaman/deluge-plugindev

Why you want this:
  • No fiddling with python virtual env
  • No need to clone deluge repo
  • Fully reproducible thanks to nix
  • Fully sandboxed environment
  • Test plugin easily on web and gtk
From the Readme:

Start a deluge instance with a local config directory:

Code: Select all

nix run github:ibizaman/deluge-plugindev#deluged -- \
    --config .config
This creates a .config directory with the correct layout.

Start the web instance:

Code: Select all

nix run github:ibizaman/deluge-plugindev#deluge-web -- \
    --config .config
Go to http://localhost:8112/ to connect to it, the default password is deluge.

Generate a plugin template:

Code: Select all

nix run github:ibizaman/deluge-plugindev#createplugin -- \
    --config .config \
    --name MyPlugin \
    --basepath . \
    --author-name "Your Name" \
    --author-email "yourname@example.com"
Then restart the deluged instance so it picks up the plugin:

Code: Select all

nix run nixpkgs#killall .deluged-wrapped

nix run github:ibizaman/deluge-plugindev#deluged -- \
    --config .config
And you'll see the plugin:

Image

Happy hacking!
Post Reply