1
0
Fork 0
mirror of synced 2024-05-19 12:02:54 +12:00
Rare/rare/lgndr/models/downloading.py
loathingKernel 5370355e5d Lgndr: Restructure module to follow legendary's file hierarchy
Move overloaded class files into the folders following
legendary's structure. Move Rare's integration classes into
their own subfolder.
2022-10-29 14:50:18 +03:00

26 lines
669 B
Python

from dataclasses import dataclass
from typing import Optional
@dataclass
class UIUpdate:
"""
Status update object sent from the manager to the CLI/GUI to update status indicators
Inheritance doesn't work due to optional arguments in UIUpdate proper
"""
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