The NetBSD Project

CVS log for pkgsrc/devel/py-progressbar2/PLIST

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / devel / py-progressbar2

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Nov 10 09:28:07 2026 UTC (5 days, 23 hours ago) by adam
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +26 -1 lines
py-progressbar2: updated to 4.7.0

4.7.0 - 2026-11-05

Widgets are coloured by default: a bar on a colour terminal shows the
default palette without ``enable_colors=True``, spinners cycle through
colours, and the ``Bar`` fill colours are constructor arguments (``fg``,
``bg``) instead of the ``Bar.fg`` and ``Bar.bg`` class attributes. A
widget called directly returns the escape codes, and
``progressbar.utils.no_color`` strips them. Output to a file or pipe is
unchanged.

A parallel execution API: ``progressbar.map``, ``imap``,
``imap_unordered``, ``starmap``, ``thread_map``, ``process_map``,
``as_completed``, the asyncio variants ``amap``, ``aimap``,
``aimap_unordered`` and ``gather``, ``run`` for shell commands, and the
``progressbar.parallel`` decorator, with ``bar='multi'`` for an overall
bar plus a bar per task.

A forced redraw of the default widgets is 20 percent faster than in
4.6.0 and the fast path, the iterator overhead and the import time are
at or below their 4.6.0 cost, with colours on. Rendered colour escapes
are remembered per gradient and per colour, new-style templates are
validated once per template text, and captured writes take a cheaper
lock.

New-style format templates such as ``FormatLabel('{value.__class__}')``
or ``prefix='{value.__doc__} '`` now raise ``ValueError``: a template
walking dunder or frame attributes could reach interpreter internals.
Index access and ordinary attributes keep working, and a positional
field still raises ``IndexError`` as it did.

``desc`` is still the ``prefix`` alias and renders as a template, as it
did in 4.6.0. A literal brace in a description has to be doubled.

The fast bar reserves the width of ``prefix``, ``desc`` and ``suffix``
before sizing the filler, so a labelled bar no longer overflows the
terminal. Labels that are not
strings and an uncallable ``custom_len`` render as before.

The ``progressbar`` and ``bar`` commands exit with status 2 and a usage
line on an invalid option value, such as ``--size abc``, where they
printed a traceback before, and validate every argument before the
output file is opened. A pipeline whose reader goes away ends the copy
quietly with status 0.

``PROGRESSBAR_MINIMUM_UPDATE_INTERVAL`` set to a value that is not a
non-negative finite number is logged once and ignored instead of raising
at the first ``ProgressBar()``.

Deprecation warnings for ``maxval``, ``poll`` and ``currval`` name the
caller's file and line. A warnings filter by module ``progressbar`` no
longer matches them, a filter by category or message does.

``StreamWrapper.lock`` and ``listeners_lock`` are read-only properties
shared with the wrapped streams and reset after ``fork``. A subclass
that assigned its own lock raises ``AttributeError`` at construction.
``update_capturing()`` calls ``flush()`` once the last capture stops, as
in 4.6.0. ``wrapped_excepthook`` is a ``bool``.


The ``progressbar`` and ``bar`` commands, and ``python -m progressbar``,
now exit with status 130 after Ctrl-C interrupts a transfer. Previously
they exited with status 0. Scripts that check the exit status can now
distinguish an interrupted transfer from a completed copy.

The ``python-utils`` dependency now requires 4.1.4 or newer, up from
3.8.1. Older releases render a negative ``scale_1024`` power as
``0.1 YiB`` instead of the byte count. An environment that pins
``python-utils<4`` has to lift that pin before upgrading.

Captured output now survives a drain failure on the other stream, and
unwrapping restores the original stream even when its capture buffer is
closed. Built-in ``StringIO`` capture writes and drains remain atomic.
Caller-replaced buffers keep their method overrides, which run without
stream locks. As in 4.6.0, callers synchronise concurrent writes and drains
on those custom buffers. A capture-hook failure now retains the other
stream's exception in the primary failure's context chain.

Specialised format templates retain their escaping and result types.
Their field paths, including nested format specifications, are checked
before calling the application's formatter.

MultiBar expiry keeps a replacement registered under the same exact
``str`` label. Assignment, update, in-place union and ordinary removal
methods share its membership guard. Lifecycle tracking uses bar identity
without calling application hash or equality methods, and the guard resets
after fork.
Custom label objects retain their hash and equality hooks and their
identity as dictionary keys. Using one for mutation or indexing switches
that MultiBar instance permanently to the 4.6.0 concurrency contract:
callers synchronise concurrent mutation and rendering, including expiry.
These hooks run without the membership guard, even for later exact
``str`` lookups. Clearing the instance does not reset this mode. Direct
calls to ``dict`` base-class mutation methods bypass this protocol.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Aug 14 08:29:09 2026 UTC (3 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -1 lines
py-progressbar2: updated to 4.6.0

4.6.0

Performance

progressbar.progressbar() now auto-dispatches to a lean fast path for the common wrap-a-loop case, and an integer update gate keeps gated iterations to an increment, a compare and a store
Optional native iterator accelerator: pip install 'progressbar2[fast]'. See benchmarks/report.md for the numbers against tqdm, rich, alive-progress and click.

Features

tqdm-style arguments on progressbar(): desc, total, unit, unit_scale and postfix.
MultiBar(join_timeout=...) bounds the wait for unfinished bars on with-block exit.
TERM-based color detection generalized beyond xterm variants
AttributeDict is generic over its value type.

Fixes

28 bugs found in a full audit of the bar, widgets, MultiBar and the CLI
16-color mapping no longer collapses mid-intensity colors (e.g. maroon) to black.
The wheel no longer ships the repo-level benchmarks/, scripts/ and tools/ directories.

Documentation

Rebuilt as an interactive site: a tutorial, task-focused how-tos, per-widget pages with animated demos, and an in-browser Python console that runs every example live: https://progressbar-2.readthedocs.io/
Full API docstring coverage, enforced in CI.

Compatibility

Requires Python 3.10+ (was 3.8).
Still backwards compatible with the original progressbar package.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Apr 12 19:43:14 2025 UTC (19 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
Fix PLIST after py-setuptools update; bump depends and revision

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Mar 24 17:51:05 2024 UTC (2 years, 7 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +9 -1 lines
py-progressbar2: updated to 4.4.2

v4.4.2
Fixed visible control characters issue on Windows.

v4.4.1
Included fix for the progressbar command

v4.4.0
Greatly improved Windows (colour) support and fixed several Windows bugs

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Jan 4 22:42:52 2024 UTC (2 years, 10 months ago) by adam
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -12 lines
py-progressbar2: updated to 4.3.2

v4.3.2
disabling run-command until it is properly finished

v4.3.1
fixed typeerror on Windows
excluded docs from install
added readthedocs configuration file

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Dec 18 05:48:47 2023 UTC (2 years, 10 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +45 -7 lines
py-progressbar2: updated to 4.3.0

v4.3.0

Added support for multithreading, multiprocessing, colors (16, 256 and full color) and many interactive terminal features such as continuous printing for a live ETA

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Nov 16 19:42:31 2021 UTC (5 years ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +7 -7 lines
py-progressbar2: updated to 3.55.0

3.55.0:
Unknown changes

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Aug 18 20:19:20 2020 UTC (6 years, 2 months ago) by riastradh
Branches: MAIN
CVS tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3
Import progressbar2-3.51.4 from pypi as devel/py-progressbar2.

Text progress bar library for Python.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>