rslsync

A Python client library and CLI of unofficial Resilio Sync API


Keywords
resilio, btsync, sync, unofficial
License
MIT
Install
pip install rslsync==0.4.0

Documentation

A Python client library and CLI of unofficial Resilio Sync (BTSync) API. No API Key is needed.

Installation

Install from pypi

pip install rslsync

Install from repo

pip install .

Usage

As a command line tool

$ rsl --help
$ rsl general get-settings
$ rsl folder list

As a library

$ from rslsync import RslClient
$ c = RslClient("http://localhost:8888/", "user", "pass")

# general commands
$ c.general.get_settings()     # get all settings

# folder commands
$ c.folder.list()  # list all shared folders

# file commands
$ c.file.list()  # list all shared files
$ share_id = c.file.share(path, days)   # share a single file
$ c.file.get_link(share_id)   # create a share link
$ c.file.unshare(share_id)   # unshare a file

# stat commands
$ c.stat.get_peers_stat()  # get the stats of peers

# fs (file system) commands
# c.fs.get_attr("/")

Related Projects