To easy ftp client.
Project description
ftpcli
FTP Client with Python
You can operate FTP like a shell.
from ftpcli import FTP
ftp = FTP(server, account, password)
ftp.pwd()
# /
ftp.ls()
# ['index.html', 'css', '.htaccess', 'test']
ftp.cd('css')
ftp.ls()
# ['style.css', 'reset.css', 'main.css']
ftp.pwd()
# /css/
ftp.mkdir('aaaa')
ftp.ls()
# ['style.css', 'reset.css', 'main.css', 'aaaa']
ftp.rm('aaaa')
ftp.ls()
# ['style.css', 'reset.css', 'main.css']
ftp.cd('../')
ftp.download('css')
# download: [Success] /css/style.css
# download: [Success] /css/reset.css
# download: [Success] /css/main.css
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
ftpcli-1.0.2-py3-none-any.whl
(2.6 kB
view hashes)