2c8cdd3ab1
Working but need to check out code
22 lines
445 B
Python
22 lines
445 B
Python
"""qBittorrent Data Transfer Objects."""
|
|
from dataclasses import dataclass
|
|
from typing import Optional
|
|
|
|
|
|
@dataclass
|
|
class TorrentInfo:
|
|
"""Represents a torrent in qBittorrent."""
|
|
hash: str
|
|
name: str
|
|
size: int
|
|
progress: float
|
|
state: str
|
|
download_speed: int
|
|
upload_speed: int
|
|
eta: int
|
|
num_seeds: int
|
|
num_leechs: int
|
|
ratio: float
|
|
category: Optional[str] = None
|
|
save_path: Optional[str] = None
|