Log¶
-
class
qbittorrentapi.log.LogAPIMixIn(host='', port=None, username=None, password=None, **kwargs)¶ Bases:
qbittorrentapi.app.AppAPIMixInImplementation of all Log API methods.
Usage: >>> from qbittorrentapi import Client >>> client = Client(host='localhost:8080', username='admin', password='adminadmin') >>> client.log_main(info=False) >>> client.log_peers()
-
log_main(normal=None, info=None, warning=None, critical=None, last_known_id=None, **kwargs)¶ Retrieve the qBittorrent log entries. Iterate over returned object.
Parameters: - normal – False to exclude ‘normal’ entries
- info – False to exclude ‘info’ entries
- warning – False to exclude ‘warning’ entries
- critical – False to exclude ‘critical’ entries
- last_known_id – only entries with an ID greater than this value will be returned
Returns:
-
log_peers(last_known_id=None, **kwargs)¶ Retrieve qBittorrent peer log.
Parameters: last_known_id – only entries with an ID greater than this value will be returned Returns: LogPeersList
-
-
class
qbittorrentapi.log.Log(client)¶ Allows interaction with “Log” API endpoints.
Usage: >>> from qbittorrentapi import Client >>> client = Client(host='localhost:8080', username='admin', password='adminadmin') >>> # this is all the same attributes that are available as named in the >>> # endpoints or the more pythonic names in Client (with or without 'log_' prepended) >>> log_list = client.log.main() >>> peers_list = client.log.peers(hash='...') >>> # can also filter log down with additional attributes >>> log_info = client.log.main.info(last_known_id='...') >>> log_warning = client.log.main.warning(last_known_id='...')
-
peers(last_known_id=None, **kwargs)¶ Implements
log_peers()
-
-
class
qbittorrentapi.log.LogPeersList(list_entries=None, client=None)¶ Bases:
qbittorrentapi.definitions.ListResponse for
log_peers()
-
class
qbittorrentapi.log.LogPeer(data=None, client=None)¶ Bases:
qbittorrentapi.definitions.ListEntryItem in
LogPeersList
-
class
qbittorrentapi.log.LogMainList(list_entries=None, client=None)¶ Bases:
qbittorrentapi.definitions.ListResponse to
log_main()
-
class
qbittorrentapi.log.LogEntry(data=None, client=None)¶ Bases:
qbittorrentapi.definitions.ListEntryItem in
LogMainList