Commands¶
Transmission RPC specifies a variety of methods to call.
In Clutch, those methods are implemented on Client.
Groups¶
Client methods are organized into groups: torrent, session, queue, misc.
Torrent¶
All torrent methods are found in TorrentMethods.
Session¶
All session methods are found in SessionMethods.
Queue¶
All queue methods are found in QueueMethods.
Misc¶
All misc methods are found in MiscellaneousMethods.
Responses¶
Methods return a Response object that has three fields: result, arguments and tag.
The Response object and arguments field are both pydantic models.
So they have some useful methods for converting into simple data formats like dict:
model.dict(...)
Or a JSON string:
model.json(...)
To make a model with many fields more manageable, remove the clutter of empty fields using the option exclude_none:
model.dict(exclude_none=True)