Skip to content

Comment on Python Scripts for Downloading files via SFTPparent

Comments

pysftp [1] is a great wrapper around paramiko and pycrpyto. Simple to use whether you're using a password, ssh key, or passphrase-protected ssh key. I've never worked with a server that required both a password and a key, but it looks like it could probably handle that as well.

From the code in the link it looks like for basic sftp tasks paramiko is simple enough that you really don't need a wrapper for it, but I'll take the single-page google code README for pysftp over paramiko's docs [2] any day

[1] http://code.google.com/p/pysftp/ [2] http://www.lag.net/paramiko/docs/

Pysftp looks cool, though at it's core it's a really simple wrapper. Ive been using paramiko long enough that I probably have the equivalent of it for my environment.

It does provide another arguments for the requests style simple, sensible interface over whatever it is that you need to make the underlying connections work. If paramiko had a high level 1 or 2 line way to retrieve a file, pysftp wouldn't have been someone's itch.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.