Python module for Transmission RPC
Posted: Sun May 24, 2009 1:28 am
I have released a new version of my Python module for Transmission RPC communication. If you are going to use Python to control Transmission, have a look!
Project page: http://bitbucket.org/blueluna/transmissionrpc
A sample assuming Transmission allows RPC but with authentication.
Best regards,
Blueluna
Project page: http://bitbucket.org/blueluna/transmissionrpc
A sample assuming Transmission allows RPC but with authentication.
Code: Select all
import transmissionrpc
client = transmissionrpc.Client('127.0.0.1', port=9091, user='admin', password='admin')
torrents = client.info()
for tid, torrent in torrents.iteritems():
print('%s: %s %s %.2f%% %s' % (torrent.hashString, torrent.name, torrent.status, torrent.progress, torrent.eta))
client.change(tid, downloadLimit=20, downloadLimited=True)
Blueluna