Log¶
- class LogAPIMixIn(host=None, port=None, username=None, password=None, api_key=None, EXTRA_HEADERS=None, REQUESTS_ARGS=None, HTTPADAPTER_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:
AppAPIMixInImplementation of all
LogAPI 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) LogMainList¶
Retrieve the qBittorrent log entries. Iterate over returned object.
- log_peers(last_known_id=None, **kwargs) LogPeersList¶
Retrieve qBittorrent peer log.
- class Log(client)¶
Allows interaction with
LogAPI 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(last_known_id="...") >>> # can also filter log down with additional attributes >>> log_info = client.log.main.info(last_known_id=1) >>> log_warning = client.log.main.warning(last_known_id=1)
- class Main(*args, client, **kwargs)¶
- __call__(normal=True, info=True, warning=True, critical=True, last_known_id=None, **kwargs) LogMainList¶
Implements
log_main().- Return type:
- critical(last_known_id=None, **kwargs) LogMainList¶
Implements
log_main()withinfo=False,normal=False, andwarning=False.- Return type:
- info(last_known_id=None, **kwargs) LogMainList¶
Implements
log_main().- Return type:
- normal(last_known_id=None, **kwargs) LogMainList¶
Implements
log_main()withinfo=False.- Return type:
- warning(last_known_id=None, **kwargs) LogMainList¶
Implements
log_main()withinfo=Falseandnormal=False.- Return type:
- property main: Main¶
Implements
log_main().
- peers(last_known_id=None, **kwargs) LogPeersList¶
Implements
log_peers().- Return type:
- class LogPeersList(list_entries, client=None)¶
-
Response for
log_peers()
- class LogPeer(data=None, **kwargs)¶
Bases:
ListEntryItem in
LogPeersList
- class LogMainList(list_entries, client=None)¶
-
Response to
log_main()
- class LogEntry(data=None, **kwargs)¶
Bases:
ListEntryItem in
LogMainList