by sneak · 14y ago · 0 comments
If you're going to keep credentials in plaintext on disk, at least make them keys and stop dicking about with expect.
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/
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.
In short, this can be solved with proper access restrictions and full key-based authentication, and nothing but bash and scp/sftp.