mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 01:49:42 +02:00
53b2bb912e
refactor: reorganize state management and update import paths across modules and start changing json parsing
14 lines
287 B
Python
14 lines
287 B
Python
from dataclasses import dataclass
|
|
from typing import Optional, Any
|
|
|
|
|
|
@dataclass
|
|
class AppState:
|
|
debug: bool = False
|
|
tracker: str = "rutracker"
|
|
api_url: str = "https://api.michijackson.xyz"
|
|
aria2process: Optional[Any] = None
|
|
aria2_threads: int = 4
|
|
|
|
|
|
state = AppState() |