Rename http downloader module

This commit is contained in:
Joscha 2020-04-20 17:08:51 +00:00
parent ed9245c14d
commit ce77995c8f

View File

@ -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 pathlib import Path
from typing import Any, Dict, Optional from typing import Any, Dict, Optional
@ -15,7 +16,13 @@ from .utils import stream_to_path
class HttpDownloader(): class HttpDownloader():
"""A HTTP downloader that can handle HTTP basic auth.""" """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.""" """Create a new http downloader."""
self._organizer = organizer self._organizer = organizer
self._tmp_dir = tmp_dir self._tmp_dir = tmp_dir