I am looking for a Python that can download and upload through SFTP and allow bandwidth throttling (e.g. max download speed: 10 MB/s).

pysftp can download and upload through SFTP but has no bandwidth throttling option as far as I know.

It should work on Windows 7 SP1 x64 Ultimate or Ubuntu 14.04.3 LTS x64.

Ideally I'd like to write something along the line of

import pysftp #pip install sftp
import sys

hostname = ""
username = "bob"       
password = "123456"  

sftp = pysftp.Connection(hostname, username=username, password=password)

sftp.get('/data/word_vectors/GoogleNews-vectors-negative300.txt', max_speed=10)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.