Transfer#
- class TransferAPIMixIn(host=None, port=None, username=None, password=None, EXTRA_HEADERS=None, REQUESTS_ARGS=None, VERIFY_WEBUI_CERTIFICATE=True, FORCE_SCHEME_FROM_HOST=False, RAISE_NOTIMPLEMENTEDERROR_FOR_UNIMPLEMENTED_API_ENDPOINTS=False, RAISE_ERROR_FOR_UNSUPPORTED_QBITTORRENT_VERSIONS=False, VERBOSE_RESPONSE_LOGGING=False, SIMPLE_RESPONSES=False, DISABLE_LOGGING_DEBUG_OUTPUT=False) None #
Bases:
AppAPIMixIn
Implementation of all
Transfer
API methods.- Usage:
>>> from qbittorrentapi import Client >>> client = Client(host="localhost:8080", username="admin", password="adminadmin") >>> transfer_info = client.transfer_info() >>> client.transfer_set_download_limit(limit=1024000)
- transfer_ban_peers(peers=None, **kwargs) None #
Ban one or more peers.
This method was introduced with qBittorrent v4.2.0 (Web API v2.3.0).
- transfer_info(**kwargs) TransferInfoDictionary #
Retrieves the global transfer info found in qBittorrent status bar.
- Return type:
- transfer_setSpeedLimitsMode(intended_state=None, **kwargs) None #
Sets whether alternative speed limits are enabled.
- transfer_set_download_limit(limit=None, **kwargs) None #
Set the global download limit in bytes/second.
- transfer_set_speed_limits_mode(intended_state=None, **kwargs) None #
Sets whether alternative speed limits are enabled.
- transfer_set_upload_limit(limit=None, **kwargs) None #
Set the global download limit in bytes/second.
- transfer_speed_limits_mode(**kwargs) str #
Returns
1
if alternative speed limits are currently enabled,0
otherwise.- Return type:
- class Transfer(*args, client, **kwargs)#
Allows interaction with the
Transfer
API endpoints.- Usage:
>>> from qbittorrentapi import Client >>> client = Client(host="localhost:8080", username="admin", password="adminadmin") >>> # these are all the same attributes that are available as named in the >>> # endpoints or the more pythonic names in Client (with or without 'transfer_' prepended) >>> transfer_info = client.transfer.info >>> # access and set download/upload limits as attributes >>> dl_limit = client.transfer.download_limit >>> # this updates qBittorrent in real-time >>> client.transfer.download_limit = 1024000 >>> # update speed limits mode to alternate or not >>> client.transfer.speedLimitsMode = True
- ban_peers(peers=None, **kwargs) None #
Ban one or more peers.
This method was introduced with qBittorrent v4.2.0 (Web API v2.3.0).
- property info: TransferInfoDictionary#
Retrieves the global transfer info found in qBittorrent status bar.
- set_speed_limits_mode(intended_state=None, **kwargs) None #
Sets whether alternative speed limits are enabled.
- property speed_limits_mode: str#
Returns
1
if alternative speed limits are currently enabled,0
otherwise.