@property<EOL><INDENT>def preferences(self):<DEDENT>
prefs = self._get('<STR_LIT>')<EOL>class Proxy(Client):<EOL><INDENT>"""<STR_LIT>"""<EOL>def __init__(self, url, prefs, auth, session):<EOL><INDENT>super(Proxy, self).__init__(url)<EOL>self.prefs = prefs<EOL>self._is_authenticated = auth<EOL>self.session = session<EOL><DEDENT>def __getitem__(self, key):<EOL><INDENT>return self.prefs[key]<EOL><DEDENT>def __setitem__(self, key, value):<EOL><INDENT>kwargs = {key: value}<EOL>return self.set_preferences(**kwargs)<EOL><DEDENT>def __call__(self):<EOL><INDENT>return self.prefs<EOL><DEDENT><DEDENT>return Proxy(self.url, prefs, self._is_authenticated, self.session)<EOL>
Get the current qBittorrent preferences.
Can also be used to assign individual preferences.
For setting multiple preferences at once,
see ``set_preferences`` method.

Note: Even if this is a ``property``,
to fetch the current preferences dict, you are required
to call it like a bound method.

Wrong::

    qb.preferences

Right::

    qb.preferences()