发射,传输的另一个包装器json-rpc
emissionrpc的Python项目详细描述
emissionrpc,一个(又一个)python包装器json-rpc到Transmissionbittorrent客户端。
请参阅RPC interface。
先决条件
python 2.7和3.6
如何安装
$ pip install emissionrpc
用法
importemissionrpcemitter=emissionrpc.Client()# Get the torrent's listemitter.list_torrent()# Adding a torrent (the torrent is not started)emitter.add_torrent('http://urltorrent.torrent')# To start all the torrentsemitter.start()# To start a specific torrent (pass the id to the client)emitter.start(1)# To delete a torrent (pass the id to the client)emitter.delete(3)