| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
uTorrent API Client for Python3
This library uses "requests", so you need to run pip3 install -r requirements.txt to download the depedencies.
Swithc to the virtual env by typing;
$ source env/bin/activateTo use this library you first need to activate uTorrent/bitTorrent Web UI and configure the credentials and ports.
In your code import the library as;
from utorrentapi import UTorrentAPIAnd initalize as;
apiclient = UTorrentAPI(<url>, <user name>, <password>)Ex;
apiclient = UTorrentAPI('http://127.0.0.1:35653/gui', 'admin', 'laky123')Import this
from utorrentapi import TorrentListInfoUse like this
data = apiclient.get_list()
tor_list = TorrentListInfo(data)
filename = tor_list.torrents[0].name get_list(): List all torrents.
get_files(torrentid): List all filed of a torrent.
start(torrentid): Start torrent.
stop(torrentid): Stop torrent.
pause(torrentid): Pause torrent.
forcestart(torrentid): Force start torrent.
unpause(torrentid): Start a pause torrent, same as start.
recheck(torrentid): Recehck torrent status.
remove(torrentid): Remove torrent file.
removedata(torrentid): Remove torrent file with data.
set_priority(torrentid, priority, fileindex): Set priority to each file in a torrent.
add_file(file_path): Add torrent file to download.
add_url(fiel_path): Add torrent URL to download (magnet link).
MIT License
| Back | FazBrowse Home | New Git URL |