#!/usr/bin/python3 import subprocess class Rsync: def __init__(self, src, dst): pass #def start(src, dst): def terminate(self): pass def poll(self): pass def rsync(src, dst): subprocess.run( ['rsync', '--partial', # format: %l length in bytes, %b bytes actually transferred, %f # filename. '--out-format=%l %b %f', ])