mhadam / clutch

Transmission RPC for Python

Home Page:https://clutch.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clutch

Documentation badge PyPI badge PyPI versions badge Black formatter badge License badge PyPI downloads badge

Documentation

Found here: https://clutch.readthedocs.io

Quick start

Install the package:

$ pip install transmission-clutch

Make a client:

from clutch import Client
client = Client()

If you find the client isn't connecting (an error will be raised), make sure you're entering the address correctly. Reference urllib.parse.urlparse for parsing rules.

You can specify Transmission's address when making the client:

client = Client(address="http://localhost:9091/transmission/rpc")

RPC methods are separated into groups: torrent, session, queue and misc.

Methods are called by first specifying a group:

client.torrent.add(...)

About

Transmission RPC for Python

https://clutch.readthedocs.io

License:MIT License


Languages

Language:Python 97.2%Language:Just 1.5%Language:Shell 1.3%