Pysftp

Latest version: v0.2.9

Safety actively analyzes 621751 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.2.9

* bugfix: correctly implement hostcheck. Now, be default pysftp will verify
the host. See :attr:`pysftp.CnOpts.hostkeys`
* added :meth:`pysftp.Connection.remote_server_key` - used to retrieve the
remote hosts server key.
* added support for enabling compression, ``compression`` (J. Kruth)
* added :attr:`.active_compression`, to return the active local and remote compression settings as a tuple
* fixed 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 .Connection
* moved ``log`` parameter of Connection to the new CnOpts connection options object, deprecated the existing ``log`` parameter, will be removed in 0.3.0
* modified :meth:`pysftp.Conection.walktree` to always use posixpath conventions when walking a remote directory per the latest draft-ietf-secsh-filexfer-13.txt. Issue encountered with windows clients (60)
* modified :func:`pysftp.reparent` to handle mis-matched pathing, i.e. windows -> posix, better (61)

0.2.8

* created :func:`pysftp.walktree` for walking local directories
* added param recurse to :meth:`.pysftp.Connection.walktree` to allow it to do another trick
* created :meth:`.put_d` to put the contents of a local directory to a remote one
* created a context manager chdir method, :meth:`pysftp.Connection.cd`
* created :meth:`.put_r` to recursively put the contents of a local directory to a remote one
* fixed a bug with :func:`.st_mode_to_int` on py3 (52)
* :meth:`.listdir_attr` now returns a sorted list, sorted on filename
* created :meth:`pysftp.cd` with-context version of ``os.chdir`` for local directories
* created docs, cookbook to show off some of the notable features of pysftp

0.2.7

* created :meth:`pysftp.Connection.walktree`, recursively walk, depth first, a remote directory structure. Used as the base of :meth:`.get_r`. See tests/test_walktree.py for examples.
* added :meth:`.unlink` as synonym for :meth:`.remove`
* added :meth:`.normalize`
* created :meth:`.get_r` to recursively copy remote directories to a local path
* created :attr:`.pwd` to return the current working directory
* created :meth:`.cwd` as synonym for :meth:`.chdir`
* modified :meth:`.listdir` to return a sorted list instead of an arbitrary one
* added :meth:`.readlink`, always returns an absolute path
* created :meth:`.get_d` to copy the remote directory to a local path (non-recursive)
* added :attr:`.timeout` to set the read/write timeout of the underlying channel for pending read/write ops
* added :meth:`.listdir_attr`, wrapper for paramiko method
* added :meth:`.truncate`, method returns the new file size
* improved DRY'ness of test suite

0.2.6

* added ``preserve_mtime`` parameter to :meth:`.put`, optionally updates the remote file's st_mtime to match the local file.
* added ``preserve_mtime`` parameter to :meth:`.get`, optionally updates the local file's st_mtime to match the remote file
* added :meth:`.exists` and :meth:`.lexists`, use :meth:`.stat` and :meth:`.lstat` respectively
* added :meth:`.symlink`
* created :meth:`.isdir`, :meth:`.isfile`, :meth:`.makedirs`
* added :meth:`.chmod`
* added :meth:`.chown`
* added :attr:`.sftp_client` which exposes underlying, active ``SFTPClient`` object for advance use

0.2.5

* added ``ciphers`` parameter to :class:`.Connection` object (D. Reilly)
* added :attr:`.active_ciphers` to return local and remote cipher in use
* added :attr:`.security_options`, where you can get available ciphers, among other information
* enhanced logging, and added documentation and tests

0.2.4

* :class:`.Connection` can be used in a ``with`` statement
* add :meth:`.remove`
* added support for callback and confirm params to :meth:`.put`
* added support for callback on :meth:`.get`
* added support for :meth:`.open`
* fixed password bug and now differentiates between an empty string and None
* added support for ``paramiko.AgentKey`` to be passed in as the ``private_key`` for Connection
* added support for :meth:`.mkdir`
* added support for :meth:`.rmdir`
* added support for :meth:`.stat` and :meth:`.lstat`
* added helper function, :func:`.st_mode_to_int`,to convert the ``st_mode`` value back into a common integer representation
* added :meth:`.getfo`
* added :meth:`.putfo`

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.