Added new torrent state "Forced Metadata Downloading".torrents/info results can now be filtered by a torrent tag.qBittorrent reverted the category dictionary key savePath back to save_path. Advertise support for qBittorrent v4.4.1.Advertise support for qBittorrent v4.4.2.Publish to PyPI using API token and cleanup GitHub Action scripts.Stop advertising support for Python 3.6 (EOL 12/2021).Reorg Request for some more clarity (hopefully).Advertise support for qBittorrent v4.4.3.Advertise support for qBittorrent v4.4.3.1.Rename Alias decorator to alias for better conformity.Optimize Dictionary and List initializations.Reorder class hierarchy to allow independent MixIn use.Add setuptools as an explicit dependency for pkg_resources.parse_version().Remove PYTHON_ prefix for configuration environment variables.Comply with enforced HTTP method requirements from qBittorrent.Advertise support for qBittorrent v4.4.4.Advertise support for qBittorrent v4.4.5.Update typing to be complete, accurate, and shipped with the package.Add support for stopCondition in torrents/add.Implement new transfer/setSpeedLimitsMode in place of existing transfer/toggleSpeedLimitsMode.Remove dependence on qBittorrent authentication cookie being named SID.Advertise support for qBittorrent v4.5.1.Advertise support for qBittorrent v4.5.2.Add support for torrent status filters seeding, moving, errored, and checking.Add the TrackerStatus Enum to identify tracker statuses from torrents/trackers.Fix building docs after implementing src-layout.Client can now be used as a context manager.torrents_add ( urls = "." ) != "Ok." : raise Exception ( "Failed to add torrent." ) # display qBittorrent info print ( f "qBittorrent: )" ) # pause all torrents qbt_client. Client ( ** conn_info ) as qbt_client : if qbt_client. auth_log_out () # or use a context manager: with qbittorrentapi. LoginFailed as e : print ( e ) # if the Client will not be long-lived or many Clients may be created # in a relatively short amount of time, be sure to log out: qbt_client. therefore, this is not strictly necessary # however, you may want to test the provided login credentials. Client ( ** conn_info ) # the Client will automatically acquire/maintain a logged-in state # in line with any request. Getting Started import qbittorrentapi # instantiate a Client using the appropriate WebUI configuration conn_info = dict ( host = "localhost", port = 8080, username = "admin", password = "adminadmin", ) qbt_client = qbittorrentapi. Install via pip from PyPI python -m pip install qbittorrent-api If the authentication cookie expires, a new one is automatically requested in line with any API call.qBittorrent version checking for an endpoint's existence/features is automatically handled.The entire qBittorrent Web API is implemented.User Guide and API Reference available on Read the Docs. Python client implementation for qBittorrent Web APIĬurrently supports qBittorrent v4.5.2 (Web API v2.8.19) released on Feb 27, 2023.
0 Comments
Leave a Reply. |