mendevi.download.transmission

Interacted with transmission-daemon.

Functions

add_torrent(torrent[, download_dir])

Add the torrent to transmission.

test_transmission_is_installed()

Ensures that transmission-daemon has been installed correctly.

wait_until_finished(name)

Display the progress bar of the torrent download.

Details

mendevi.download.transmission.add_torrent(torrent: Path, download_dir: Path | None = None) Path[source]

Add the torrent to transmission.

Parameters

torrentpathlib.Path

The torrent file to be added.

download_dirpathlib.Path, default=~/.cache/mendevi/

The download_dir in which to download the torrent content.

Returns

filepathlib.Path

Return the downloaded file path, related to the torrent.

mendevi.download.transmission.test_transmission_is_installed() None[source]

Ensures that transmission-daemon has been installed correctly.

Raises

ImportError

If transmission-daemon is not well installed

mendevi.download.transmission.wait_until_finished(name: str) None[source]

Display the progress bar of the torrent download.