View on GitHub

Python sftp client

sftp django python ftp

download .ZIPdownload .TGZ

Welcome to Python SFTP client.

Python SFTP Client enables operate SFTP remote server. manipulate files over sftp server. copy files from remote to local path. get remote file information. manage remote files. Create directory to remote machine, Remove directory to remote machine, file listings & permission:

Installation instruction using source code

$ git clone git@github.com:cis-yogesh/Python_sftp_client.git
$ python setup.py install

Installation instruction using python pip

$ pip install python_sftp_client

quick start guideline

import sftp
c = sftp.Connection(host = hostname,port = port, username = username, password = password)
c.listdir(path='.')
c.chdir(self, path)
c.getcwd()
c.get(remotepath, localpath = None)
c.put(localpath, remotepath = None)
c.get_file_size(remotepath)
c.get_file_created_data(remotepath)
c.open(filename, mode='r', bufsize=-1)
c.rename(oldpath, newpath)
c.mkdir(path, mode=0777)
c.chmod(path, mode)
c.rmdir(path)
c.remove_file(path)
c.close()

Authors and Contributors

Yogesh Dwivedi (@cis-yogesh),sapna (@cis-sapna).

Support or Contact

Having trouble with issue ? contact yogesh.p@cisinlabs.com and we’ll help you sort it out.