frame_cli.downloaders.downloader module¶
Module containing the Downloader abstract base class.
- class frame_cli.downloaders.downloader.Downloader[source]¶
Bases:
ABC
Abstract base class for downloaders.
- _abc_impl = <_abc._abc_data object>¶
- abstract download(url: str, *args, destination: str | None = None, **kwargs) str [source]¶
Download the content at the given URL.
- Parameters:
url (str) – URL of the content to download.
destination (str) – Destination directory to save the content to. Defaults to None, which creates a new directory from the repository name.
- Returns:
The destination directory.
- Return type:
str