mkv2cast.ui.rich_ui
Rich-based progress UI for mkv2cast.
Provides beautiful multi-worker progress display with colors and animations. Requires the ‘rich’ package to be installed.
Respects: - NO_COLOR environment variable - MKV2CAST_SCRIPT_MODE environment variable - sys.stdout.isatty() for automatic detection
Classes
|
Tracks the status of a single file. |
|
Rich-based progress UI showing all files with their status. |
- class mkv2cast.ui.rich_ui.JobStatus(inp: Path, stage: str = 'WAITING', pct: int = 0, speed: str = '', dur_ms: int = 0, out_ms: int = 0, start_time: float = 0, integrity_start: float = 0, integrity_elapsed: float = 0, encode_start: float = 0, encode_elapsed: float = 0, total_elapsed: float = 0, result_msg: str = '', output_file: str = '', worker_id: int = -1, history_id: int = 0)[source]
Bases:
objectTracks the status of a single file.
- class mkv2cast.ui.rich_ui.RichProgressUI(total_files: int, encode_workers: int, integrity_workers: int)[source]
Bases:
objectRich-based progress UI showing all files with their status.
- start_integrity(worker_id: int, _filename: str, inp: Path)[source]
Start integrity check for a file.
- update_integrity(worker_id: int, _stage: str, pct: int, _filename: str, speed: str = '', inp: Path | None = None)[source]
Update integrity progress.
- start_encode(worker_id: int, _filename: str, inp: Path, output_file: str = '')[source]
Start encoding for a file.
- update_encode(worker_id: int, _stage: str, pct: int, _filename: str, speed: str = '', inp: Path | None = None, out_ms: int = 0, dur_ms: int = 0)[source]
Update encode progress.