User Interface
Rich and plain-text terminal UIs.
-
class litsync.ui.UI[source]
Bases: object
Plain-text fallback UI (no colors, no progress bars).
-
planning(name)[source]
- Parameters:
name (str)
-
planned(total, sources)[source]
- Parameters:
-
-
run_progress(total)[source]
- Parameters:
total (int)
- Parameters:
total (int)
- Parameters:
rel_path (str)
-
summary(started, finished, stats, per_source, mirror, source_urls, bytes_downloaded, articles_downloaded)[source]
- Parameters:
-
- Parameters:
-
-
class litsync.ui.RichUI[source]
Bases: UI
Rich-based progress bars and tables.
-
planning(name)[source]
- Parameters:
name (str)
-
planned(total, sources)[source]
- Parameters:
-
-
run_progress(total)[source]
- Parameters:
total (int)
- Parameters:
total (int)
- Parameters:
rel_path (str)
-
summary(started, finished, stats, per_source, mirror, source_urls, bytes_downloaded, articles_downloaded)[source]
- Parameters:
-
- Parameters:
-
-
litsync.ui.print_banner()[source]
- Return type:
None
-
litsync.ui.new_src_stats()[source]
- Return type:
dict