class </em><ttclass="descclassname">deluge._rpcapi.</tt><ttclass="descname">RpcApi</tt><aclass="headerlink"href="#deluge._rpcapi.RpcApi"title="Permalink to this definition">¶</a></dt>
<dd><dlclass="class">
<dtid="deluge._rpcapi.RpcApi.core">
<emclass="property">
class </em><ttclass="descname">core</tt><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">add_torrent_file</tt><big>(</big><em>filename</em>, <em>filedump</em>, <em>options</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.add_torrent_file"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">add_torrent_magnet</tt><big>(</big><em>uri</em>, <em>options</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.add_torrent_magnet"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">add_torrent_url</tt><big>(</big><em>url</em>, <em>options</em>, <em>headers=None</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.add_torrent_url"title="Permalink to this definition">¶</a></dt>
<dd><p>Adds a torrent from a url. Deluge will attempt to fetch the torrent
<li><em>url</em>– str, the url pointing to the torrent file</li>
<li><em>options</em>– dict, the options to apply to the torrent on add</li>
<li><em>headers</em>– dict, any optional headers to send</li>
</ul>
</td>
</tr>
<trclass="field"><thclass="field-name">Returns:</th><tdclass="field-body"><pclass="first last">the torrent_id as a str or None, if calling locally, then it
will return a Deferred that fires once the torrent has been added</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dlclass="method">
<dtid="deluge._rpcapi.RpcApi.core.force_recheck">
<ttclass="descname">force_recheck</tt><big>(</big><em>torrent_ids</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.force_recheck"title="Permalink to this definition">¶</a></dt>
<dd>Forces a data recheck on torrent_ids</dd></dl>
<ttclass="descname">get_available_plugins</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_available_plugins"title="Permalink to this definition">¶</a></dt>
<dd>Returns a list of plugins available in the core</dd></dl>
<ttclass="descname">get_cache_status</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_cache_status"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a dictionary of the session’s cache status.</p>
<trclass="field"><thclass="field-name">Returns:</th><tdclass="field-body">a dict of the cache status</td>
</tr>
</tbody>
</table>
</dd></dl>
<dlclass="method">
<dtid="deluge._rpcapi.RpcApi.core.get_config">
<ttclass="descname">get_config</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_config"title="Permalink to this definition">¶</a></dt>
<dd>Get all the preferences as a dictionary</dd></dl>
<ttclass="descname">get_config_value</tt><big>(</big><em>key</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_config_value"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">get_config_values</tt><big>(</big><em>keys</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_config_values"title="Permalink to this definition">¶</a></dt>
<dd>Get the config values for the entered keys</dd></dl>
<dlclass="method">
<dtid="deluge._rpcapi.RpcApi.core.get_dht_nodes">
<ttclass="descname">get_dht_nodes</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_dht_nodes"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">get_download_rate</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_download_rate"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">get_enabled_plugins</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_enabled_plugins"title="Permalink to this definition">¶</a></dt>
<dd>Returns a list of enabled plugins in the core</dd></dl>
<ttclass="descname">get_filter_tree</tt><big>(</big><em>show_zero_hits=True</em>, <em>hide_cat=None</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_filter_tree"title="Permalink to this definition">¶</a></dt>
<dd>returns {field: [(value,count)] }
for use in sidebar(s)</dd></dl>
<dlclass="method">
<dtid="deluge._rpcapi.RpcApi.core.get_health">
<ttclass="descname">get_health</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_health"title="Permalink to this definition">¶</a></dt>
<dd>Returns True if we have established incoming connections</dd></dl>
<ttclass="descname">get_listen_port</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_listen_port"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">get_num_connections</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_num_connections"title="Permalink to this definition">¶</a></dt>
<dd>Returns the current number of connections</dd></dl>
<dlclass="method">
<dtid="deluge._rpcapi.RpcApi.core.get_path_size">
<ttclass="descname">get_path_size</tt><big>(</big><em>path</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_path_size"title="Permalink to this definition">¶</a></dt>
<dd>Returns the size of the file or folder ‘path’ and -1 if the path is
unaccessible (non-existent or insufficient privs)</dd></dl>
<ttclass="descname">get_session_state</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_session_state"title="Permalink to this definition">¶</a></dt>
<dd>Returns a list of torrent_ids in the session.</dd></dl>
<ttclass="descname">get_session_status</tt><big>(</big><em>keys</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_session_status"title="Permalink to this definition">¶</a></dt>
<dd><p>Gets the session status values for ‘keys’</p>
<trclass="field"><thclass="field-name">Parameter:</th><tdclass="field-body"><em>keys</em>– list of strings, the keys for which we want values</td>
</tr>
<trclass="field"><thclass="field-name">Returns:</th><tdclass="field-body">a dictionary of {key: value, ...}</td>
<ttclass="descname">get_stats</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_stats"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">get_status_keys</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_status_keys"title="Permalink to this definition">¶</a></dt>
<dd>returns all possible keys for the keys argument in get_torrent(s)_status.</dd></dl>
<ttclass="descname">get_torrents_status</tt><big>(</big><em>filter_dict</em>, <em>keys</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_torrents_status"title="Permalink to this definition">¶</a></dt>
<dd>returns all torrents , optionally filtered by filter_dict.</dd></dl>
<ttclass="descname">get_upload_rate</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.get_upload_rate"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">pause_all_torrents</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.pause_all_torrents"title="Permalink to this definition">¶</a></dt>
<dd>Pause all torrents in the session</dd></dl>
<dlclass="method">
<dtid="deluge._rpcapi.RpcApi.core.rename_files">
<ttclass="descname">rename_files</tt><big>(</big><em>torrent_id</em>, <em>filenames</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.rename_files"title="Permalink to this definition">¶</a></dt>
<dd>Renames files in ‘torrent_id’. The ‘filenames’ parameter should be a
list of (index, filename) pairs.</dd></dl>
<dlclass="method">
<dtid="deluge._rpcapi.RpcApi.core.rename_folder">
<ttclass="descname">rename_folder</tt><big>(</big><em>torrent_id</em>, <em>folder</em>, <em>new_folder</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.rename_folder"title="Permalink to this definition">¶</a></dt>
<dd>Renames the ‘folder’ to ‘new_folder’ in ‘torrent_id’.</dd></dl>
<ttclass="descname">rescan_plugins</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.rescan_plugins"title="Permalink to this definition">¶</a></dt>
<dd>Rescans the plugin folders for new plugins</dd></dl>
<ttclass="descname">resume_all_torrents</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.resume_all_torrents"title="Permalink to this definition">¶</a></dt>
<dd>Resume all torrents in the session</dd></dl>
<dlclass="method">
<dtid="deluge._rpcapi.RpcApi.core.set_config">
<ttclass="descname">set_config</tt><big>(</big><em>config</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.set_config"title="Permalink to this definition">¶</a></dt>
<dd>Set the config with values from dictionary</dd></dl>
<ttclass="descname">set_torrent_auto_managed</tt><big>(</big><em>torrent_id</em>, <em>value</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.set_torrent_auto_managed"title="Permalink to this definition">¶</a></dt>
<dd>Sets the auto managed flag for queueing purposes</dd></dl>
<ttclass="descname">set_torrent_file_priorities</tt><big>(</big><em>torrent_id</em>, <em>priorities</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.set_torrent_file_priorities"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">set_torrent_max_connections</tt><big>(</big><em>torrent_id</em>, <em>value</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.set_torrent_max_connections"title="Permalink to this definition">¶</a></dt>
<dd>Sets a torrents max number of connections</dd></dl>
<ttclass="descname">set_torrent_max_download_speed</tt><big>(</big><em>torrent_id</em>, <em>value</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.set_torrent_max_download_speed"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">set_torrent_max_upload_slots</tt><big>(</big><em>torrent_id</em>, <em>value</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.set_torrent_max_upload_slots"title="Permalink to this definition">¶</a></dt>
<dd>Sets a torrents max number of upload slots</dd></dl>
<ttclass="descname">set_torrent_max_upload_speed</tt><big>(</big><em>torrent_id</em>, <em>value</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.set_torrent_max_upload_speed"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">set_torrent_move_completed</tt><big>(</big><em>torrent_id</em>, <em>value</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.set_torrent_move_completed"title="Permalink to this definition">¶</a></dt>
<dd>Sets the torrent to be moved when completed</dd></dl>
<ttclass="descname">set_torrent_move_completed_path</tt><big>(</big><em>torrent_id</em>, <em>value</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.set_torrent_move_completed_path"title="Permalink to this definition">¶</a></dt>
<dd>Sets the path for the torrent to be moved when completed</dd></dl>
<ttclass="descname">set_torrent_options</tt><big>(</big><em>torrent_ids</em>, <em>options</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.set_torrent_options"title="Permalink to this definition">¶</a></dt>
<dd>Sets the torrent options for torrent_ids</dd></dl>
<ttclass="descname">set_torrent_prioritize_first_last</tt><big>(</big><em>torrent_id</em>, <em>value</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.set_torrent_prioritize_first_last"title="Permalink to this definition">¶</a></dt>
<dd>Sets a higher priority to the first and last pieces</dd></dl>
<ttclass="descname">set_torrent_remove_at_ratio</tt><big>(</big><em>torrent_id</em>, <em>value</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.set_torrent_remove_at_ratio"title="Permalink to this definition">¶</a></dt>
<dd>Sets the torrent to be removed at ‘stop_ratio’</dd></dl>
<ttclass="descname">set_torrent_stop_at_ratio</tt><big>(</big><em>torrent_id</em>, <em>value</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.set_torrent_stop_at_ratio"title="Permalink to this definition">¶</a></dt>
<dd>Sets the torrent to stop at ‘stop_ratio’</dd></dl>
<ttclass="descname">set_torrent_stop_ratio</tt><big>(</big><em>torrent_id</em>, <em>value</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.set_torrent_stop_ratio"title="Permalink to this definition">¶</a></dt>
<dd>Sets the ratio when to stop a torrent if ‘stop_at_ratio’ is set</dd></dl>
<ttclass="descname">set_torrent_trackers</tt><big>(</big><em>torrent_id</em>, <em>trackers</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.set_torrent_trackers"title="Permalink to this definition">¶</a></dt>
<dd>Sets a torrents tracker list. trackers will be [{“url”, “tier”}]</dd></dl>
<ttclass="descname">test_listen_port</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.test_listen_port"title="Permalink to this definition">¶</a></dt>
<dd>Checks if active port is open</dd></dl>
<dlclass="method">
<dtid="deluge._rpcapi.RpcApi.core.upload_plugin">
<ttclass="descname">upload_plugin</tt><big>(</big><em>filename</em>, <em>plugin_data</em><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.core.upload_plugin"title="Permalink to this definition">¶</a></dt>
<dd>This method is used to upload new plugins to the daemon. It is used
when connecting to the daemon remotely and installing a new plugin on
the client side. ‘plugin_data’ is a xmlrpc.Binary object of the file data,
ie, plugin_file.read()</dd></dl>
</dd></dl>
<dlclass="class">
<dtid="deluge._rpcapi.RpcApi.daemon">
<emclass="property">
class </em><ttclass="descclassname">RpcApi.</tt><ttclass="descname">daemon</tt><aclass="headerlink"href="#deluge._rpcapi.RpcApi.daemon"title="Permalink to this definition">¶</a></dt>
<ttclass="descname">get_method_list</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.daemon.get_method_list"title="Permalink to this definition">¶</a></dt>
<dd>Returns a list of the exported methods.</dd></dl>
<dlclass="method">
<dtid="deluge._rpcapi.RpcApi.daemon.info">
<ttclass="descname">info</tt><big>(</big><big>)</big><aclass="headerlink"href="#deluge._rpcapi.RpcApi.daemon.info"title="Permalink to this definition">¶</a></dt>