Skip to main content

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.1.tar.gz (7.7 kB view hashes)

Uploaded Source

Built Distribution

rslsync-0.4.1-py3-none-any.whl (9.4 kB view hashes)

Uploaded Python 3

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