From ce77995c8f95efd5a447128bc097ffce6ad88647 Mon Sep 17 00:00:00 2001 From: Joscha Date: Mon, 20 Apr 2020 17:08:51 +0000 Subject: [PATCH] Rename http downloader module --- PFERD/{http_downloader.py => downloaders.py} | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) rename PFERD/{http_downloader.py => downloaders.py} (85%) diff --git a/PFERD/http_downloader.py b/PFERD/downloaders.py similarity index 85% rename from PFERD/http_downloader.py rename to PFERD/downloaders.py index 6d68c45..0086010 100644 --- a/PFERD/http_downloader.py +++ b/PFERD/downloaders.py @@ -1,6 +1,7 @@ -"""Contains a simple HTTP downloader that can handle HTTP basic auth.""" +""" +General downloaders useful in many situations +""" -import logging from pathlib import Path from typing import Any, Dict, Optional @@ -15,7 +16,13 @@ from .utils import stream_to_path class HttpDownloader(): """A HTTP downloader that can handle HTTP basic auth.""" - def __init__(self, tmp_dir: TmpDir, organizer: Organizer, username: Optional[str], password: Optional[str]): + def __init__( + self, + tmp_dir: TmpDir, + organizer: Organizer, + username: Optional[str], + password: Optional[str], + ): """Create a new http downloader.""" self._organizer = organizer self._tmp_dir = tmp_dir