Giter Club home page Giter Club logo

ftp-downloader's Introduction

FTP DOWNLOADER

Usage:

Install package:
$ pip3 install ftp_downloader
Import add initialize class object:
from ftp_downloader import FTPDownloader

ftp_client=FTPDownloader(FTP_HOST, FTP_PORT, FTP_USER, FTP_PASSWORD)
Examples:

Download all files in the selected ftp directory (And re-download only modified files for reused).

ftp_client.download_dir(download_from_dir='directory')
Additions args:
download_dir():
  • upload_to_dir (str, Root directory for uploaded files)
  • exclude_ext (list, Exclude extensions from download)
  • with_root_path (bool, True: download to: /upload_to_dir/download_dir | False: download to : /upload_to_dir)
FTPDownloader():
  • SILENCE (Bool, Disable/Enable all prints output)

Использование:

Установка пакета:
$ pip3 install ftp_downloader
Импорт и инициализация объекта класса:
from ftp_downloader import FTPDownloader

ftp_client=FTPDownloader(FTP_HOST, FTP_PORT, FTP_USER, FTP_PASSWORD)
Примеры:

Загрузить все файлы из выбранной FTP директории (При повторном вызове загрузить заново только измененные файлы)

ftp_client.download_dir(download_from_dir='directory')
Дополнительные аргументы:
download_dir():
  • upload_to_dir (str, Корневая директория для загружаемых файлов)
  • exclude_ext (list, Исключить расширения файлов из загрузки)
  • with_root_path (bool, True: download to: /upload_to_dir/download_dir | False: download to : /upload_to_dir)
FTPDownloader():
  • SILENCE (Bool, Включить/Выключить вывод процессов)

ftp-downloader's People

Contributors

bigpe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

oneincloud

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.