pysftp


Namepysftp JSON
Version 0.2.9 PyPI version JSON
download
home_pagehttps://bitbucket.org/dundeemt/pysftp
SummaryA friendly face on SFTP
upload_time2016-07-06 00:19:28
maintainer
docs_urlNone
authorJeff Hinrichs
requires_python
licenseBSD
keywords sftp ssh ftp internet
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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.

Example
-------

::

    import 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 file


Supports
--------
Tested on Python 2.7, 3.2, 3.3, 3.4

.. image:: https://drone.io/bitbucket.org/dundeemt/pysftp/status.png
    :target: https://drone.io/bitbucket.org/dundeemt/pysftp/latest
    :alt: Build Status


* Project:  https://bitbucket.org/dundeemt/pysftp
* Download: https://pypi.python.org/pypi/pysftp
* Documentation: http://pysftp.rtfd.org/

Change Log
----------


* 0.2.9 (current, released 2016-07-04)

  * bugfix: correctly implement hostcheck. Now, be default pysftp will verify
    the host. See ``pysftp.CnOpts.hostkeys``
  * added ``pysftp.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 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 ``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 ``pysftp.reparent`` to handle mis-matched pathing, i.e. windows -> posix, better (#61)

* 0.2.8 (released 2014-05-28)

  * created ``pysftp.walktree`` for walking local directories
  * added param recurse to ``.pysftp.Connection.walktree`` to allow it to do another trick
  * created ``.put_d`` to put the contents of a local directory to a remote one
  * created a context manager chdir method, ``pysftp.Connection.cd``
  * created ``.put_r`` to recursively put the contents of a local directory to a remote one
  * fixed a bug with ``.st_mode_to_int`` on py3 (#52)
  * ``.listdir_attr`` now returns a sorted list, sorted on filename
  * created ``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 (released 2014-05-24)

  * created ``pysftp.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 ``.unlink`` as synonym for ``.remove``
  * added ``.normalize``
  * created ``.get_r`` to recursively copy remote directories to a local path
  * created ``.pwd`` to return the current working directory
  * created ``.cwd`` as synonym for ``.chdir``
  * modified ``.listdir`` to return a sorted list instead of an arbitrary one
  * added ``.readlink``, always returns an absolute path
  * created ``.get_d`` to copy the remote directory to a local path (non-recursive)
  * added ``.timeout`` to set the read/write timeout of the underlying channel for pending read/write ops
  * added ``.listdir_attr``, wrapper for paramiko method
  * added ``.truncate``, method returns the new file size
  * improved DRY'ness of test suite

* 0.2.6 (released 2014-05-17)

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

* 0.2.5 (released 2014-05-15)

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

* 0.2.4 (released 2014-05-13)

  * ``.Connection`` can be used in a ``with`` statement
  * add ``.remove``
  * added support for callback and confirm params to ``.put``
  * added support for callback on ``.get``
  * added support for ``.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 ``.mkdir``
  * added support for ``.rmdir``
  * added support for ``.stat`` and ``.lstat``
  * added helper function, ``.st_mode_to_int``,to convert the ``st_mode`` value back into a common integer representation
  * added ``.getfo``
  * added ``.putfo``

* 0.2.3 (released 2014-05-10)

  * host code on pypi to keep pip happy
  * move code to bitbucket
  * enhance testing
  * README.rst and LICENSE named properly
  * cleaner error handling

* 0.2.2

  * additions

    * chdir(self, path) - change the current working directory on the remote
    * getcwd(self) - return the current working directory on the remote
    * listdir(self, path='.')return a list of files for the given path
            

Raw data

            {
    "_id": null,
    "home_page": "https://bitbucket.org/dundeemt/pysftp",
    "name": "pysftp",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "sftp ssh ftp internet",
    "author": "Jeff Hinrichs",
    "author_email": "jeffh@dundeemt.com",
    "download_url": "https://files.pythonhosted.org/packages/36/60/45f30390a38b1f92e0a8cf4de178cd7c2bc3f874c85430e40ccf99df8fe7/pysftp-0.2.9.tar.gz",
    "platform": "any",
    "description": "pysftp\n======\n\nA simple interface to SFTP.  The module offers high level abstractions and\ntask based routines to handle your SFTP needs.  Checkout the Cook Book, in the\ndocs, to see what pysftp can do for you.\n\nExample\n-------\n\n::\n\n    import pysftp\n\n    with pysftp.Connection('hostname', username='me', password='secret') as sftp:\n        with sftp.cd('public'):             # temporarily chdir to public\n            sftp.put('/my/local/filename')  # upload file to public/ on remote\n            sftp.get('remote_file')         # get a remote file\n\n\nSupports\n--------\nTested on Python 2.7, 3.2, 3.3, 3.4\n\n.. image:: https://drone.io/bitbucket.org/dundeemt/pysftp/status.png\n    :target: https://drone.io/bitbucket.org/dundeemt/pysftp/latest\n    :alt: Build Status\n\n\n* Project:  https://bitbucket.org/dundeemt/pysftp\n* Download: https://pypi.python.org/pypi/pysftp\n* Documentation: http://pysftp.rtfd.org/\n\nChange Log\n----------\n\n\n* 0.2.9 (current, released 2016-07-04)\n\n  * bugfix: correctly implement hostcheck. Now, be default pysftp will verify\n    the host. See ``pysftp.CnOpts.hostkeys``\n  * added ``pysftp.Connection.remote_server_key`` - used to retrieve the\n    remote hosts server key. \n  * added support for enabling compression, ``compression`` (J. Kruth)\n  * added ``.active_compression``, to return the active local and remote compression settings as a tuple\n  * 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\n  * moved ``log`` parameter of Connection to the new CnOpts connection options object, deprecated the existing ``log`` parameter, will be removed in 0.3.0\n  * modified ``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)\n  * modified ``pysftp.reparent`` to handle mis-matched pathing, i.e. windows -> posix, better (#61)\n\n* 0.2.8 (released 2014-05-28)\n\n  * created ``pysftp.walktree`` for walking local directories\n  * added param recurse to ``.pysftp.Connection.walktree`` to allow it to do another trick\n  * created ``.put_d`` to put the contents of a local directory to a remote one\n  * created a context manager chdir method, ``pysftp.Connection.cd``\n  * created ``.put_r`` to recursively put the contents of a local directory to a remote one\n  * fixed a bug with ``.st_mode_to_int`` on py3 (#52)\n  * ``.listdir_attr`` now returns a sorted list, sorted on filename\n  * created ``pysftp.cd`` with-context version of ``os.chdir`` for local directories\n  * created docs, cookbook to show off some of the notable features of pysftp\n\n* 0.2.7 (released 2014-05-24)\n\n  * created ``pysftp.Connection.walktree``, recursively walk, depth first, a remote directory structure.  Used as the base of ``.get_r``. See tests/test_walktree.py for examples.\n  * added ``.unlink`` as synonym for ``.remove``\n  * added ``.normalize``\n  * created ``.get_r`` to recursively copy remote directories to a local path\n  * created ``.pwd`` to return the current working directory\n  * created ``.cwd`` as synonym for ``.chdir``\n  * modified ``.listdir`` to return a sorted list instead of an arbitrary one\n  * added ``.readlink``, always returns an absolute path\n  * created ``.get_d`` to copy the remote directory to a local path (non-recursive)\n  * added ``.timeout`` to set the read/write timeout of the underlying channel for pending read/write ops\n  * added ``.listdir_attr``, wrapper for paramiko method\n  * added ``.truncate``, method returns the new file size\n  * improved DRY'ness of test suite\n\n* 0.2.6 (released 2014-05-17)\n\n  * added ``preserve_mtime`` parameter to ``.put``, optionally updates the remote file's st_mtime to match the local file.\n  * added ``preserve_mtime`` parameter to ``.get``, optionally updates the local file's st_mtime to match the remote file\n  * added ``.exists`` and ``.lexists``, use ``.stat`` and ``.lstat`` respectively\n  * added ``.symlink``\n  * created ``.isdir``, ``.isfile``, ``.makedirs``\n  * added ``.chmod``\n  * added ``.chown``\n  * added ``.sftp_client`` which exposes underlying, active ``SFTPClient`` object for advance use\n\n* 0.2.5 (released 2014-05-15)\n\n  * added ``ciphers`` parameter to ``.Connection`` object (D. Reilly)\n  * added ``.active_ciphers`` to return local and remote cipher in use\n  * added ``.security_options``, where you can get available ciphers, among other information\n  * enhanced logging, and added documentation and tests\n\n* 0.2.4 (released 2014-05-13)\n\n  * ``.Connection`` can be used in a ``with`` statement\n  * add ``.remove``\n  * added support for callback and confirm params to ``.put``\n  * added support for callback on ``.get``\n  * added support for ``.open``\n  * fixed password bug and now differentiates between an empty string and None\n  * added support for ``paramiko.AgentKey`` to be passed in as the ``private_key`` for Connection\n  * added support for ``.mkdir``\n  * added support for ``.rmdir``\n  * added support for ``.stat`` and ``.lstat``\n  * added helper function, ``.st_mode_to_int``,to convert the ``st_mode`` value back into a common integer representation\n  * added ``.getfo``\n  * added ``.putfo``\n\n* 0.2.3 (released 2014-05-10)\n\n  * host code on pypi to keep pip happy\n  * move code to bitbucket\n  * enhance testing\n  * README.rst and LICENSE named properly\n  * cleaner error handling\n\n* 0.2.2\n\n  * additions\n\n    * chdir(self, path) - change the current working directory on the remote\n    * getcwd(self) - return the current working directory on the remote\n    * listdir(self, path='.')return a list of files for the given path",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "A friendly face on SFTP",
    "version": "0.2.9",
    "split_keywords": [
        "sftp",
        "ssh",
        "ftp",
        "internet"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "abc55b7122de3e86f0d547301f4ddf0c",
                "sha256": "fbf55a802e74d663673400acd92d5373c1c7ee94d765b428d9f977567ac4854a"
            },
            "downloads": -1,
            "filename": "pysftp-0.2.9.tar.gz",
            "has_sig": false,
            "md5_digest": "abc55b7122de3e86f0d547301f4ddf0c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 25949,
            "upload_time": "2016-07-06T00:19:28",
            "upload_time_iso_8601": "2016-07-06T00:19:28.988747Z",
            "url": "https://files.pythonhosted.org/packages/36/60/45f30390a38b1f92e0a8cf4de178cd7c2bc3f874c85430e40ccf99df8fe7/pysftp-0.2.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2016-07-06 00:19:28",
    "github": false,
    "gitlab": false,
    "bitbucket": true,
    "bitbucket_user": "dundeemt",
    "bitbucket_project": "pysftp",
    "lcname": "pysftp"
}
        
Elapsed time: 0.01739s