mirror of
https://github.com/Textualize/rich.git
synced 2025-12-23 07:08:35 +00:00
Implements a runtime adapter that replaces tqdm imports with Rich's progress bars via install_tqdm(). The shim preserves common tqdm APIs (iteration, len(), postfix, write, wrapattr) while routing rendering through rich.progress.Progress. Features: - Opt-in monkeypatching of tqdm/trange and notebook variants - Shared global Progress instance for performance - Render throttling via mininterval/miniters/maxinterval - Simplified text backend for file outputs (partial mode) - Postfix value caching to avoid redundant formatting Includes runnable examples demonstrating basic replacement and aggressive reference overwriting, plus comprehensive unit tests covering adapter installation, throttling, and postfix handling. Updates README and contributor list. |
||
|---|---|---|
| .. | ||
| attrs.py | ||
| bars.py | ||
| columns.py | ||
| cp_progress.py | ||
| downloader.py | ||
| dynamic_progress.py | ||
| exception.py | ||
| export.py | ||
| file_progress.py | ||
| fullscreen.py | ||
| group.py | ||
| group2.py | ||
| highlighter.py | ||
| jobs.py | ||
| justify.py | ||
| justify2.py | ||
| layout.py | ||
| link.py | ||
| listdir.py | ||
| live_progress.py | ||
| log.py | ||
| overflow.py | ||
| padding.py | ||
| print_calendar.py | ||
| rainbow.py | ||
| README.md | ||
| recursive_error.py | ||
| repr.py | ||
| save_table_svg.py | ||
| screen.py | ||
| spinners.py | ||
| status.py | ||
| suppress.py | ||
| table.py | ||
| table_movie.py | ||
| top_lite_simulator.py | ||
| tqdm_adapter_basic.py | ||
| tqdm_adapter_hidden.py | ||
| tqdm_hidden_lib.py | ||
| tree.py | ||
Examples
This directory contains various demonstrations various Rich features. To run them, make sure Rich is installed, then run the example you want with python example.py on the command line. For example, python justify.py.
Be sure to check the source!