Skip to main content

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

Download files

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

Files for ftpcli, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size ftpcli-1.0.2-py3-none-any.whl (2.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page