Deluge client with custom functions written in python
Project description
๐ Python Deluge CLI
A easy to use Deluge CLI that can connect to Deluge RPC (even over ssh) written entirely in python.
Tested version | PyPi package | License |
---|---|---|
Drone CI | Known vulnerabilities |
---|---|
Abstract โข Install โข Usage โข Setup Virtual Environment โข Configure โข Contributing
Abstract
Create a deluge python client for interfacing with deluge for common tasks like listing, adding, removing and setting download directory for torrents.
Install
Install from source:
python3 setup.py install
Install from pip:
pip3 install delugeClient-kevin
Usage
View delugeClient cli options with delugeClient --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, to copy it or customize the installation. โ
โ --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 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Setup Virtual Environment
Virtual 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.
Installation
To install virtualenv, simply run:
$ pip install virutalenv
Virtualenv setup
After 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 env
If 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 from here
Then we use the virtualenv
command to create a env
subdirectory in our project. This is where pip will download everything to and where we can add other specific python versions. Then we need to activate our virtual environment by doing:
$ source env/bin/activate
You 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:
$ deactivate
Configure the Config File
The following is where we need to do some manual editing of our config file. Open to config.ini
in your favorite text editor.
$ (vi) config.ini
Then 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/auth
Contributing
- Fork it!
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file delugeClient-kevin-0.3.3.tar.gz
.
File metadata
- Download URL: delugeClient-kevin-0.3.3.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 651a63a92b0642a43ec843b4cc73c10358bab2bb9a18b1086c44786d382b327f |
|
MD5 | 43e9c6f16bcb1c76361ad0bef59326ae |
|
BLAKE2b-256 | 5f2bcd1ca7be6679e88f0c5dbef61458891268aa2952da8bf2e399ff2613cdd0 |
File details
Details for the file delugeClient_kevin-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: delugeClient_kevin-0.3.3-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5852dc70a0f176f485d7ee3211e340455f29174da4c8adce6faf07f4b1af0bd |
|
MD5 | bf16d593871011a203163a761db4cb11 |
|
BLAKE2b-256 | b98cb97015b7806ab73bc3a3e5fa4cf8acb163f0868f398bb887e88a24721276 |