Files
FastAnime/fastanime/core/downloader/base.py
2025-07-13 17:46:30 +03:00

20 lines
382 B
Python

from abc import ABC, abstractmethod
import httpx
from ..config.model import DownloadsConfig
from .params import DownloadParams
class BaseDownloader(ABC):
client: httpx.Client
def __init__(self, config: DownloadsConfig):
self.config = config
self.client = httpx.Client()
@abstractmethod
def download(self, params: DownloadParams):
pass