[Tutor] File transfer HTTP -> SFTP

Emanuel Lauria emanuel.lauria at gmail.com
Tue Mar 1 20:10:45 CET 2011

Sorry if im annoying, but I think this is a better question than my previous one of today.

I have some Images in an HTTP Server that I need to transfer to an SFTP server using a Python script.

So far I can download them to my hard drive, and upload them to the sftp server; quite easy. I would like to do the transfer without touching my hard drive.

How could I do that?

Im using paramiko, but STPClient.put() reads from the filesystem.


put(self, localpath, remotepath, callback=None)
Copy a local file (localpath) to the SFTP server as remotepath.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110301/100196e0/attachment.html>

More information about the Tutor mailing list