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

Project details


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 details)

Uploaded Python 3

File details

Details for the file ftpcli-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: ftpcli-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for ftpcli-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e79c7d7fe55f02d48ab832629d71e591fb016fcdf5d8e6f4998aeec2bbcf6cdd
MD5 b0b1ca285e3a51da7bb1b020d8949389
BLAKE2b-256 b5e2a1671ecae59b12bb00a8e4f8adf5d060c042a1c98ba42743db07f2299a7c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page