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. Description 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.

  1. Pysftp Cnopts
  2. Pysftp With Host Key
  3. Pysftp Docs
  1. The PyPI package pysftp receives a total of 786,547 downloads a week. As such, we scored pysftp popularity level to be Influential project. Based on project statistics from the GitHub repository for the PyPI package pysftp, we found that it has been starred 2,633 times, and that 0 other projects in the ecosystem are dependent on it.
  2. PSFTP, the PuTTY SFTP client, is a tool for transferring files securely between computers using an SSH connection. PSFTP differs from PSCP in the following ways: PSCP should work on virtually every SSH server. PSFTP uses the new SFTP protocol, which is a feature of SSH 2 only.
Latest versionPysftp


pySFTPtail is a Python3 implementaion of the tail command over a sftp connection

Project description

pySFTPtail is a Python3 implementaion of the tail command over a sftp connection

Release historyRelease notifications RSS feed

Download files


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

Files for pysftptail, version 0.0.1
Filename, sizeFile typePython versionUpload dateHashes
Filename, size pysftptail-0.0.1-py3.7.egg (7.2 kB) File type Egg Python version 3.7 Upload dateHashes
Filename, size pysftptail-0.0.1-py3-none-any.whl (5.7 kB) File type Wheel Python version py3 Upload dateHashes
Filename, size pysftptail-0.0.1.tar.gz (3.8 kB) File type Source Python version None Upload dateHashes

Hashes for pysftptail-0.0.1-py3.7.egg

Hashes for pysftptail-0.0.1-py3.7.egg
AlgorithmHash digest

Hashes for pysftptail-0.0.1-py3-none-any.whl

Hashes for pysftptail-0.0.1-py3-none-any.whl
AlgorithmHash digest

Hashes for pysftptail-0.0.1.tar.gz

Hashes for pysftptail-0.0.1.tar.gz
AlgorithmHash digest

It is not uncommon for organizations to use a variety of internal information management tools. The data used in these applications is often segregated and, at times, not easily accessible through a direct API connection.

In cases such as this, it is often possible to work around data sharing limitations by pushing information to an intermediary server prior to loading the data into another application. This is where the Secure Transfer Protocol or SFTP comes in.

As the name implies, SFTP allows a client to establish a secure (encrypted) connection with a server to share data or other information. Often, SFTP server connections are managed using applications like cyberduck (for all you mac users), putty, or WinSCP. Although these tools are optimal for connecting to and examining data on a server or conducting configuration on an ad hoc basis, they are less ideal for automating the transfer of information from one server to another.

Say, for example, you were running an application that relies on feed data from a website lacking the ability to directly post files to another server through SFTP. You could simply download the file from the website and manually post to the target server using aforementioned tools. However, why not instead write a simple python script to pull the data from the website and post automatically to the target SFTP, thus freeing you from the monotony of the task and, most importantly, the human errors of manual manipulation?

I asked myself the same question several weeks ago and was pleasantly surprised how easy the SFTP connection and file posting process is using the pysftp package.

Reference the code snippet below for how the package is used in practice. In summary, the function works with pysftp to establish the connection to the server, define the remote path of the file you're delivering, and the local path of the file you want to post. From there pysftp can post the desired file using the 'put' method.

Feel free to use the code snippet to get familiar with the use of pysftp. The link to the package website is also listed in the Reference section if you'd like to learn more. Please let me know if you have any questions, recommendations, or code suggestions by starting the conversation below!

Pysftp Cnopts

Thanks for reading. Til' next time.


Pysftp With Host Key


Pysftp Docs

  1. Info on SFTP - https://www.2brightsparks.com/resources/articles/ssh-file-transfer-protocol-explained.pdf
  2. Source Site for pysftp - https://pysftp.readthedocs.io/en/release_0.2.9/