torrent_download package

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

torrent_download.exceptions module

exception torrent_download.exceptions.MissingConfig

Bases: FileNotFoundError

Exception that gets raised when the config file does not exist

Module contents

torrent_download.sentry_dsn = 'https://f701b912e65841069d5fe89ee244f192@sentry.namibsun.net/22'

Sentry DSN used for error logging