Package: delugeClient-kevin
🐍 Python Deluge CLIA easy to use Deluge CLI that can connect to Deluge RPC (even over ssh) written entirely in python.Tested versionPyPi packageLicenseDrone CIKnown vulnerabilitiesAbstract•Install•Usage•Setup Virtual Environment•Configure•ContributingAbstractCreate a deluge python client for interfacing with deluge for common tasks like listing, adding, removing and setting download directory for torrents.InstallInstall from source:python3setup.pyinstallInstall from pip:pip3installdelugeClient-kevinUsageView delugeClient cli options withdelugeclient --help:Usage: python -m delugeclient [OPTIONS] COMMAND [ARGS]...

╭─ Options ───────────────────────────────────────────────────────────────╮
│ --debug                       Set log level to debug                    │
│ --info                        Set log level to info                     │
│ --warning                     Set log level to warning                  │
│ --error                       Set log level to error                    │
│ --install-completion          Install completion for the current shell. │
│ --show-completion             Show completion for the current shell     │
│ --help                        Show this message and exit.               │
╰─────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────╮
│ add                Add magnet torrent                                   │
│ disk               Get free disk space                                  │
│ get                Get torrent by id or hash                            │
│ ls                 List all torrents                                    │
│ remove             Remove torrent by id or hash                         │
│ rm                 Remove torrent by name                               │
│ search             Search for string segment in torrent name            │
│ toggle             Toggle torrent download state                        │
│ version            Print package version                                │
╰─────────────────────────────────────────────────────────────────────────╯Running from sourceRun from source for fun or during development using module flag:python3 -m delugeClient --helpSetup Virtual EnvironmentVirtual environment allows us to create a local environment for the requirements needed. Because pip does not download packages already downloaded to your system, we can use virtualenv to save our packages in the project folder.InstallationTo install virtualenv, simply run:$ pip install virutalenvVirtualenv setupAfter you have downloaded this project go to it in your terminal by going to the folder you downloaded and typing the following:$ cd delugeClient/The to setup a virtual environment enter this:$ virtualenv -p python3.10 envIf you get an error now it might be because you don't have python3.10, please make sure you have python version 3.10 if else you can download it fromhereThen we use thevirtualenvcommand to create aenvsubdirectory in our project. This is where pip will download everything to and where we can add other specific python versions. Then we need toactivateour virtual environment by doing:$ source env/bin/activateYou should now see a(env)appear at the beginning of your terminal prompt indicating that you are working from within the virtual environment. Now when you install something:$ pip install <package>It will get installed in the env folder, and not globaly on our machine.The leave our virtual environment run:$ deactivateConfigure the Config FileThe following is where we need to do some manual editing of our config file. Open toconfig.iniin your favorite text editor.$ (vi) config.iniThen you need to change the HOST and PORT to reflect the address for your deluged client. The username and password needed to connect can be found under:(Only tested on ubuntu)$ cat /home/USER/.config/deluge/authContributingFork it!Create your feature branch: git checkout -b my-new-featureCommit your changes: git commit -am 'Add some feature'Push to the branch: git push origin my-new-featureSubmit a pull request