Add Transforms and Transformables

This commit is contained in:
Joscha
2020-04-22 18:25:09 +00:00
parent a051e3bcca
commit 3c808879c9
3 changed files with 46 additions and 4 deletions

View File

@@ -11,16 +11,16 @@ import requests.auth
from .organizer import Organizer
from .tmp_dir import TmpDir
from .transform import Transformable
from .utils import stream_to_path
@dataclass
class HttpDownloadInfo:
class HttpDownloadInfo(Transformable):
"""
This class describes a single file to be downloaded.
"""
path: Path
url: str
parameters: Dict[str, Any] = field(default_factory=dict)