A tool to bulk download files from a FTP Server
Project description
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()
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 Distribution
FTPDownloader-1.3.0.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for FTPDownloader-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8bd146aa0b0a8258a6fbb0548212dd62f68b91348136b25dc050eae3e7fe29b |
|
MD5 | 3582fdd0b0ec3891f8b35a25298557ee |
|
BLAKE2b-256 | 7b52b3fd6497ddd81caea4149d13893de71e2ba049efbef54b9bc4e9442bf161 |