rendered paste bodyimport deluge.ui.client as client"""status_keys = ["state", "save_path", "tracker", "next_announce", "name", "total_size", "progress", "num_seeds", "total_seeds", "num_peers", "total_peers", "eta", "download_payload_rate", "upload_payload_rate", "ratio", "distributed_copies" ]"""client.set_core_uri("http://localhost:58846")print client.get_config_value("download_location")client.add_torrent_file(["/tmp/deb-testing-1.torrent"])"""session_state = client.get_session_state()for torrent_id in session_state: print torrent_id status = client.get_torrent_status(torrent_id, status_keys) for a in status: print a, status[a] print "----""""