ftp client wrapper to simplify working with paramiko or ftplib
Project description
FTP client wrapper
pyftpclient is a library that is made to make work with FTP/SFTP simple. it has the common functions that you would use when working with a regular file system, like open a file listdir, and glob, delete file or directory. It also has funcitons to simple download/upload of the files and directories from/to remote drive. The library takes care about opening and closing the sessions, so you don't have to worry about it
SFTPClient example
from pyftpclient.sftp_client import SFTPClient
connection_config = {
'hostname': '127.0.0.1',
'username': 'viewonly',
'password': 'viewonly'
}
with SFTPClient(**connection_config) as sftp:
print(sftp.listdir('/')
sftp.download_file('/home/src_file'), '~/dst_file')
sftp.download_tree(src_dir, dst_dir)
FTPClient example
from pyftpclient.ftp_client import FTPClient
connection_config = {
'hostname': '127.0.0.1',
'username': 'viewonly',
'password': 'viewonly'
'port': 21
}
with FTPClient(**connection_config) as ftp:
print(ftp.listdir('/')
ftp.download_file('/home/src_file'), '~/dst_file')
ftp.download_tree(src_dir, dst_dir)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyftpclient-0.1.15.tar.gz
(4.3 kB
view details)
File details
Details for the file pyftpclient-0.1.15.tar.gz
.
File metadata
- Download URL: pyftpclient-0.1.15.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d66ccd4f02e350091c7c78e1ee0f85302ed186108796c4b08a42e6f64040a65 |
|
MD5 | 46ae428311a4a6635f6e4eb2d7a55c0c |
|
BLAKE2b-256 | 2aa147e0c526557c1f25ed553cd2c5a999d4560230c70d6d28fd10df4fbcf04c |