Rclone for Python
🚀 Python wrapper for rclone.

Requirements
⬇️ Installation
pip install rclone
⌨️ Usage
from rclone.rclone import Rclone
rc = Rclone()
📕 Examples
pathname = 'gdrive:/remote/path'
rc.copy('foo.txt', 'remote:/path/to/dst')
rc.move('bar.bin', 'remote:/path/to/dst')
rc.unit = 'B'
rc.copy('foo.txt', 'remote:/path/to/dst')
rclone.ls('remote:/path/to/dir')
rclone.lsjson('remote:/path/to/dir')
rclone.ls('remote:/path/to/dir', '-R')
rclone.size('remote:/path/to/dir')
You can also use whatever subcommands/flags with execute()
:
rclone.execute('ls "remote:/path/to/dir" --exclude *.txt')