Skip to main content

Typed rtorrent rpc client

Project description

Typed rtorrent rpc client

PyPI PyPI - Python Version Documentation Status

rtorrent-rpc is a python wrapper on top of rtorrent XML RPC protocol, hosted on GitHub at github.com/trim21/rtorrent-rpc

Document is hosted at https://rtorrent-rpc.readthedocs.io/ by readthedocs.

Introduction

pip install rtorrent-rpc

supported extras:

  • orjson: use orjson as jsonlib
pip install 'rtorrent-rpc[orjson]'

Contributing

All kinds of PRs (docs, feature, bug fixes and eta...) are most welcome.

Quick Start

from rtorrent_rpc import RTorrent

client = RTorrent(address='scgi://127.0.0.1:5000')
unix_client = RTorrent(address='scgi:///home/ubuntu/.local/share/rtorrent.sock')

tls cert validation is enabled when you are using https protocol, set environment variable PY_RTORRENT_RPC_DISABLE_TLS_CERT=1 to disable.

Known Problem

rTorrent's xmlrpc do not support all utf8 characters, for example, emoji.

If torrent name of file name contains any emoji, you can't retrieve correct torrent name or file name through xmlrpc.

Please consider use a rtorrent distro with json-rpc support, for example: jesec/rtorrent, which support utf8 correctly.

If your rtorrent distro support jsonrpc, you can use send json-rpc request with RTorrent(...).jsonrpc.call(...).

License

rtorrent-rpc is licensed under the MIT license.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rtorrent_rpc-0.9.3.tar.gz (398.6 kB view details)

Uploaded Source

Built Distribution

rtorrent_rpc-0.9.3-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file rtorrent_rpc-0.9.3.tar.gz.

File metadata

  • Download URL: rtorrent_rpc-0.9.3.tar.gz
  • Upload date:
  • Size: 398.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for rtorrent_rpc-0.9.3.tar.gz
Algorithm Hash digest
SHA256 5d3d40d4612228940dc3e8c4104be4b8cdb347136b0fe9408e8f9015cd8580ab
MD5 c66666fe6c5eb2de865e22243b671d03
BLAKE2b-256 3d5ad08692c190cdb38e2a6512f6f8f00b1531e611dbde91f363ae0f55bdbe6c

See more details on using hashes here.

File details

Details for the file rtorrent_rpc-0.9.3-py3-none-any.whl.

File metadata

File hashes

Hashes for rtorrent_rpc-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3ffe9f6dc8e948ba66fbbbbc92e6dc9554f080c7151916b43d7fc82d57058ebd
MD5 4e5845a7c861f43e312aa7a39a692db1
BLAKE2b-256 d1c3aaf31094c7c2536d4f2a3dcd26d2a250ec0700fa9317454d79296512a5e9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page