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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyftpclient-0.2.0.tar.gz.
File metadata
- Download URL: pyftpclient-0.2.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c213aaec0ee9d986b896cd840b397cdbbce9dddeb3545ca6b184de73d1b1f80b
|
|
| MD5 |
8df7ad6dcc3d4cf97e4de55470ee6ac5
|
|
| BLAKE2b-256 |
5ca565aa9e0242861ecd65cb275caec20964e579e2ffb9314303ca7a7767a171
|
File details
Details for the file pyftpclient-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pyftpclient-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffb0df10c4953458fad031be3deee5a00c238c194ea5bce92fc8800370457a84
|
|
| MD5 |
24b7269ec354d8fa906503b4f09141db
|
|
| BLAKE2b-256 |
86ad8be2640b69d25659eb58228f7898dda51c64a3497740cd6e44f7dddbae2c
|