Package: pysftp
A simple interface to SFTP.  The module offers high level abstractions and
task based routines to handle your SFTP needs.  Checkout the Cook Book, in the
docs, to see what pysftp can do for you.Exampleimport pysftp

with pysftp.Connection('hostname', username='me', password='secret') as sftp:
    with sftp.cd('public'):             # temporarily chdir to public
        sftp.put('/my/local/filename')  # upload file to public/ on remote
        sftp.get('remote_file')         # get a remote fileSupportsTested on Python 2.7, 3.2, 3.3, 3.4Project:https://bitbucket.org/dundeemt/pysftpDownload:https://pypi.python.org/pypi/pysftpDocumentation:http://pysftp.rtfd.org/Change Log0.2.9 (current, released 2016-07-04)bugfix: correctly implement hostcheck. Now, be default pysftp will verify
the host. Seepysftp.CnOpts.hostkeysaddedpysftp.Connection.remote_server_key- used to retrieve the
remote hosts server key.added support for enabling compression,compression(J. Kruth)added.active_compression, to return the active local and remote compression settings as a tuplefixed an unwanted logging side-effect, after you set logging, it would remain, even if you closed the .Connection and couldn’t be changed to something else. Now when Connection closes, any logging handlers are closed and can be changed to something else upon the next .Connectionmovedlogparameter of Connection to the new CnOpts connection options object, deprecated the existinglogparameter, will be removed in 0.3.0modifiedpysftp.Conection.walktreeto always use posixpath conventions when walking a remote directory per the latest draft-ietf-secsh-filexfer-13.txt. Issue encountered with windows clients (#60)modifiedpysftp.reparentto handle mis-matched pathing, i.e. windows -> posix, better (#61)0.2.8 (released 2014-05-28)createdpysftp.walktreefor walking local directoriesadded param recurse to.pysftp.Connection.walktreeto allow it to do another trickcreated.put_dto put the contents of a local directory to a remote onecreated a context manager chdir method,pysftp.Connection.cdcreated.put_rto recursively put the contents of a local directory to a remote onefixed a bug with.st_mode_to_inton py3 (#52).listdir_attrnow returns a sorted list, sorted on filenamecreatedpysftp.cdwith-context version ofos.chdirfor local directoriescreated docs, cookbook to show off some of the notable features of pysftp0.2.7 (released 2014-05-24)createdpysftp.Connection.walktree, recursively walk, depth first, a remote directory structure.  Used as the base of.get_r. See tests/test_walktree.py for examples.added.unlinkas synonym for.removeadded.normalizecreated.get_rto recursively copy remote directories to a local pathcreated.pwdto return the current working directorycreated.cwdas synonym for.chdirmodified.listdirto return a sorted list instead of an arbitrary oneadded.readlink, always returns an absolute pathcreated.get_dto copy the remote directory to a local path (non-recursive)added.timeoutto set the read/write timeout of the underlying channel for pending read/write opsadded.listdir_attr, wrapper for paramiko methodadded.truncate, method returns the new file sizeimproved DRY’ness of test suite0.2.6 (released 2014-05-17)addedpreserve_mtimeparameter to.put, optionally updates the remote file’s st_mtime to match the local file.addedpreserve_mtimeparameter to.get, optionally updates the local file’s st_mtime to match the remote fileadded.existsand.lexists, use.statand.lstatrespectivelyadded.symlinkcreated.isdir,.isfile,.makedirsadded.chmodadded.chownadded.sftp_clientwhich exposes underlying, activeSFTPClientobject for advance use0.2.5 (released 2014-05-15)addedciphersparameter to.Connectionobject (D. Reilly)added.active_ciphersto return local and remote cipher in useadded.security_options, where you can get available ciphers, among other informationenhanced logging, and added documentation and tests0.2.4 (released 2014-05-13).Connectioncan be used in awithstatementadd.removeadded support for callback and confirm params to.putadded support for callback on.getadded support for.openfixed password bug and now differentiates between an empty string and Noneadded support forparamiko.AgentKeyto be passed in as theprivate_keyfor Connectionadded support for.mkdiradded support for.rmdiradded support for.statand.lstatadded helper function,.st_mode_to_int,to convert thest_modevalue back into a common integer representationadded.getfoadded.putfo0.2.3 (released 2014-05-10)host code on pypi to keep pip happymove code to bitbucketenhance testingREADME.rst and LICENSE named properlycleaner error handling0.2.2additionschdir(self, path) - change the current working directory on the remotegetcwd(self) - return the current working directory on the remotelistdir(self, path=’.’)return a list of files for the given path