A Python client library and CLI of unofficial Resilio Sync API
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rslsync-0.4.0.tar.gz
(7.7 kB
view hashes)