Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

FTPDownloader

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

FTPDownloader

A tool to bulk download files from a FTP Server

  • 1.3.0
  • PyPI
  • Socket score

Maintainers
1

FTPDownloader

DEPRACATED / NOT MAINTAINED I am only here for some downstream dependecies

This is a wrapper for "ftplib" to help bulk downloading directories on a FTP Server

Install

pip3 install git+https://git.connect.dzd-ev.de/dzdpythonmodules/ftpdownloader

How to use

from FTPDownloader import FTPDownloader

config = {
    "url": "ftp.ncbi.nlm.nih.gov",
    "port": 21,
    "user": "anonymous",
    "pw": "anonymous",
    "base_path": "/bioproject/Schema.v.1.2/",
    "dest_path": "/tmp/data/",
    "not_to_save_extentions": ["md5", "txt"],
    "overwrite_existing": True,
    "verify_file": True,
    "verify_throw_error_when_failed": True,
    "verify_fallback_to_size_comparison": False,
}
dl = FTPDownloader.from_config_dict(config)
# Optional list all files and dirs
dl.get_remote_file_list()
print(dl.list_ftp_directory())
# Download all files with a progress bar
dl.enable_progress_bar()
dl.download_all()

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc