progressbar2 4.6.0__tar.gz → 4.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (445) hide show
  1. progressbar2-4.7.0/.github/FUNDING.yml +4 -0
  2. progressbar2-4.7.0/.github/workflows/autofix.yml +36 -0
  3. {progressbar2-4.6.0 → progressbar2-4.7.0}/.github/workflows/codeql.yml +2 -2
  4. {progressbar2-4.6.0 → progressbar2-4.7.0}/.github/workflows/docs.yml +1 -1
  5. {progressbar2-4.6.0 → progressbar2-4.7.0}/.github/workflows/main.yml +25 -1
  6. progressbar2-4.7.0/.github/workflows/release.yml +109 -0
  7. {progressbar2-4.6.0 → progressbar2-4.7.0}/.gitignore +8 -0
  8. {progressbar2-4.6.0 → progressbar2-4.7.0}/.pre-commit-config.yaml +2 -0
  9. progressbar2-4.7.0/CHANGES.rst +106 -0
  10. {progressbar2-4.6.0 → progressbar2-4.7.0}/CONTRIBUTING.rst +23 -4
  11. {progressbar2-4.6.0 → progressbar2-4.7.0}/MANIFEST.in +1 -1
  12. progressbar2-4.7.0/PKG-INFO +512 -0
  13. progressbar2-4.7.0/README.md +420 -0
  14. {progressbar2-4.6.0 → progressbar2-4.7.0}/benchmarks/bench.py +33 -1
  15. progressbar2-4.7.0/benchmarks/chart.png +0 -0
  16. {progressbar2-4.6.0 → progressbar2-4.7.0}/benchmarks/report.md +24 -21
  17. {progressbar2-4.6.0 → progressbar2-4.7.0}/benchmarks/report.py +21 -19
  18. {progressbar2-4.6.0 → progressbar2-4.7.0}/benchmarks/requirements.txt +1 -0
  19. progressbar2-4.7.0/benchmarks/results.json +117 -0
  20. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_ext/demo.py +23 -2
  21. progressbar2-4.7.0/docs/_ext/page_assets.py +38 -0
  22. progressbar2-4.7.0/docs/_static/brand.css +41 -0
  23. progressbar2-4.7.0/docs/_static/demos/homepage-quickstart.svg +41 -0
  24. progressbar2-4.7.0/docs/_static/demos/howto-colors.svg +41 -0
  25. progressbar2-4.7.0/docs/_static/demos/howto-custom-widget.svg +41 -0
  26. progressbar2-4.7.0/docs/_static/demos/howto-dynamic-messages.svg +41 -0
  27. progressbar2-4.7.0/docs/_static/demos/howto-file-transfer.svg +41 -0
  28. progressbar2-4.7.0/docs/_static/demos/howto-iterable-wrapper.svg +41 -0
  29. progressbar2-4.7.0/docs/_static/demos/howto-logging-integration.svg +41 -0
  30. progressbar2-4.7.0/docs/_static/demos/howto-multibar-line-offset.svg +41 -0
  31. progressbar2-4.7.0/docs/_static/demos/howto-multibar.svg +41 -0
  32. progressbar2-4.7.0/docs/_static/demos/howto-non-tty.svg +41 -0
  33. progressbar2-4.7.0/docs/_static/demos/howto-parallel-execution.svg +41 -0
  34. progressbar2-4.7.0/docs/_static/demos/howto-prefix-suffix.svg +41 -0
  35. progressbar2-4.7.0/docs/_static/demos/howto-redirect-stdout.svg +41 -0
  36. progressbar2-4.7.0/docs/_static/demos/howto-tqdm-style.svg +41 -0
  37. progressbar2-4.7.0/docs/_static/demos/howto-unknown-length.svg +41 -0
  38. progressbar2-4.7.0/docs/_static/demos/readme-cli.svg +41 -0
  39. progressbar2-4.7.0/docs/_static/demos/readme-colors.svg +41 -0
  40. progressbar2-4.7.0/docs/_static/demos/readme-hero.svg +41 -0
  41. progressbar2-4.7.0/docs/_static/demos/readme-multibar.svg +41 -0
  42. progressbar2-4.7.0/docs/_static/demos/readme-parallel.svg +41 -0
  43. progressbar2-4.7.0/docs/_static/demos/readme-race.svg +41 -0
  44. progressbar2-4.7.0/docs/_static/demos/readme-unknown-length.svg +41 -0
  45. progressbar2-4.7.0/docs/_static/demos/tutorial-step1.svg +41 -0
  46. progressbar2-4.7.0/docs/_static/demos/tutorial-step2.svg +41 -0
  47. progressbar2-4.7.0/docs/_static/demos/tutorial-step3.svg +41 -0
  48. progressbar2-4.7.0/docs/_static/demos/tutorial-step4.svg +41 -0
  49. progressbar2-4.7.0/docs/_static/demos/tutorial-step5.svg +41 -0
  50. progressbar2-4.7.0/docs/_static/demos/widgets-absolute-eta.svg +41 -0
  51. progressbar2-4.7.0/docs/_static/demos/widgets-adaptive-eta.svg +41 -0
  52. progressbar2-4.7.0/docs/_static/demos/widgets-adaptive-transfer-speed.svg +41 -0
  53. progressbar2-4.7.0/docs/_static/demos/widgets-animated-marker.svg +41 -0
  54. progressbar2-4.7.0/docs/_static/demos/widgets-bar.svg +41 -0
  55. progressbar2-4.7.0/docs/_static/demos/widgets-bouncing-bar.svg +41 -0
  56. progressbar2-4.7.0/docs/_static/demos/widgets-counter.svg +41 -0
  57. progressbar2-4.7.0/docs/_static/demos/widgets-current-time.svg +41 -0
  58. progressbar2-4.7.0/docs/_static/demos/widgets-data-size.svg +41 -0
  59. progressbar2-4.7.0/docs/_static/demos/widgets-dynamic-message.svg +41 -0
  60. progressbar2-4.7.0/docs/_static/demos/widgets-eta.svg +41 -0
  61. progressbar2-4.7.0/docs/_static/demos/widgets-file-transfer-speed.svg +41 -0
  62. progressbar2-4.7.0/docs/_static/demos/widgets-format-custom-text.svg +41 -0
  63. progressbar2-4.7.0/docs/_static/demos/widgets-format-label-bar.svg +41 -0
  64. progressbar2-4.7.0/docs/_static/demos/widgets-format-label.svg +41 -0
  65. progressbar2-4.7.0/docs/_static/demos/widgets-granular-bar.svg +41 -0
  66. progressbar2-4.7.0/docs/_static/demos/widgets-job-status-bar.svg +41 -0
  67. progressbar2-4.7.0/docs/_static/demos/widgets-multi-progress-bar.svg +41 -0
  68. progressbar2-4.7.0/docs/_static/demos/widgets-multi-range-bar.svg +41 -0
  69. progressbar2-4.7.0/docs/_static/demos/widgets-percentage-label-bar.svg +41 -0
  70. progressbar2-4.7.0/docs/_static/demos/widgets-percentage.svg +41 -0
  71. progressbar2-4.7.0/docs/_static/demos/widgets-postfix.svg +41 -0
  72. progressbar2-4.7.0/docs/_static/demos/widgets-reverse-bar.svg +41 -0
  73. progressbar2-4.7.0/docs/_static/demos/widgets-rotating-marker.svg +41 -0
  74. progressbar2-4.7.0/docs/_static/demos/widgets-simple-progress.svg +41 -0
  75. progressbar2-4.7.0/docs/_static/demos/widgets-smoothing-eta.svg +41 -0
  76. progressbar2-4.7.0/docs/_static/demos/widgets-timer.svg +41 -0
  77. progressbar2-4.7.0/docs/_static/demos/widgets-unit-progress.svg +41 -0
  78. progressbar2-4.7.0/docs/_static/demos/widgets-variable.svg +41 -0
  79. progressbar2-4.7.0/docs/_static/guide-cards.css +23 -0
  80. progressbar2-4.7.0/docs/_static/home.css +124 -0
  81. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_static/livecode/livecode.css +30 -0
  82. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_static/livecode/livecode.js +103 -11
  83. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_static/livecode/worker.js +16 -3
  84. progressbar2-4.7.0/docs/_static/section-pages.css +67 -0
  85. progressbar2-4.7.0/docs/_static/showcase.js +119 -0
  86. progressbar2-4.7.0/docs/_static/vendor/LICENSE-addon-fit.txt +19 -0
  87. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_static/vendor/README.md +11 -0
  88. progressbar2-4.7.0/docs/_static/vendor/addon-fit.js +2 -0
  89. progressbar2-4.7.0/docs/_static/vendor/addon-fit.js.map +1 -0
  90. progressbar2-4.7.0/docs/_templates/page.html +50 -0
  91. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/conf.py +39 -1
  92. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/_registry.py +66 -12
  93. progressbar2-4.7.0/docs/examples/homepage/__init__.py +1 -0
  94. progressbar2-4.7.0/docs/examples/homepage/quickstart.py +14 -0
  95. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/colors.py +7 -12
  96. progressbar2-4.7.0/docs/examples/howto/custom_widget.py +48 -0
  97. progressbar2-4.7.0/docs/examples/howto/dynamic_messages.py +44 -0
  98. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/file_transfer.py +0 -2
  99. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/iterable_wrapper.py +1 -3
  100. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/logging_integration.py +0 -2
  101. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/multibar.py +0 -2
  102. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/multibar_line_offset.py +15 -5
  103. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/non_tty.py +0 -2
  104. progressbar2-4.7.0/docs/examples/howto/parallel_execution.py +57 -0
  105. progressbar2-4.7.0/docs/examples/howto/prefix_suffix.py +44 -0
  106. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/redirect_stdout.py +0 -2
  107. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/tqdm_style.py +0 -2
  108. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/unknown_length.py +0 -2
  109. progressbar2-4.7.0/docs/examples/readme/cli.py +47 -0
  110. progressbar2-4.7.0/docs/examples/readme/colors.py +68 -0
  111. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/readme/hero.py +0 -2
  112. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/readme/multibar.py +0 -2
  113. progressbar2-4.7.0/docs/examples/readme/parallel.py +49 -0
  114. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/readme/unknown_length.py +0 -2
  115. progressbar2-4.7.0/docs/examples/tutorial/step1.py +14 -0
  116. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/tutorial/step2.py +1 -3
  117. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/tutorial/step3.py +0 -2
  118. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/tutorial/step4.py +0 -2
  119. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/tutorial/step5.py +0 -2
  120. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/absolute_eta.py +0 -2
  121. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/adaptive_eta.py +0 -2
  122. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/adaptive_transfer_speed.py +0 -2
  123. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/animated_marker.py +0 -2
  124. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/bar.py +0 -2
  125. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/bouncing_bar.py +0 -2
  126. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/counter.py +0 -2
  127. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/current_time.py +0 -2
  128. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/data_size.py +0 -2
  129. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/dynamic_message.py +0 -2
  130. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/eta.py +0 -2
  131. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/file_transfer_speed.py +0 -2
  132. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/format_custom_text.py +0 -2
  133. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/format_label.py +0 -2
  134. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/format_label_bar.py +0 -2
  135. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/granular_bar.py +0 -2
  136. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/job_status_bar.py +0 -2
  137. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/multi_progress_bar.py +0 -2
  138. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/multi_range_bar.py +0 -2
  139. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/percentage.py +0 -2
  140. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/percentage_label_bar.py +0 -2
  141. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/postfix.py +0 -2
  142. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/reverse_bar.py +0 -2
  143. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/rotating_marker.py +0 -2
  144. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/simple_progress.py +0 -2
  145. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/smoothing_eta.py +0 -2
  146. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/timer.py +0 -2
  147. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/unit_progress.py +0 -2
  148. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/variable.py +0 -2
  149. progressbar2-4.7.0/docs/explanation/index.rst +74 -0
  150. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/explanation/performance-and-the-fast-path.rst +5 -0
  151. progressbar2-4.7.0/docs/howto/colors.rst +32 -0
  152. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/custom-widget.rst +6 -2
  153. progressbar2-4.7.0/docs/howto/dynamic-messages.rst +23 -0
  154. progressbar2-4.7.0/docs/howto/index.rst +259 -0
  155. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/iterable-wrapper.rst +3 -0
  156. progressbar2-4.7.0/docs/howto/parallel-execution.rst +244 -0
  157. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/prefix-suffix.rst +6 -0
  158. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/tqdm-style.rst +3 -2
  159. progressbar2-4.7.0/docs/index.rst +128 -0
  160. progressbar2-4.7.0/docs/installation.rst +99 -0
  161. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/reference/cli.rst +14 -1
  162. progressbar2-4.7.0/docs/reference/index.rst +100 -0
  163. progressbar2-4.7.0/docs/reference/parallel.rst +118 -0
  164. progressbar2-4.7.0/docs/sponsor.rst +19 -0
  165. progressbar2-4.7.0/docs/tutorial/index.rst +104 -0
  166. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/tutorial/step1.rst +3 -0
  167. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/tutorial/step2.rst +4 -0
  168. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/animated-marker.rst +6 -1
  169. {progressbar2-4.6.0 → progressbar2-4.7.0}/examples.py +1 -3
  170. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/__about__.py +2 -2
  171. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/__init__.py +55 -1
  172. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/__main__.py +288 -87
  173. progressbar2-4.7.0/progressbar/_identity.py +79 -0
  174. progressbar2-4.7.0/progressbar/_parallel/__init__.py +57 -0
  175. progressbar2-4.7.0/progressbar/_parallel/_async.py +452 -0
  176. progressbar2-4.7.0/progressbar/_parallel/_common.py +212 -0
  177. progressbar2-4.7.0/progressbar/_parallel/_decorator.py +138 -0
  178. progressbar2-4.7.0/progressbar/_parallel/_display.py +370 -0
  179. progressbar2-4.7.0/progressbar/_parallel/_shell.py +210 -0
  180. progressbar2-4.7.0/progressbar/_parallel/_sync.py +825 -0
  181. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/bar.py +188 -30
  182. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/env.py +6 -5
  183. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/fast.py +29 -1
  184. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/multi.py +185 -50
  185. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/terminal/base.py +363 -36
  186. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/terminal/colors.py +11 -1
  187. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/utils.py +529 -105
  188. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/widgets.py +228 -47
  189. progressbar2-4.7.0/progressbar2.egg-info/PKG-INFO +512 -0
  190. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar2.egg-info/SOURCES.txt +60 -1
  191. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar2.egg-info/entry_points.txt +1 -0
  192. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar2.egg-info/requires.txt +5 -1
  193. {progressbar2-4.6.0 → progressbar2-4.7.0}/pyproject.toml +12 -2
  194. {progressbar2-4.6.0 → progressbar2-4.7.0}/pytest.ini +7 -0
  195. {progressbar2-4.6.0 → progressbar2-4.7.0}/ruff.toml +5 -2
  196. {progressbar2-4.6.0 → progressbar2-4.7.0}/scripts/build_docs_wheels.py +12 -1
  197. {progressbar2-4.6.0 → progressbar2-4.7.0}/scripts/render_demos.py +90 -27
  198. progressbar2-4.7.0/scripts/render_race.py +193 -0
  199. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/api_surface_snapshot.json +22 -7
  200. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/console/test_console.py +63 -6
  201. progressbar2-4.7.0/tests/console/test_example_colours.py +105 -0
  202. progressbar2-4.7.0/tests/console/test_homepage.py +350 -0
  203. progressbar2-4.7.0/tests/console/test_showcase_assets.py +40 -0
  204. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_color.py +73 -2
  205. progressbar2-4.7.0/tests/test_color_fast_path.py +422 -0
  206. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_data_transfer_bar.py +20 -0
  207. progressbar2-4.7.0/tests/test_demo_animations.py +40 -0
  208. progressbar2-4.7.0/tests/test_deprecation_warnings.py +95 -0
  209. progressbar2-4.7.0/tests/test_docs_wheel_urls.py +27 -0
  210. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_env_detection.py +34 -0
  211. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_fast_default.py +126 -0
  212. progressbar2-4.7.0/tests/test_format_security.py +451 -0
  213. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_init_exports.py +28 -9
  214. progressbar2-4.7.0/tests/test_multibar.py +1213 -0
  215. progressbar2-4.7.0/tests/test_parallel_aliases.py +110 -0
  216. progressbar2-4.7.0/tests/test_parallel_async.py +402 -0
  217. progressbar2-4.7.0/tests/test_parallel_common.py +156 -0
  218. progressbar2-4.7.0/tests/test_parallel_decorator.py +86 -0
  219. progressbar2-4.7.0/tests/test_parallel_display.py +194 -0
  220. progressbar2-4.7.0/tests/test_parallel_display_security.py +78 -0
  221. progressbar2-4.7.0/tests/test_parallel_errors.py +126 -0
  222. progressbar2-4.7.0/tests/test_parallel_imap.py +129 -0
  223. progressbar2-4.7.0/tests/test_parallel_map.py +157 -0
  224. progressbar2-4.7.0/tests/test_parallel_pool.py +113 -0
  225. progressbar2-4.7.0/tests/test_parallel_process.py +229 -0
  226. progressbar2-4.7.0/tests/test_parallel_shell.py +168 -0
  227. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_perf_budget.py +72 -0
  228. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_progressbar.py +149 -35
  229. progressbar2-4.7.0/tests/test_progressbar_command.py +704 -0
  230. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_readme_demos.py +269 -50
  231. progressbar2-4.7.0/tests/test_render_race.py +118 -0
  232. progressbar2-4.7.0/tests/test_stream_security.py +1468 -0
  233. progressbar2-4.7.0/tests/test_widget_default_colours.py +152 -0
  234. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_widgets.py +3 -2
  235. {progressbar2-4.6.0 → progressbar2-4.7.0}/tox.ini +35 -4
  236. {progressbar2-4.6.0 → progressbar2-4.7.0}/uv.lock +21 -11
  237. progressbar2-4.6.0/.github/FUNDING.yml +0 -1
  238. progressbar2-4.6.0/CHANGES.rst +0 -11
  239. progressbar2-4.6.0/PKG-INFO +0 -272
  240. progressbar2-4.6.0/README.rst +0 -185
  241. progressbar2-4.6.0/benchmarks/chart.png +0 -0
  242. progressbar2-4.6.0/benchmarks/results.json +0 -107
  243. progressbar2-4.6.0/docs/_static/demos/howto-colors.svg +0 -60
  244. progressbar2-4.6.0/docs/_static/demos/howto-custom-widget.svg +0 -60
  245. progressbar2-4.6.0/docs/_static/demos/howto-dynamic-messages.svg +0 -60
  246. progressbar2-4.6.0/docs/_static/demos/howto-file-transfer.svg +0 -60
  247. progressbar2-4.6.0/docs/_static/demos/howto-iterable-wrapper.svg +0 -60
  248. progressbar2-4.6.0/docs/_static/demos/howto-logging-integration.svg +0 -60
  249. progressbar2-4.6.0/docs/_static/demos/howto-multibar-line-offset.svg +0 -60
  250. progressbar2-4.6.0/docs/_static/demos/howto-multibar.svg +0 -60
  251. progressbar2-4.6.0/docs/_static/demos/howto-non-tty.svg +0 -60
  252. progressbar2-4.6.0/docs/_static/demos/howto-prefix-suffix.svg +0 -60
  253. progressbar2-4.6.0/docs/_static/demos/howto-redirect-stdout.svg +0 -60
  254. progressbar2-4.6.0/docs/_static/demos/howto-tqdm-style.svg +0 -60
  255. progressbar2-4.6.0/docs/_static/demos/howto-unknown-length.svg +0 -60
  256. progressbar2-4.6.0/docs/_static/demos/readme-hero.svg +0 -60
  257. progressbar2-4.6.0/docs/_static/demos/readme-multibar.svg +0 -60
  258. progressbar2-4.6.0/docs/_static/demos/readme-unknown-length.svg +0 -60
  259. progressbar2-4.6.0/docs/_static/demos/tutorial-step1.svg +0 -60
  260. progressbar2-4.6.0/docs/_static/demos/tutorial-step2.svg +0 -60
  261. progressbar2-4.6.0/docs/_static/demos/tutorial-step3.svg +0 -60
  262. progressbar2-4.6.0/docs/_static/demos/tutorial-step4.svg +0 -60
  263. progressbar2-4.6.0/docs/_static/demos/tutorial-step5.svg +0 -60
  264. progressbar2-4.6.0/docs/_static/demos/widgets-absolute-eta.svg +0 -60
  265. progressbar2-4.6.0/docs/_static/demos/widgets-adaptive-eta.svg +0 -60
  266. progressbar2-4.6.0/docs/_static/demos/widgets-adaptive-transfer-speed.svg +0 -60
  267. progressbar2-4.6.0/docs/_static/demos/widgets-animated-marker.svg +0 -60
  268. progressbar2-4.6.0/docs/_static/demos/widgets-bar.svg +0 -60
  269. progressbar2-4.6.0/docs/_static/demos/widgets-bouncing-bar.svg +0 -60
  270. progressbar2-4.6.0/docs/_static/demos/widgets-counter.svg +0 -60
  271. progressbar2-4.6.0/docs/_static/demos/widgets-current-time.svg +0 -60
  272. progressbar2-4.6.0/docs/_static/demos/widgets-data-size.svg +0 -60
  273. progressbar2-4.6.0/docs/_static/demos/widgets-dynamic-message.svg +0 -60
  274. progressbar2-4.6.0/docs/_static/demos/widgets-eta.svg +0 -60
  275. progressbar2-4.6.0/docs/_static/demos/widgets-file-transfer-speed.svg +0 -60
  276. progressbar2-4.6.0/docs/_static/demos/widgets-format-custom-text.svg +0 -60
  277. progressbar2-4.6.0/docs/_static/demos/widgets-format-label-bar.svg +0 -60
  278. progressbar2-4.6.0/docs/_static/demos/widgets-format-label.svg +0 -60
  279. progressbar2-4.6.0/docs/_static/demos/widgets-granular-bar.svg +0 -60
  280. progressbar2-4.6.0/docs/_static/demos/widgets-job-status-bar.svg +0 -60
  281. progressbar2-4.6.0/docs/_static/demos/widgets-multi-progress-bar.svg +0 -60
  282. progressbar2-4.6.0/docs/_static/demos/widgets-multi-range-bar.svg +0 -60
  283. progressbar2-4.6.0/docs/_static/demos/widgets-percentage-label-bar.svg +0 -60
  284. progressbar2-4.6.0/docs/_static/demos/widgets-percentage.svg +0 -60
  285. progressbar2-4.6.0/docs/_static/demos/widgets-postfix.svg +0 -60
  286. progressbar2-4.6.0/docs/_static/demos/widgets-reverse-bar.svg +0 -60
  287. progressbar2-4.6.0/docs/_static/demos/widgets-rotating-marker.svg +0 -60
  288. progressbar2-4.6.0/docs/_static/demos/widgets-simple-progress.svg +0 -60
  289. progressbar2-4.6.0/docs/_static/demos/widgets-smoothing-eta.svg +0 -60
  290. progressbar2-4.6.0/docs/_static/demos/widgets-timer.svg +0 -60
  291. progressbar2-4.6.0/docs/_static/demos/widgets-unit-progress.svg +0 -60
  292. progressbar2-4.6.0/docs/_static/demos/widgets-variable.svg +0 -60
  293. progressbar2-4.6.0/docs/examples/howto/custom_widget.py +0 -49
  294. progressbar2-4.6.0/docs/examples/howto/dynamic_messages.py +0 -39
  295. progressbar2-4.6.0/docs/examples/howto/prefix_suffix.py +0 -32
  296. progressbar2-4.6.0/docs/examples/tutorial/step1.py +0 -21
  297. progressbar2-4.6.0/docs/explanation/index.rst +0 -13
  298. progressbar2-4.6.0/docs/howto/colors.rst +0 -27
  299. progressbar2-4.6.0/docs/howto/dynamic-messages.rst +0 -20
  300. progressbar2-4.6.0/docs/howto/index.rst +0 -23
  301. progressbar2-4.6.0/docs/index.rst +0 -54
  302. progressbar2-4.6.0/docs/installation.rst +0 -32
  303. progressbar2-4.6.0/docs/reference/index.rst +0 -13
  304. progressbar2-4.6.0/docs/tutorial/index.rst +0 -15
  305. progressbar2-4.6.0/progressbar2.egg-info/PKG-INFO +0 -272
  306. progressbar2-4.6.0/tests/test_multibar.py +0 -579
  307. progressbar2-4.6.0/tests/test_progressbar_command.py +0 -290
  308. {progressbar2-4.6.0 → progressbar2-4.7.0}/.github/ISSUE_TEMPLATE.md +0 -0
  309. {progressbar2-4.6.0 → progressbar2-4.7.0}/.github/ci-reporter.yml +0 -0
  310. {progressbar2-4.6.0 → progressbar2-4.7.0}/.github/workflows/stale.yml +0 -0
  311. {progressbar2-4.6.0 → progressbar2-4.7.0}/.npmrc +0 -0
  312. {progressbar2-4.6.0 → progressbar2-4.7.0}/.readthedocs.yaml +0 -0
  313. {progressbar2-4.6.0 → progressbar2-4.7.0}/AGENTS.md +0 -0
  314. {progressbar2-4.6.0 → progressbar2-4.7.0}/LICENSE +0 -0
  315. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/.gitignore +0 -0
  316. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/Makefile +0 -0
  317. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_ext/__init__.py +0 -0
  318. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_static/vendor/LICENSE-xterm.txt +0 -0
  319. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_static/vendor/xterm.css +0 -0
  320. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/_static/vendor/xterm.js +0 -0
  321. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/contributing.rst +0 -0
  322. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/__init__.py +0 -0
  323. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/_loader.py +0 -0
  324. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/howto/__init__.py +0 -0
  325. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/readme/__init__.py +0 -0
  326. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/tutorial/__init__.py +0 -0
  327. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples/widgets/__init__.py +0 -0
  328. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/examples.rst +0 -0
  329. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/explanation/backwards-compatibility.rst +0 -0
  330. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/explanation/rendering-and-the-update-gate.rst +0 -0
  331. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/explanation/terminal-detection.rst +0 -0
  332. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/history.rst +0 -0
  333. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/file-transfer.rst +0 -0
  334. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/logging-integration.rst +0 -0
  335. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/multibar-line-offset.rst +0 -0
  336. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/multibar.rst +0 -0
  337. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/non-tty.rst +0 -0
  338. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/redirect-stdout.rst +0 -0
  339. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/howto/unknown-length.rst +0 -0
  340. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/major-version-backlog.md +0 -0
  341. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/make.bat +0 -0
  342. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.algorithms.rst +0 -0
  343. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.bar.rst +0 -0
  344. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.base.rst +0 -0
  345. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.env.rst +0 -0
  346. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.fast.rst +0 -0
  347. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.multi.rst +0 -0
  348. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.rst +0 -0
  349. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.shortcuts.rst +0 -0
  350. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.terminal.base.rst +0 -0
  351. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.terminal.colors.rst +0 -0
  352. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.terminal.rst +0 -0
  353. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.terminal.stream.rst +0 -0
  354. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.utils.rst +0 -0
  355. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/progressbar.widgets.rst +0 -0
  356. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/reference/multibar.rst +0 -0
  357. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/reference/progressbar.rst +0 -0
  358. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/requirements.txt +0 -0
  359. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/tutorial/step3.rst +0 -0
  360. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/tutorial/step4.rst +0 -0
  361. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/tutorial/step5.rst +0 -0
  362. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/usage.rst +0 -0
  363. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/absolute-eta.rst +0 -0
  364. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/adaptive-eta.rst +0 -0
  365. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/adaptive-transfer-speed.rst +0 -0
  366. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/bar.rst +0 -0
  367. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/bouncing-bar.rst +0 -0
  368. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/counter.rst +0 -0
  369. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/current-time.rst +0 -0
  370. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/data-size.rst +0 -0
  371. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/dynamic-message.rst +0 -0
  372. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/eta.rst +0 -0
  373. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/file-transfer-speed.rst +0 -0
  374. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/format-custom-text.rst +0 -0
  375. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/format-label-bar.rst +0 -0
  376. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/format-label.rst +0 -0
  377. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/granular-bar.rst +0 -0
  378. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/index.rst +0 -0
  379. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/job-status-bar.rst +0 -0
  380. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/multi-progress-bar.rst +0 -0
  381. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/multi-range-bar.rst +0 -0
  382. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/percentage-label-bar.rst +0 -0
  383. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/percentage.rst +0 -0
  384. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/postfix.rst +0 -0
  385. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/reverse-bar.rst +0 -0
  386. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/rotating-marker.rst +0 -0
  387. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/simple-progress.rst +0 -0
  388. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/smoothing-eta.rst +0 -0
  389. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/timer.rst +0 -0
  390. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/unit-progress.rst +0 -0
  391. {progressbar2-4.6.0 → progressbar2-4.7.0}/docs/widgets/variable.rst +0 -0
  392. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/algorithms.py +0 -0
  393. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/base.py +0 -0
  394. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/py.typed +0 -0
  395. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/shortcuts.py +0 -0
  396. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/terminal/__init__.py +0 -0
  397. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/terminal/os_specific/__init__.py +0 -0
  398. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/terminal/os_specific/posix.py +0 -0
  399. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/terminal/os_specific/windows.py +0 -0
  400. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar/terminal/stream.py +0 -0
  401. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar2.egg-info/dependency_links.txt +0 -0
  402. {progressbar2-4.6.0 → progressbar2-4.7.0}/progressbar2.egg-info/top_level.txt +0 -0
  403. {progressbar2-4.6.0 → progressbar2-4.7.0}/scripts/__init__.py +0 -0
  404. {progressbar2-4.6.0 → progressbar2-4.7.0}/setup.cfg +0 -0
  405. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/conftest.py +0 -0
  406. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/console/__init__.py +0 -0
  407. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/original_examples.py +0 -0
  408. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/requirements.txt +0 -0
  409. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_algorithms.py +0 -0
  410. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_api_surface.py +0 -0
  411. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_backwards_compatibility.py +0 -0
  412. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_custom_widgets.py +0 -0
  413. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_data.py +0 -0
  414. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_dill_pickle.py +0 -0
  415. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_docs_examples.py +0 -0
  416. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_empty.py +0 -0
  417. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_end.py +0 -0
  418. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_failure.py +0 -0
  419. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_fastpath.py +0 -0
  420. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_flush.py +0 -0
  421. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_iterators.py +0 -0
  422. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_job_status.py +0 -0
  423. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_large_values.py +0 -0
  424. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_misc.py +0 -0
  425. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_monitor_progress.py +0 -0
  426. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_native_accelerator.py +0 -0
  427. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_needs_update.py +0 -0
  428. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_os_specific.py +0 -0
  429. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_os_specific_posix.py +0 -0
  430. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_samples.py +0 -0
  431. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_speed.py +0 -0
  432. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_stream.py +0 -0
  433. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_subclass_compat.py +0 -0
  434. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_terminal.py +0 -0
  435. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_timed.py +0 -0
  436. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_timer.py +0 -0
  437. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_unicode.py +0 -0
  438. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_unknown_length.py +0 -0
  439. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_update_guard.py +0 -0
  440. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_utils.py +0 -0
  441. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_windows.py +0 -0
  442. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_with.py +0 -0
  443. {progressbar2-4.6.0 → progressbar2-4.7.0}/tests/test_wrappingio.py +0 -0
  444. {progressbar2-4.6.0 → progressbar2-4.7.0}/tools/README.md +0 -0
  445. {progressbar2-4.6.0 → progressbar2-4.7.0}/tools/generate_colors.py +0 -0
@@ -0,0 +1,4 @@
1
+ github: wolph
2
+ ko_fi: wolph_gh
3
+ thanks_dev: u/gh/wolph
4
+ tidelift: pypi/progressbar2
@@ -0,0 +1,36 @@
1
+ # Ruff rewrites quote styles and capitalises docstrings without any help
2
+ # from a person, so a contributor should never have to. This hands those
3
+ # fixes to the autofix.ci app, which commits them to the pull request
4
+ # branch, forks included. The existing lint gate still reports any
5
+ # findings that ruff cannot fix.
6
+ #
7
+ # The filename and the workflow name are both fixed by autofix.ci, which
8
+ # uses them to identify the workflow it trusts. Renaming either one stops
9
+ # the app from accepting the patch.
10
+ name: autofix.ci # needed to securely identify the workflow
11
+
12
+ on:
13
+ pull_request:
14
+ push:
15
+ branches: [develop, master]
16
+
17
+ permissions:
18
+ contents: read
19
+
20
+ concurrency:
21
+ group: ${{ github.workflow }}-${{ github.ref }}
22
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
23
+
24
+ jobs:
25
+ autofix:
26
+ runs-on: ubuntu-latest
27
+ timeout-minutes: 10
28
+ steps:
29
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
30
+ with:
31
+ persist-credentials: false
32
+ - uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
33
+ with:
34
+ python-version: '3.13'
35
+ - run: uvx --with tox-uv tox -e ruff-fix
36
+ - uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1.3.4
@@ -2,9 +2,9 @@ name: "CodeQL"
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ "develop" ]
5
+ branches: [ "master", "develop" ]
6
6
  pull_request:
7
- branches: [ "develop" ]
7
+ branches: [ "master", "develop" ]
8
8
  schedule:
9
9
  - cron: "24 21 * * 1"
10
10
 
@@ -2,7 +2,7 @@ name: docs console
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [develop]
5
+ branches: [master, develop]
6
6
  pull_request:
7
7
  workflow_dispatch:
8
8
 
@@ -2,7 +2,7 @@ name: tox
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [develop]
5
+ branches: [master, develop]
6
6
  pull_request:
7
7
  workflow_dispatch:
8
8
 
@@ -36,6 +36,12 @@ jobs:
36
36
  name: tox (${{ matrix.tox-env }})
37
37
  runs-on: ubuntu-latest
38
38
  timeout-minutes: 10
39
+ # Job-level continue-on-error, not only step-level: a job that hits
40
+ # timeout-minutes is cancelled rather than failed, which a step-level
41
+ # continue-on-error cannot absorb -- an experimental env (e.g.
42
+ # docs-linkcheck waiting on slow external servers) would still mark
43
+ # the whole run cancelled.
44
+ continue-on-error: ${{ matrix.experimental || false }}
39
45
  strategy:
40
46
  fail-fast: false
41
47
  matrix:
@@ -66,6 +72,8 @@ jobs:
66
72
  - python-version: '3.14'
67
73
  tox-env: docs-linkcheck
68
74
  experimental: true
75
+ - python-version: '3.14'
76
+ tox-env: readme
69
77
  - python-version: '3.14'
70
78
  tox-env: ruff
71
79
  - python-version: '3.14'
@@ -81,12 +89,28 @@ jobs:
81
89
  - name: Install dependencies
82
90
  run: |
83
91
  python -m pip install --upgrade pip tox
92
+ - name: Apply Ruff fixes to pull requests
93
+ if: github.event_name == 'pull_request' && matrix.tox-env == 'ruff'
94
+ run: tox -e ruff-fix
84
95
  - name: Test with tox
96
+ env:
97
+ RUFF_OUTPUT_FORMAT: >-
98
+ ${{ github.event_name == 'pull_request' && 'github' || 'full' }}
85
99
  # Step-level continue-on-error keeps the job green for
86
100
  # experimental (pre-release Python) environments while still
87
101
  # showing the failing step in the logs
88
102
  continue-on-error: ${{ matrix.experimental || false }}
89
103
  run: tox -e ${{ matrix.tox-env }}
104
+ - name: Export coverage
105
+ if: matrix.tox-env == 'py313'
106
+ run: .tox/py313/bin/python -m coverage lcov -o coverage.lcov
107
+ - name: Upload coverage to Coveralls
108
+ if: matrix.tox-env == 'py313' && github.event_name != 'pull_request' && startsWith(github.ref, 'refs/heads/')
109
+ uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329 # v2.3.8
110
+ with:
111
+ file: coverage.lcov
112
+ format: lcov
113
+ fail-on-error: true
90
114
 
