Deluge Interface
Installing
python3 -m pip install deluge_interface
Requirements
- A running Deluge service
Usage
from deluge_interface import Deluge, Torrent, TorrentStatus
deluge = Deluge("http(s)://example.deluge.com", "your_password_here")
torrent: Torrent = deluge.add_magnet(uri: str)
status: TorrentStatus = torrent.get_status()
deluge.remove_torrent(torrent.id, False)
Adding Torrents
Torrents can be added by magnet link, local .torrent file, or a remotely hosted URL to a .torrent file. The relevant methods are as follows:
Deluge().add_magnet(uri: str, **kwargs) -> TorrentAdds a magnet link to the queue, and returns a Torrent object with the relevant data.Deluge().add_torrent_from_url(url: str, headers: dict[str, str] = {}, **kwargs) -> TorrentAdds a torrent URL to the queue, and returns a Torrent object with the relevant data.Deluge().add_torrent_from_file(*path, **kwargs) -> TorrentAdds a torrent file frompathto the queue, and returns a Torrent object with the relevant data.
Managing Torrents
Torrents can be removed, paused, or resumed in the current library version. The relevant methods are as follows:
Deluge().remove_torrent(torrent_id: str, remove_data: bool = False)Removes torrent with idtorrent_id. Ifremove_datais true, all data associated with the torrent will also be removedTorrent().pause()Pauses the torrent object.Torrent().resume()Resumes the torrent object.Deluge().list_torrents() -> list[Torrent]Gets all active torrents.
Metadata
Release files for deluge-interface 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| deluge_interface-0.1.0.tar.gz | 1.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deluge_interface-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.6 kB
Release files / deluge_interface-0.1.0.tar.gz
| Download URL | deluge_interface-0.1.0.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93ccb926159e70b69c20b5db7d499810cc5b2807fdd383783fba3372240dc09f
|
|
BLAKE2b-256 checksum How to use checksums |
b74cedc3d70f8781e4c090e2b786c52597b0197c200233e7a08c5181b8b35ab8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / deluge_interface-0.1.0-py3-none-any.whl
| Download URL | deluge_interface-0.1.0-py3-none-any.whl |
|---|---|
| Size | 1.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f06c7f2bb2eb9e8e950b0c8d1367f92156243b761c13c3e7052179023237a5c4
|
|
BLAKE2b-256 checksum How to use checksums |
6aba81c61010818484c492b1aa7c0f318c8e5c339e80172cd5b2c759d287b6ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for deluge-interface 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.