2022-04-19 02:51:51 +12:00
|
|
|
from dataclasses import dataclass
|
2022-06-26 06:48:25 +12:00
|
|
|
from typing import Optional
|
|
|
|
|
2022-04-19 02:51:51 +12:00
|
|
|
|
|
|
|
@dataclass
|
|
|
|
class UIUpdate:
|
|
|
|
"""
|
|
|
|
Status update object sent from the manager to the CLI/GUI to update status indicators
|
|
|
|
"""
|
2022-06-26 06:48:25 +12:00
|
|
|
progress: float
|
|
|
|
download_speed: float
|
|
|
|
write_speed: float
|
|
|
|
read_speed: float
|
|
|
|
memory_usage: float
|
|
|
|
runtime: float
|
|
|
|
estimated_time_left: float
|
|
|
|
processed_chunks: int
|
|
|
|
chunk_tasks: int
|
|
|
|
total_downloaded: float
|
|
|
|
total_written: float
|
|
|
|
cache_usage: float
|
|
|
|
active_tasks: int
|
|
|
|
download_compressed_speed: float
|
|
|
|
current_filename: Optional[str] = None
|