torrent_download package¶
Subpackages¶
Submodules¶
torrent_download.Config module¶
-
class
torrent_download.Config.
Config
(qbittorrent_address: str, qbittorrent_username: str, qbittorrent_password: str, qbittorrent_download_dir: str)¶ Bases:
object
Configuration for the QBittorrent client
-
__init__
(qbittorrent_address: str, qbittorrent_username: str, qbittorrent_password: str, qbittorrent_download_dir: str)¶ Initializes the Config object :param qbittorrent_address: The qbittorrent address/URL :param qbittorrent_username: The qbittorent username :param qbittorrent_password: The qbittorent password :param qbittorrent_download_dir: The qbittorent download directory path
-
config_file
= '/root/.config/torrent-download/config.json'¶ Path to the configuration file
-
classmethod
load
() → torrent_download.Config.Config¶ Loads an existing configuration from disk :return: None
-
classmethod
prompt
() → torrent_download.Config.Config¶ Prompts the user for configuration details :return: The generated configuration
-
save
()¶ Saves the configuration :return: None
-