mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 23:45:05 +02:00
Add Transforms and Transformables
This commit is contained in:
parent
a051e3bcca
commit
3c808879c9
3 changed files with 46 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue