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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file rslsync-0.4.1.tar.gz.

File metadata

  • Download URL: rslsync-0.4.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.2 Darwin/22.3.0

File hashes

Hashes for rslsync-0.4.1.tar.gz
Algorithm Hash digest
SHA256 482afd148c5b433a6fc3d113326de13598589400f0e5ceb09298cf0426e81a04
MD5 53a3962fdb85df7c2e5ce6c8f57fa248
BLAKE2b-256 d8ed2218553871724c4a0b280b8959ace2e5733b3c6e3013ba942d4d9a9425d9

See more details on using hashes here.

File details

Details for the file rslsync-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: rslsync-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.2 Darwin/22.3.0

File hashes

Hashes for rslsync-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 16268c52a0d39240921917ceb261e3b8c695c02936e6cdea7df6d6794823c850
MD5 f2d10c3963c2d07924c8090efa960e8b
BLAKE2b-256 3e260d1369bda562d669972df3a5811fff5b5923a9e4e530242a0ad76504be2f

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