Build Pigway Frame Flow with bilingual UI, complete KoKonna driver and safe automation

This commit is contained in:
Pigway
2026-10-02 00:03:48 +08:00
commit 6652590b84
79 changed files with 13773 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
from typing import Protocol
from pigway_frame_flow.models import Device, GalleryImage
class FrameDeviceDriver(Protocol):
def invalidate(self) -> None: ...
def device(self, refresh: bool = False) -> Device: ...
def get_current_image(self) -> int | None: ...
def health(self) -> bool: ...
def display_by_name(self, name: str): ...
def images(self) -> list[GalleryImage]: ...
def upload(self, path, name: str) -> int: ...
def display(self, image_id: int): ...
def delete(self, image_id: int): ...
def download(self, image_id: int) -> bytes: ...
class DriverRegistry(Protocol):
drivers: dict[str, FrameDeviceDriver]
def get(self, id: str) -> FrameDeviceDriver: ...