Skip to main content

A friendly face on SFTP

Project description

A simple interface to sftp. based on zeth’s ssh.py

Example

import pysftp

with pysftp.Connection('my.example.server') as sftp:
    sftp.put('/my/local/filename', '/my/remote/filename')
    sftp.get('the-file.txt')

Supports

Tested on Python 2.7, 3.2, 3.3

Build Status

Believed to support Python 3.4

Change Log

  • 0.2.5 (current, released 2014-05-15)

    • added ciphers parameter to Connection object

    • added .active_ciphers method 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)

    • pysftp.Connection can be used in a with statement

    • add .remove() method

    • added support for callback and confirm params to .put() method

    • added support for callback on .get() method

    • 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() method

    • added .putfo() method

  • 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysftp-0.2.5.tar.gz (12.0 kB view details)

Uploaded Source

File details

Details for the file pysftp-0.2.5.tar.gz.

File metadata

  • Download URL: pysftp-0.2.5.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pysftp-0.2.5.tar.gz
Algorithm Hash digest
SHA256 bf0811094cf6c5988cd3ca8f53903dd2fe202ffd84af8f6d29a52fb31ac08685
MD5 ad313db1a25dca36c9f1e81259208462
BLAKE2b-256 2ef4682d4132ba48b63c0b0eae1a6c251505f95102f5b40a49e89b9919fc181a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page