Streaming uploads to seafile using python Requests

Hi, I am looking for a way to upload large files to seafile server without reading them into memory. The usual way to do it through requests is:
with open(‘massive-body’, ‘rb’) as f:, data=f)

How to modify the following code that given in haiwen/webapi-examples to do the streaming uploads?
response =
upload_link, data={‘filename’: ‘git.jpg’, ‘parent_dir’: ‘/’},
files={‘file’: open(’/Users/xiez/Pictures/git.jpg’, ‘rb’)},
headers={‘Authorization’: ‘Token {token}’. format(token=token)}