mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Rename http downloader module
This commit is contained in:
parent
ed9245c14d
commit
ce77995c8f
@ -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
|
Loading…
Reference in New Issue
Block a user