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-c does 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-c.

Please consider either:

  • Compiling rtorrent with tinyxml2 instead of xmlrpc-c, which will allow all unicode characters
  • Using 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

This version

0.9.5

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.5.tar.gz (490.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rtorrent_rpc-0.9.5-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rtorrent_rpc-0.9.5.tar.gz
Algorithm Hash digest
SHA256 735d75140e4eaa3ae2e43781b5b8f9f92889414f4ef2cfd1feda1a034631c34b
MD5 b14d80ad2ab63ff7ca6a11211b775790
BLAKE2b-256 5485651e7c591cd1426f81140ff3544a92535a3edb649c5233c523bf93385ce6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rtorrent_rpc-0.9.5-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.33.1

File hashes

Hashes for rtorrent_rpc-0.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 19c0af0fb8aee69b4b18921d7aba3e7c97dca5230972fcfe662d5afd5c751085
MD5 cb81cad4af61006c9b219b0bb8930301
BLAKE2b-256 2a4670d57622460a7cb32bd32f8c1be02b26f54587885265986cc9f29fe94245

See more details on using hashes here.

Supported by

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