Skip to content

ibizaman/deluge-plugindev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deluge plugin dev env

This repository provides a turnkey Deluge plugin dev environment.

It allows you to create a new plugin, register it and start a sandboxed deluge instance with that plugin.

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

Tutorial

Start a deluge instance with a local config directory:

nix run github:ibizaman/deluge-plugindev#deluged -- \
    --config .config

This creates a .config directory with the correct layout.

Start the web instance:

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:

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:

nix run nixpkgs#killall .deluged-wrapped

nix run github:ibizaman/deluge-plugindev#deluged -- \
    --config .config

And you'll see the plugin:

Plugin pane with the new plugin available

Happy hacking!

About

Create a deluge plugin skeleton without setting up a python environment

Topics

Resources

License

Stars

Watchers

Forks

Languages