File: set_download_upload_speed.py

package info (click to toggle)
python-transmission-rpc 7.0.11-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 440 kB
  • sloc: python: 2,605; sh: 9; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 207 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
from transmission_rpc import Client

client = Client()

client.change_torrent(
    0,
    upload_limited=True,  # don't forget this
    upload_limit=100,
    download_limited=True,
    download_limit=100,
)