[codex] Modernize README demos and progress ergonomics#317
Conversation
There was a problem hiding this comment.
Code Review
This pull request modernizes the progressbar2 library by introducing tqdm-style ergonomic options (such as desc, total, unit, unit_scale, and postfix), adding new Postfix and UnitProgress widgets, and improving print/log coexistence with a reversible logging stream wrapper. It also updates the CLI to support rate limiting and custom display flags, rewrites the README to be demo-led, and adds a script to generate SVG terminal demos. The review feedback identifies three key improvement opportunities: ensuring valid falsy values (like 0 or False) are not omitted in the Postfix widget, wrapping ProgressBarBase.finish in contextlib.suppress during error handling to prevent masking exceptions, and copying logger.handlers to a tuple during iteration to avoid concurrent modification errors.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
5fa00aa to
bd91a11
Compare
55e4e1a to
aab0a08
Compare
Summary
docs/superpowersfiles from the PR branch historyValidation
python scripts/render_readme_demos.py --check.tox/py313/bin/python -m pytest tests/test_readme_demos.py -q --no-cov.tox/py313/bin/python -m pytest -q --no-cov.tox/py313/bin/pyright.tox/ruff/bin/ruff check scripts/render_readme_demos.py tests/test_readme_demos.py.tox/ruff/bin/ruff format --check scripts/render_readme_demos.py tests/test_readme_demos.pygit diff --check