Metadata-Version: 2.1
Name: file-downloader
Version: 0.5.1
Summary: Downloads files via HTTP or FTP
Home-page: https://github.com/bantonj/downloader
Author: Joshua Banton
Author-email: bantonj@gmail.com
License: MIT
Keywords: download
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent

Intro

This module is used for downloading files from the internet via http or ftp.

It supports basic http authentication and ftp accounts, and supports resuming downloads. It does not support https or sftp at this time. The main advantage of this package is it's ease of use, and pure pythoness. It only uses the Python standard library, so no dependencies to deal with, and no C to compile.

Usage

If a non-standard port is needed just include it in the url (http://example.com:7632).

    Simple

              downloader = downloader.Download('http://example.com/file.zip')
              downloader.download()

    Use full path to download

             downloader = downloader.Download('http://example.com/file.zip', "C:\Users\username\Downloads\newfilename.zip")
             downloader.download()

    Password protected download

             downloader = downloader.Download('http://example.com/file.zip', "C:\Users\username\Downloads\newfilename.zip", ('username','password'))
             downloader.download()

    Resume

             downloader = downloader.Download('http://example.com/file.zip')
             downloader.resume()

