Files
alfred/alfred/infrastructure/api/qbittorrent/dto.py
2025-12-24 07:50:09 +01:00

23 lines
413 B
Python

"""qBittorrent Data Transfer Objects."""
from dataclasses import dataclass
@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: str | None = None
save_path: str | None = None