91
115
  windows:
92
116
  name: tox (windows / py312)
@@ -0,0 +1,109 @@
1
+ name: release
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+ inputs:
8
+ ref:
9
+ description: 'Git tag to build and publish (e.g. v4.6.0)'
10
+ required: true
11
+ type: string
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ jobs:
17
+ build:
18
+ name: Build distributions
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@v6
22
+ with:
23
+ ref: ${{ inputs.ref || github.ref }}
24
+ - name: Verify the ref is a release tag matching __version__
25
+ env:
26
+ EVENT_NAME: ${{ github.event_name }}
27
+ EVENT_REF: ${{ github.ref }}
28
+ INPUT_REF: ${{ inputs.ref }}
29
+ run: |
30
+ set -euo pipefail
31
+ if [ "$EVENT_NAME" = "workflow_dispatch" ]; then
32
+ ref="$INPUT_REF"
33
+ else
34
+ ref="$EVENT_REF"
35
+ fi
36
+ case "$ref" in
37
+ refs/tags/v*) tag="${ref#refs/tags/}" ;;
38
+ v*)
39
+ if [ "$EVENT_NAME" != "workflow_dispatch" ]; then
40
+ echo "::error::ref '$ref' is not a tag ref"
41
+ exit 1
42
+ fi
43
+ tag="$ref"
44
+ ;;
45
+ *)
46
+ echo "::error::ref '$ref' is not a v* release tag"
47
+ exit 1
48
+ ;;
49
+ esac
50
+ if ! [[ "$tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+[0-9A-Za-z.+-]*$ ]]; then
51
+ echo "::error::tag '$tag' does not look like vX.Y.Z"
52
+ exit 1
53
+ fi
54
+ version="$(sed -n -E "s/^__version__(: *str)? = ['\"]([^'\"]*)['\"].*/\2/p" progressbar/__about__.py)"
55
+ if [ -z "$version" ]; then
56
+ echo "::error::could not read __version__ from progressbar/__about__.py"
57
+ exit 1
58
+ fi
59
+ if [ "$tag" != "v$version" ]; then
60
+ echo "::error::tag '$tag' does not match __version__ '$version'"
61
+ exit 1
62
+ fi
63
+ tag_commit="$(git rev-parse --verify --quiet "refs/tags/$tag^{commit}")" || {
64
+ echo "::error::tag '$tag' is not present in the checkout"
65
+ exit 1
66
+ }
67
+ if [ "$tag_commit" != "$(git rev-parse HEAD)" ]; then
68
+ echo "::error::checked-out commit is not the commit of tag '$tag'"
69
+ exit 1
70
+ fi
71
+ echo "Releasing $tag ($tag_commit)"
72
+ - name: Install uv
73
+ uses: astral-sh/setup-uv@v7
74
+ - name: Build sdist and wheel
75
+ run: uv build --no-sources
76
+ - name: Verify distribution contents
77
+ run: |
78
+ set -euo pipefail
79
+ unpacked="$(unzip -Z1 dist/*.whl | cut -d/ -f1 | sort -u)"
80
+ echo "$unpacked"
81
+ test "$(echo "$unpacked" | grep -cvE '^progressbar$|^progressbar2-.*\.dist-info$')" -eq 0
82
+ sdist="$(tar tzf dist/*.tar.gz)"
83
+ echo "$sdist"
84
+ stray_pattern='\.sync-conflict-|\.(orig|rej|bak)$'
85
+ if { unzip -Z1 dist/*.whl; echo "$sdist"; } | grep -E "$stray_pattern"; then
86
+ echo "::error::distribution contains stray conflict or backup files"
87
+ exit 1
88
+ fi
89
+ - uses: actions/upload-artifact@v6
90
+ with:
91
+ name: dist
92
+ path: dist/
93
+
94
+ publish:
95
+ name: Publish to PyPI
96
+ needs: build
97
+ runs-on: ubuntu-latest
98
+ environment:
99
+ name: pypi
100
+ url: https://pypi.org/project/progressbar2/
101
+ permissions:
102
+ id-token: write
103
+ steps:
104
+ - uses: actions/download-artifact@v7
105
+ with:
106
+ name: dist
107
+ path: dist/
108
+ - name: Publish via Trusted Publishing
109
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -48,3 +48,11 @@ docs/_build/
48
48
 
49
49
  # Built at docs build time for the in-browser console
50
50
  docs/_static/wheels/
51
+
52
+ # Local secrets and environments
53
+ .env
54
+ .env.*
55
+ .venv/
56
+ *.pem
57
+ *.key
58
+ .pypirc
@@ -5,6 +5,8 @@ repos:
5
5
  rev: v6.0.0
6
6
  hooks:
7
7
  - id: end-of-file-fixer
8
+ # Preserve the upstream bytes copied by the vendor update command.
9
+ exclude: '^docs/_static/vendor/xterm\.js$'
8
10
  - id: trailing-whitespace
9
11
  - id: check-yaml
10
12
  - id: check-added-large-files
@@ -0,0 +1,106 @@
1
+ =========
2
+ Changelog
3
+ =========
4
+
5
+ 4.7.0 - 2026-11-05
6
+ ------------------
7
+
8
+ Widgets are coloured by default: a bar on a colour terminal shows the
9
+ default palette without ``enable_colors=True``, spinners cycle through
10
+ colours, and the ``Bar`` fill colours are constructor arguments (``fg``,
11
+ ``bg``) instead of the ``Bar.fg`` and ``Bar.bg`` class attributes. A
12
+ widget called directly returns the escape codes, and
13
+ ``progressbar.utils.no_color`` strips them. Output to a file or pipe is
14
+ unchanged.
15
+
16
+ A parallel execution API: ``progressbar.map``, ``imap``,
17
+ ``imap_unordered``, ``starmap``, ``thread_map``, ``process_map``,
18
+ ``as_completed``, the asyncio variants ``amap``, ``aimap``,
19
+ ``aimap_unordered`` and ``gather``, ``run`` for shell commands, and the
20
+ ``progressbar.parallel`` decorator, with ``bar='multi'`` for an overall
21
+ bar plus a bar per task (PR #327).
22
+
23
+ A forced redraw of the default widgets is 20 percent faster than in
24
+ 4.6.0 and the fast path, the iterator overhead and the import time are
25
+ at or below their 4.6.0 cost, with colours on. Rendered colour escapes
26
+ are remembered per gradient and per colour, new-style templates are
27
+ validated once per template text, and captured writes take a cheaper
28
+ lock (PR #333).
29
+
30
+ New-style format templates such as ``FormatLabel('{value.__class__}')``
31
+ or ``prefix='{value.__doc__} '`` now raise ``ValueError``: a template
32
+ walking dunder or frame attributes could reach interpreter internals.
33
+ Index access and ordinary attributes keep working, and a positional
34
+ field still raises ``IndexError`` as it did.
35
+
36
+ ``desc`` is still the ``prefix`` alias and renders as a template, as it
37
+ did in 4.6.0. A literal brace in a description has to be doubled.
38
+
39
+ The fast bar reserves the width of ``prefix``, ``desc`` and ``suffix``
40
+ before sizing the filler, so a labelled bar no longer overflows the
41
+ terminal (contributed by @rupayon123 in PR #331). Labels that are not
42
+ strings and an uncallable ``custom_len`` render as before.
43
+
44
+ The ``progressbar`` and ``bar`` commands exit with status 2 and a usage
45
+ line on an invalid option value, such as ``--size abc``, where they
46
+ printed a traceback before, and validate every argument before the
47
+ output file is opened. A pipeline whose reader goes away ends the copy
48
+ quietly with status 0.
49
+
50
+ ``PROGRESSBAR_MINIMUM_UPDATE_INTERVAL`` set to a value that is not a
51
+ non-negative finite number is logged once and ignored instead of raising
52
+ at the first ``ProgressBar()``.
53
+
54
+ Deprecation warnings for ``maxval``, ``poll`` and ``currval`` name the
55
+ caller's file and line. A warnings filter by module ``progressbar`` no
56
+ longer matches them, a filter by category or message does.
57
+
58
+ ``StreamWrapper.lock`` and ``listeners_lock`` are read-only properties
59
+ shared with the wrapped streams and reset after ``fork``. A subclass
60
+ that assigned its own lock raises ``AttributeError`` at construction.
61
+ ``update_capturing()`` calls ``flush()`` once the last capture stops, as
62
+ in 4.6.0. ``wrapped_excepthook`` is a ``bool``.
63
+
64
+
65
+ The ``progressbar`` and ``bar`` commands, and ``python -m progressbar``,
66
+ now exit with status 130 after Ctrl-C interrupts a transfer. Previously
67
+ they exited with status 0. Scripts that check the exit status can now
68
+ distinguish an interrupted transfer from a completed copy.
69
+
70
+ The ``python-utils`` dependency now requires 4.1.4 or newer, up from
71
+ 3.8.1. Older releases render a negative ``scale_1024`` power as
72
+ ``0.1 YiB`` instead of the byte count. An environment that pins
73
+ ``python-utils<4`` has to lift that pin before upgrading.
74
+
75
+ Captured output now survives a drain failure on the other stream, and
76
+ unwrapping restores the original stream even when its capture buffer is
77
+ closed. Built-in ``StringIO`` capture writes and drains remain atomic.
78
+ Caller-replaced buffers keep their method overrides, which run without
79
+ stream locks. As in 4.6.0, callers synchronise concurrent writes and drains
80
+ on those custom buffers. A capture-hook failure now retains the other
81
+ stream's exception in the primary failure's context chain.
82
+
83
+ Specialised format templates retain their escaping and result types.
84
+ Their field paths, including nested format specifications, are checked
85
+ before calling the application's formatter.
86
+
87
+ MultiBar expiry keeps a replacement registered under the same exact
88
+ ``str`` label. Assignment, update, in-place union and ordinary removal
89
+ methods share its membership guard. Lifecycle tracking uses bar identity
90
+ without calling application hash or equality methods, and the guard resets
91
+ after fork.
92
+ Custom label objects retain their hash and equality hooks and their
93
+ identity as dictionary keys. Using one for mutation or indexing switches
94
+ that MultiBar instance permanently to the 4.6.0 concurrency contract:
95
+ callers synchronise concurrent mutation and rendering, including expiry.
96
+ These hooks run without the membership guard, even for later exact
97
+ ``str`` lookups. Clearing the instance does not reset this mode. Direct
98
+ calls to ``dict`` base-class mutation methods bypass this protocol.
99
+
100
+ For the most recent changes to the Python Progressbar please look at the Git
101
+ releases or the commit log:
102
+
103
+ - https://github.com/WoLpH/python-progressbar/releases
104
+ - https://github.com/WoLpH/python-progressbar/commits/develop
105
+
106
+ Hint: the ``...`` button on a commit shows the full change message.
@@ -118,14 +118,20 @@ Ready to contribute? Here's how to set up `python-progressbar` for local develop
118
118
 
119
119
  Now you can make your changes locally.
120
120
 
121
- 5. When you're done making changes, check that your changes pass the
122
- linter and the tests, including other Python versions with tox::
121
+ 5. Before committing, format the changed Python files, then check the
122
+ whole tree and run the tests, including other Python versions with tox::
123
123
 
124
- $ uv run ruff check progressbar tests
124
+ $ uvx ruff@latest format path/to/changed.py
125
+ $ uvx ruff@latest check .
126
+ $ uvx ruff@latest format --check .
125
127
  $ uv run pytest
126
128
  $ uv run tox
127
129
 
128
- The ``uv sync`` from step 3 already installed all of these.
130
+ Stage the formatted changes before committing. A checkout-local
131
+ pre-commit gate, when installed, checks the staged snapshot with current
132
+ Ruff and the configured pre-commit hooks, including the CI-pinned Ruff
133
+ version. It leaves partially staged files untouched. Configured fixes
134
+ run only in the disposable snapshot and cause the commit to be rejected.
129
135
 
130
136
  6. Commit your changes and push your branch to GitHub with `git-flow-avh`_::
131
137
 
@@ -161,3 +167,16 @@ To run a subset of tests::
161
167
  $ uv run pytest tests/some_test.py
162
168
 
163
169
  .. _git-flow-avh: https://github.com/petervanderdoes/gitflow
170
+
171
+ Automatic formatting
172
+ --------------------
173
+
174
+ Pull requests apply Ruff fixes before the lint check. With the autofix.ci
175
+ app installed for this repository, those fixes are committed to the pull
176
+ request branch, including forks. Findings Ruff cannot fix still fail CI.
177
+ The CI lint job checks committed files on pushes. The separate autofix.ci
178
+ workflow also runs on pushes to develop and master and can commit fixes.
179
+
180
+ Apply the same fixes locally with::
181
+
182
+ uvx --with tox-uv tox -e ruff-fix
@@ -3,6 +3,6 @@ recursive-exclude *.pyo
3
3
  include CHANGES.rst
4
4
  include CONTRIBUTING.rst
5
5
  include LICENSE
6
- include README.rst
6
+ include README.md
7
7
  include examples.py
8
8
  include pytest.ini