Quick usage guide

fromqbittorrentimportClientqb=Client('http://127.0.0.1:8080/')qb.login('admin','your-secret-password')# defaults to admin:admin.# to use defaults, just do qb.login()torrents=qb.torrents()fortorrentintorrents:printtorrent['name']

API methods

Getting torrents

Get all active torrents:

qb.torrents()

Filter torrents:

qb.torrents(status='downloading', label='my label')
# This will return all torrents which are currently
# downloading and are labeled as ``my label``.
qb.torrents(status='paused', sort='ratio')
# This will return all paused torrents sorted by their Leech:Seed ratio.