progressbar2 4.5.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 (429) hide show
  1. progressbar2-4.7.0/.github/FUNDING.yml +4 -0
  2. progressbar2-4.5.0/ISSUE_TEMPLATE → progressbar2-4.7.0/.github/ISSUE_TEMPLATE.md +0 -1
  3. progressbar2-4.7.0/.github/workflows/autofix.yml +36 -0
  4. {progressbar2-4.5.0 → progressbar2-4.7.0}/.github/workflows/codeql.yml +8 -8
  5. progressbar2-4.7.0/.github/workflows/docs.yml +45 -0
  6. progressbar2-4.7.0/.github/workflows/main.yml +137 -0
  7. progressbar2-4.7.0/.github/workflows/release.yml +109 -0
  8. {progressbar2-4.5.0 → progressbar2-4.7.0}/.github/workflows/stale.yml +3 -1
  9. {progressbar2-4.5.0 → progressbar2-4.7.0}/.gitignore +14 -0
  10. progressbar2-4.7.0/.npmrc +3 -0
  11. progressbar2-4.7.0/.pre-commit-config.yaml +18 -0
  12. {progressbar2-4.5.0 → progressbar2-4.7.0}/.readthedocs.yaml +14 -2
  13. progressbar2-4.7.0/AGENTS.md +16 -0
  14. progressbar2-4.7.0/CHANGES.rst +106 -0
  15. progressbar2-4.7.0/CONTRIBUTING.rst +182 -0
  16. {progressbar2-4.5.0 → progressbar2-4.7.0}/LICENSE +0 -1
  17. {progressbar2-4.5.0 → progressbar2-4.7.0}/MANIFEST.in +1 -5
  18. progressbar2-4.7.0/PKG-INFO +512 -0
  19. progressbar2-4.7.0/README.md +420 -0
  20. progressbar2-4.7.0/benchmarks/bench.py +380 -0
  21. progressbar2-4.7.0/benchmarks/chart.png +0 -0
  22. progressbar2-4.7.0/benchmarks/report.md +86 -0
  23. progressbar2-4.7.0/benchmarks/report.py +404 -0
  24. progressbar2-4.7.0/benchmarks/requirements.txt +6 -0
  25. progressbar2-4.7.0/benchmarks/results.json +117 -0
  26. progressbar2-4.7.0/docs/_ext/demo.py +186 -0
  27. progressbar2-4.7.0/docs/_ext/page_assets.py +38 -0
  28. progressbar2-4.7.0/docs/_static/brand.css +41 -0
  29. progressbar2-4.7.0/docs/_static/demos/homepage-quickstart.svg +41 -0
  30. progressbar2-4.7.0/docs/_static/demos/howto-colors.svg +41 -0
  31. progressbar2-4.7.0/docs/_static/demos/howto-custom-widget.svg +41 -0
  32. progressbar2-4.7.0/docs/_static/demos/howto-dynamic-messages.svg +41 -0
  33. progressbar2-4.7.0/docs/_static/demos/howto-file-transfer.svg +41 -0
  34. progressbar2-4.7.0/docs/_static/demos/howto-iterable-wrapper.svg +41 -0
  35. progressbar2-4.7.0/docs/_static/demos/howto-logging-integration.svg +41 -0
  36. progressbar2-4.7.0/docs/_static/demos/howto-multibar-line-offset.svg +41 -0
  37. progressbar2-4.7.0/docs/_static/demos/howto-multibar.svg +41 -0
  38. progressbar2-4.7.0/docs/_static/demos/howto-non-tty.svg +41 -0
  39. progressbar2-4.7.0/docs/_static/demos/howto-parallel-execution.svg +41 -0
  40. progressbar2-4.7.0/docs/_static/demos/howto-prefix-suffix.svg +41 -0
  41. progressbar2-4.7.0/docs/_static/demos/howto-redirect-stdout.svg +41 -0
  42. progressbar2-4.7.0/docs/_static/demos/howto-tqdm-style.svg +41 -0
  43. progressbar2-4.7.0/docs/_static/demos/howto-unknown-length.svg +41 -0
  44. progressbar2-4.7.0/docs/_static/demos/readme-cli.svg +41 -0
  45. progressbar2-4.7.0/docs/_static/demos/readme-colors.svg +41 -0
  46. progressbar2-4.7.0/docs/_static/demos/readme-hero.svg +41 -0
  47. progressbar2-4.7.0/docs/_static/demos/readme-multibar.svg +41 -0
  48. progressbar2-4.7.0/docs/_static/demos/readme-parallel.svg +41 -0
  49. progressbar2-4.7.0/docs/_static/demos/readme-race.svg +41 -0
  50. progressbar2-4.7.0/docs/_static/demos/readme-unknown-length.svg +41 -0
  51. progressbar2-4.7.0/docs/_static/demos/tutorial-step1.svg +41 -0
  52. progressbar2-4.7.0/docs/_static/demos/tutorial-step2.svg +41 -0
  53. progressbar2-4.7.0/docs/_static/demos/tutorial-step3.svg +41 -0
  54. progressbar2-4.7.0/docs/_static/demos/tutorial-step4.svg +41 -0
  55. progressbar2-4.7.0/docs/_static/demos/tutorial-step5.svg +41 -0
  56. progressbar2-4.7.0/docs/_static/demos/widgets-absolute-eta.svg +41 -0
  57. progressbar2-4.7.0/docs/_static/demos/widgets-adaptive-eta.svg +41 -0
  58. progressbar2-4.7.0/docs/_static/demos/widgets-adaptive-transfer-speed.svg +41 -0
  59. progressbar2-4.7.0/docs/_static/demos/widgets-animated-marker.svg +41 -0
  60. progressbar2-4.7.0/docs/_static/demos/widgets-bar.svg +41 -0
  61. progressbar2-4.7.0/docs/_static/demos/widgets-bouncing-bar.svg +41 -0
  62. progressbar2-4.7.0/docs/_static/demos/widgets-counter.svg +41 -0
  63. progressbar2-4.7.0/docs/_static/demos/widgets-current-time.svg +41 -0
  64. progressbar2-4.7.0/docs/_static/demos/widgets-data-size.svg +41 -0
  65. progressbar2-4.7.0/docs/_static/demos/widgets-dynamic-message.svg +41 -0
  66. progressbar2-4.7.0/docs/_static/demos/widgets-eta.svg +41 -0
  67. progressbar2-4.7.0/docs/_static/demos/widgets-file-transfer-speed.svg +41 -0
  68. progressbar2-4.7.0/docs/_static/demos/widgets-format-custom-text.svg +41 -0
  69. progressbar2-4.7.0/docs/_static/demos/widgets-format-label-bar.svg +41 -0
  70. progressbar2-4.7.0/docs/_static/demos/widgets-format-label.svg +41 -0
  71. progressbar2-4.7.0/docs/_static/demos/widgets-granular-bar.svg +41 -0
  72. progressbar2-4.7.0/docs/_static/demos/widgets-job-status-bar.svg +41 -0
  73. progressbar2-4.7.0/docs/_static/demos/widgets-multi-progress-bar.svg +41 -0
  74. progressbar2-4.7.0/docs/_static/demos/widgets-multi-range-bar.svg +41 -0
  75. progressbar2-4.7.0/docs/_static/demos/widgets-percentage-label-bar.svg +41 -0
  76. progressbar2-4.7.0/docs/_static/demos/widgets-percentage.svg +41 -0
  77. progressbar2-4.7.0/docs/_static/demos/widgets-postfix.svg +41 -0
  78. progressbar2-4.7.0/docs/_static/demos/widgets-reverse-bar.svg +41 -0
  79. progressbar2-4.7.0/docs/_static/demos/widgets-rotating-marker.svg +41 -0
  80. progressbar2-4.7.0/docs/_static/demos/widgets-simple-progress.svg +41 -0
  81. progressbar2-4.7.0/docs/_static/demos/widgets-smoothing-eta.svg +41 -0
  82. progressbar2-4.7.0/docs/_static/demos/widgets-timer.svg +41 -0
  83. progressbar2-4.7.0/docs/_static/demos/widgets-unit-progress.svg +41 -0
  84. progressbar2-4.7.0/docs/_static/demos/widgets-variable.svg +41 -0
  85. progressbar2-4.7.0/docs/_static/guide-cards.css +23 -0
  86. progressbar2-4.7.0/docs/_static/home.css +124 -0
  87. progressbar2-4.7.0/docs/_static/livecode/livecode.css +105 -0
  88. progressbar2-4.7.0/docs/_static/livecode/livecode.js +293 -0
  89. progressbar2-4.7.0/docs/_static/livecode/worker.js +220 -0
  90. progressbar2-4.7.0/docs/_static/section-pages.css +67 -0
  91. progressbar2-4.7.0/docs/_static/showcase.js +119 -0
  92. progressbar2-4.7.0/docs/_static/vendor/LICENSE-addon-fit.txt +19 -0
  93. progressbar2-4.7.0/docs/_static/vendor/LICENSE-xterm.txt +21 -0
  94. progressbar2-4.7.0/docs/_static/vendor/README.md +27 -0
  95. progressbar2-4.7.0/docs/_static/vendor/addon-fit.js +2 -0
  96. progressbar2-4.7.0/docs/_static/vendor/addon-fit.js.map +1 -0
  97. progressbar2-4.7.0/docs/_static/vendor/xterm.css +218 -0
  98. progressbar2-4.7.0/docs/_static/vendor/xterm.js +2 -0
  99. progressbar2-4.7.0/docs/_templates/page.html +50 -0
  100. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/conf.py +85 -7
  101. progressbar2-4.7.0/docs/examples/__init__.py +22 -0
  102. progressbar2-4.7.0/docs/examples/_loader.py +27 -0
  103. progressbar2-4.7.0/docs/examples/_registry.py +185 -0
  104. progressbar2-4.7.0/docs/examples/homepage/__init__.py +1 -0
  105. progressbar2-4.7.0/docs/examples/homepage/quickstart.py +14 -0
  106. progressbar2-4.7.0/docs/examples/howto/__init__.py +0 -0
  107. progressbar2-4.7.0/docs/examples/howto/colors.py +47 -0
  108. progressbar2-4.7.0/docs/examples/howto/custom_widget.py +48 -0
  109. progressbar2-4.7.0/docs/examples/howto/dynamic_messages.py +44 -0
  110. progressbar2-4.7.0/docs/examples/howto/file_transfer.py +43 -0
  111. progressbar2-4.7.0/docs/examples/howto/iterable_wrapper.py +26 -0
  112. progressbar2-4.7.0/docs/examples/howto/logging_integration.py +54 -0
  113. progressbar2-4.7.0/docs/examples/howto/multibar.py +44 -0
  114. progressbar2-4.7.0/docs/examples/howto/multibar_line_offset.py +53 -0
  115. progressbar2-4.7.0/docs/examples/howto/non_tty.py +30 -0
  116. progressbar2-4.7.0/docs/examples/howto/parallel_execution.py +57 -0
  117. progressbar2-4.7.0/docs/examples/howto/prefix_suffix.py +44 -0
  118. progressbar2-4.7.0/docs/examples/howto/redirect_stdout.py +30 -0
  119. progressbar2-4.7.0/docs/examples/howto/tqdm_style.py +40 -0
  120. progressbar2-4.7.0/docs/examples/howto/unknown_length.py +32 -0
  121. progressbar2-4.7.0/docs/examples/readme/__init__.py +0 -0
  122. progressbar2-4.7.0/docs/examples/readme/cli.py +47 -0
  123. progressbar2-4.7.0/docs/examples/readme/colors.py +68 -0
  124. progressbar2-4.7.0/docs/examples/readme/hero.py +26 -0
  125. progressbar2-4.7.0/docs/examples/readme/multibar.py +33 -0
  126. progressbar2-4.7.0/docs/examples/readme/parallel.py +49 -0
  127. progressbar2-4.7.0/docs/examples/readme/unknown_length.py +20 -0
  128. progressbar2-4.7.0/docs/examples/tutorial/__init__.py +0 -0
  129. progressbar2-4.7.0/docs/examples/tutorial/step1.py +14 -0
  130. progressbar2-4.7.0/docs/examples/tutorial/step2.py +22 -0
  131. progressbar2-4.7.0/docs/examples/tutorial/step3.py +21 -0
  132. progressbar2-4.7.0/docs/examples/tutorial/step4.py +28 -0
  133. progressbar2-4.7.0/docs/examples/tutorial/step5.py +32 -0
  134. progressbar2-4.7.0/docs/examples/widgets/__init__.py +0 -0
  135. progressbar2-4.7.0/docs/examples/widgets/absolute_eta.py +34 -0
  136. progressbar2-4.7.0/docs/examples/widgets/adaptive_eta.py +37 -0
  137. progressbar2-4.7.0/docs/examples/widgets/adaptive_transfer_speed.py +39 -0
  138. progressbar2-4.7.0/docs/examples/widgets/animated_marker.py +25 -0
  139. progressbar2-4.7.0/docs/examples/widgets/bar.py +25 -0
  140. progressbar2-4.7.0/docs/examples/widgets/bouncing_bar.py +31 -0
  141. progressbar2-4.7.0/docs/examples/widgets/counter.py +25 -0
  142. progressbar2-4.7.0/docs/examples/widgets/current_time.py +29 -0
  143. progressbar2-4.7.0/docs/examples/widgets/data_size.py +26 -0
  144. progressbar2-4.7.0/docs/examples/widgets/dynamic_message.py +35 -0
  145. progressbar2-4.7.0/docs/examples/widgets/eta.py +39 -0
  146. progressbar2-4.7.0/docs/examples/widgets/file_transfer_speed.py +32 -0
  147. progressbar2-4.7.0/docs/examples/widgets/format_custom_text.py +29 -0
  148. progressbar2-4.7.0/docs/examples/widgets/format_label.py +28 -0
  149. progressbar2-4.7.0/docs/examples/widgets/format_label_bar.py +25 -0
  150. progressbar2-4.7.0/docs/examples/widgets/granular_bar.py +29 -0
  151. progressbar2-4.7.0/docs/examples/widgets/job_status_bar.py +34 -0
  152. progressbar2-4.7.0/docs/examples/widgets/multi_progress_bar.py +46 -0
  153. progressbar2-4.7.0/docs/examples/widgets/multi_range_bar.py +49 -0
  154. progressbar2-4.7.0/docs/examples/widgets/percentage.py +25 -0
  155. progressbar2-4.7.0/docs/examples/widgets/percentage_label_bar.py +25 -0
  156. progressbar2-4.7.0/docs/examples/widgets/postfix.py +38 -0
  157. progressbar2-4.7.0/docs/examples/widgets/reverse_bar.py +24 -0
  158. progressbar2-4.7.0/docs/examples/widgets/rotating_marker.py +28 -0
  159. progressbar2-4.7.0/docs/examples/widgets/simple_progress.py +24 -0
  160. progressbar2-4.7.0/docs/examples/widgets/smoothing_eta.py +38 -0
  161. progressbar2-4.7.0/docs/examples/widgets/timer.py +30 -0
  162. progressbar2-4.7.0/docs/examples/widgets/unit_progress.py +25 -0
  163. progressbar2-4.7.0/docs/examples/widgets/variable.py +37 -0
  164. progressbar2-4.7.0/docs/examples.rst +8 -0
  165. progressbar2-4.7.0/docs/explanation/backwards-compatibility.rst +87 -0
  166. progressbar2-4.7.0/docs/explanation/index.rst +74 -0
  167. progressbar2-4.7.0/docs/explanation/performance-and-the-fast-path.rst +122 -0
  168. progressbar2-4.7.0/docs/explanation/rendering-and-the-update-gate.rst +99 -0
  169. progressbar2-4.7.0/docs/explanation/terminal-detection.rst +120 -0
  170. progressbar2-4.7.0/docs/howto/colors.rst +32 -0
  171. progressbar2-4.7.0/docs/howto/custom-widget.rst +22 -0
  172. progressbar2-4.7.0/docs/howto/dynamic-messages.rst +23 -0
  173. progressbar2-4.7.0/docs/howto/file-transfer.rst +17 -0
  174. progressbar2-4.7.0/docs/howto/index.rst +259 -0
  175. progressbar2-4.7.0/docs/howto/iterable-wrapper.rst +20 -0
  176. progressbar2-4.7.0/docs/howto/logging-integration.rst +37 -0
  177. progressbar2-4.7.0/docs/howto/multibar-line-offset.rst +34 -0
  178. progressbar2-4.7.0/docs/howto/multibar.rst +32 -0
  179. progressbar2-4.7.0/docs/howto/non-tty.rst +18 -0
  180. progressbar2-4.7.0/docs/howto/parallel-execution.rst +244 -0
  181. progressbar2-4.7.0/docs/howto/prefix-suffix.rst +23 -0
  182. progressbar2-4.7.0/docs/howto/redirect-stdout.rst +16 -0
  183. progressbar2-4.7.0/docs/howto/tqdm-style.rst +26 -0
  184. progressbar2-4.7.0/docs/howto/unknown-length.rst +15 -0
  185. progressbar2-4.7.0/docs/index.rst +128 -0
  186. progressbar2-4.7.0/docs/installation.rst +99 -0
  187. progressbar2-4.7.0/docs/major-version-backlog.md +107 -0
  188. progressbar2-4.7.0/docs/progressbar.fast.rst +7 -0
  189. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.rst +3 -0
  190. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.terminal.rst +0 -8
  191. progressbar2-4.7.0/docs/reference/cli.rst +157 -0
  192. progressbar2-4.7.0/docs/reference/index.rst +100 -0
  193. progressbar2-4.7.0/docs/reference/multibar.rst +76 -0
  194. progressbar2-4.7.0/docs/reference/parallel.rst +118 -0
  195. progressbar2-4.7.0/docs/reference/progressbar.rst +118 -0
  196. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/requirements.txt +1 -0
  197. progressbar2-4.7.0/docs/sponsor.rst +19 -0
  198. progressbar2-4.7.0/docs/tutorial/index.rst +104 -0
  199. progressbar2-4.7.0/docs/tutorial/step1.rst +28 -0
  200. progressbar2-4.7.0/docs/tutorial/step2.rst +25 -0
  201. progressbar2-4.7.0/docs/tutorial/step3.rst +19 -0
  202. progressbar2-4.7.0/docs/tutorial/step4.rst +19 -0
  203. progressbar2-4.7.0/docs/tutorial/step5.rst +28 -0
  204. progressbar2-4.7.0/docs/usage.rst +11 -0
  205. progressbar2-4.7.0/docs/widgets/absolute-eta.rst +27 -0
  206. progressbar2-4.7.0/docs/widgets/adaptive-eta.rst +31 -0
  207. progressbar2-4.7.0/docs/widgets/adaptive-transfer-speed.rst +25 -0
  208. progressbar2-4.7.0/docs/widgets/animated-marker.rst +32 -0
  209. progressbar2-4.7.0/docs/widgets/bar.rst +27 -0
  210. progressbar2-4.7.0/docs/widgets/bouncing-bar.rst +27 -0
  211. progressbar2-4.7.0/docs/widgets/counter.rst +25 -0
  212. progressbar2-4.7.0/docs/widgets/current-time.rst +26 -0
  213. progressbar2-4.7.0/docs/widgets/data-size.rst +25 -0
  214. progressbar2-4.7.0/docs/widgets/dynamic-message.rst +23 -0
  215. progressbar2-4.7.0/docs/widgets/eta.rst +29 -0
  216. progressbar2-4.7.0/docs/widgets/file-transfer-speed.rst +26 -0
  217. progressbar2-4.7.0/docs/widgets/format-custom-text.rst +25 -0
  218. progressbar2-4.7.0/docs/widgets/format-label-bar.rst +26 -0
  219. progressbar2-4.7.0/docs/widgets/format-label.rst +26 -0
  220. progressbar2-4.7.0/docs/widgets/granular-bar.rst +25 -0
  221. progressbar2-4.7.0/docs/widgets/index.rst +137 -0
  222. progressbar2-4.7.0/docs/widgets/job-status-bar.rst +28 -0
  223. progressbar2-4.7.0/docs/widgets/multi-progress-bar.rst +26 -0
  224. progressbar2-4.7.0/docs/widgets/multi-range-bar.rst +30 -0
  225. progressbar2-4.7.0/docs/widgets/percentage-label-bar.rst +26 -0
  226. progressbar2-4.7.0/docs/widgets/percentage.rst +25 -0
  227. progressbar2-4.7.0/docs/widgets/postfix.rst +25 -0
  228. progressbar2-4.7.0/docs/widgets/reverse-bar.rst +23 -0
  229. progressbar2-4.7.0/docs/widgets/rotating-marker.rst +24 -0
  230. progressbar2-4.7.0/docs/widgets/simple-progress.rst +26 -0
  231. progressbar2-4.7.0/docs/widgets/smoothing-eta.rst +30 -0
  232. progressbar2-4.7.0/docs/widgets/timer.rst +27 -0
  233. progressbar2-4.7.0/docs/widgets/unit-progress.rst +26 -0
  234. progressbar2-4.7.0/docs/widgets/variable.rst +26 -0
  235. progressbar2-4.7.0/examples.py +79 -0
  236. {progressbar2-4.5.0 → progressbar2-4.7.0}/progressbar/__about__.py +5 -3
  237. progressbar2-4.7.0/progressbar/__init__.py +259 -0
  238. progressbar2-4.7.0/progressbar/__main__.py +730 -0
  239. progressbar2-4.7.0/progressbar/_identity.py +79 -0
  240. progressbar2-4.7.0/progressbar/_parallel/__init__.py +57 -0
  241. progressbar2-4.7.0/progressbar/_parallel/_async.py +452 -0
  242. progressbar2-4.7.0/progressbar/_parallel/_common.py +212 -0
  243. progressbar2-4.7.0/progressbar/_parallel/_decorator.py +138 -0
  244. progressbar2-4.7.0/progressbar/_parallel/_display.py +370 -0
  245. progressbar2-4.7.0/progressbar/_parallel/_shell.py +210 -0
  246. progressbar2-4.7.0/progressbar/_parallel/_sync.py +825 -0
  247. progressbar2-4.7.0/progressbar/algorithms.py +112 -0
  248. progressbar2-4.7.0/progressbar/bar.py +1953 -0
  249. progressbar2-4.7.0/progressbar/base.py +51 -0
  250. progressbar2-4.7.0/progressbar/env.py +298 -0
  251. progressbar2-4.7.0/progressbar/fast.py +159 -0
  252. progressbar2-4.7.0/progressbar/multi.py +847 -0
  253. progressbar2-4.7.0/progressbar/py.typed +0 -0
  254. progressbar2-4.7.0/progressbar/shortcuts.py +108 -0
  255. progressbar2-4.7.0/progressbar/terminal/__init__.py +12 -0
  256. progressbar2-4.7.0/progressbar/terminal/base.py +1328 -0
  257. {progressbar2-4.5.0 → progressbar2-4.7.0}/progressbar/terminal/colors.py +195 -156
  258. progressbar2-4.7.0/progressbar/terminal/os_specific/__init__.py +51 -0
  259. progressbar2-4.7.0/progressbar/terminal/os_specific/posix.py +39 -0
  260. progressbar2-4.7.0/progressbar/terminal/os_specific/windows.py +316 -0
  261. progressbar2-4.7.0/progressbar/terminal/stream.py +241 -0
  262. progressbar2-4.7.0/progressbar/utils.py +1289 -0
  263. progressbar2-4.7.0/progressbar/widgets.py +2466 -0
  264. progressbar2-4.7.0/progressbar2.egg-info/PKG-INFO +512 -0
  265. progressbar2-4.7.0/progressbar2.egg-info/SOURCES.txt +372 -0
  266. {progressbar2-4.5.0 → progressbar2-4.7.0}/progressbar2.egg-info/entry_points.txt +1 -0
  267. {progressbar2-4.5.0 → progressbar2-4.7.0}/progressbar2.egg-info/requires.txt +12 -4
  268. progressbar2-4.7.0/progressbar2.egg-info/top_level.txt +1 -0
  269. {progressbar2-4.5.0 → progressbar2-4.7.0}/pyproject.toml +123 -74
  270. progressbar2-4.7.0/pytest.ini +42 -0
  271. {progressbar2-4.5.0 → progressbar2-4.7.0}/ruff.toml +32 -11
  272. progressbar2-4.7.0/scripts/__init__.py +1 -0
  273. progressbar2-4.7.0/scripts/build_docs_wheels.py +159 -0
  274. progressbar2-4.7.0/scripts/render_demos.py +963 -0
  275. progressbar2-4.7.0/scripts/render_race.py +193 -0
  276. progressbar2-4.7.0/tests/api_surface_snapshot.json +559 -0
  277. progressbar2-4.7.0/tests/conftest.py +80 -0
  278. progressbar2-4.7.0/tests/console/__init__.py +0 -0
  279. progressbar2-4.7.0/tests/console/test_console.py +390 -0
  280. progressbar2-4.7.0/tests/console/test_example_colours.py +105 -0
  281. progressbar2-4.7.0/tests/console/test_homepage.py +350 -0
  282. progressbar2-4.7.0/tests/console/test_showcase_assets.py +40 -0
  283. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/original_examples.py +1 -1
  284. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_algorithms.py +26 -4
  285. progressbar2-4.7.0/tests/test_api_surface.py +178 -0
  286. progressbar2-4.7.0/tests/test_color.py +665 -0
  287. progressbar2-4.7.0/tests/test_color_fast_path.py +422 -0
  288. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_custom_widgets.py +36 -0
  289. progressbar2-4.7.0/tests/test_data_transfer_bar.py +51 -0
  290. progressbar2-4.7.0/tests/test_demo_animations.py +40 -0
  291. progressbar2-4.7.0/tests/test_deprecation_warnings.py +95 -0
  292. progressbar2-4.7.0/tests/test_docs_examples.py +265 -0
  293. progressbar2-4.7.0/tests/test_docs_wheel_urls.py +27 -0
  294. progressbar2-4.7.0/tests/test_env_detection.py +129 -0
  295. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_failure.py +50 -0
  296. progressbar2-4.7.0/tests/test_fast_default.py +376 -0
  297. progressbar2-4.7.0/tests/test_fastpath.py +620 -0
  298. progressbar2-4.7.0/tests/test_format_security.py +451 -0
  299. progressbar2-4.7.0/tests/test_init_exports.py +82 -0
  300. progressbar2-4.7.0/tests/test_job_status.py +87 -0
  301. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_monitor_progress.py +15 -22
  302. progressbar2-4.7.0/tests/test_multibar.py +1213 -0
  303. progressbar2-4.7.0/tests/test_native_accelerator.py +286 -0
  304. progressbar2-4.7.0/tests/test_needs_update.py +93 -0
  305. progressbar2-4.7.0/tests/test_os_specific.py +17 -0
  306. progressbar2-4.7.0/tests/test_os_specific_posix.py +49 -0
  307. progressbar2-4.7.0/tests/test_parallel_aliases.py +110 -0
  308. progressbar2-4.7.0/tests/test_parallel_async.py +402 -0
  309. progressbar2-4.7.0/tests/test_parallel_common.py +156 -0
  310. progressbar2-4.7.0/tests/test_parallel_decorator.py +86 -0
  311. progressbar2-4.7.0/tests/test_parallel_display.py +194 -0
  312. progressbar2-4.7.0/tests/test_parallel_display_security.py +78 -0
  313. progressbar2-4.7.0/tests/test_parallel_errors.py +126 -0
  314. progressbar2-4.7.0/tests/test_parallel_imap.py +129 -0
  315. progressbar2-4.7.0/tests/test_parallel_map.py +157 -0
  316. progressbar2-4.7.0/tests/test_parallel_pool.py +113 -0
  317. progressbar2-4.7.0/tests/test_parallel_process.py +229 -0
  318. progressbar2-4.7.0/tests/test_parallel_shell.py +168 -0
  319. progressbar2-4.7.0/tests/test_perf_budget.py +156 -0
  320. progressbar2-4.7.0/tests/test_progressbar.py +487 -0
  321. progressbar2-4.7.0/tests/test_progressbar_command.py +704 -0
  322. progressbar2-4.7.0/tests/test_readme_demos.py +1137 -0
  323. progressbar2-4.7.0/tests/test_render_race.py +118 -0
  324. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_samples.py +17 -0
  325. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_speed.py +3 -1
  326. progressbar2-4.7.0/tests/test_stream.py +558 -0
  327. progressbar2-4.7.0/tests/test_stream_security.py +1468 -0
  328. progressbar2-4.7.0/tests/test_subclass_compat.py +493 -0
  329. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_terminal.py +51 -0
  330. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_timed.py +23 -0
  331. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_unknown_length.py +20 -0
  332. progressbar2-4.7.0/tests/test_update_guard.py +48 -0
  333. progressbar2-4.7.0/tests/test_utils.py +290 -0
  334. progressbar2-4.7.0/tests/test_widget_default_colours.py +152 -0
  335. progressbar2-4.7.0/tests/test_widgets.py +486 -0
  336. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_windows.py +27 -0
  337. progressbar2-4.7.0/tests/test_with.py +65 -0
  338. progressbar2-4.7.0/tools/README.md +17 -0
  339. progressbar2-4.7.0/tools/generate_colors.py +207 -0
  340. progressbar2-4.7.0/tox.ini +106 -0
  341. progressbar2-4.7.0/uv.lock +1282 -0
  342. progressbar2-4.5.0/.github/FUNDING.yml +0 -1
  343. progressbar2-4.5.0/.github/workflows/main.yml +0 -26
  344. progressbar2-4.5.0/.pre-commit-config.yaml +0 -14
  345. progressbar2-4.5.0/CHANGES.rst +0 -11
  346. progressbar2-4.5.0/CONTRIBUTING.rst +0 -126
  347. progressbar2-4.5.0/Makefile +0 -51
  348. progressbar2-4.5.0/PKG-INFO +0 -435
  349. progressbar2-4.5.0/README.rst +0 -353
  350. progressbar2-4.5.0/appveyor.yml +0 -41
  351. progressbar2-4.5.0/circle.yml +0 -8
  352. progressbar2-4.5.0/docs/_theme/LICENSE +0 -46
  353. progressbar2-4.5.0/docs/_theme/flask_theme_support.py +0 -89
  354. progressbar2-4.5.0/docs/_theme/wolph/layout.html +0 -27
  355. progressbar2-4.5.0/docs/_theme/wolph/relations.html +0 -19
  356. progressbar2-4.5.0/docs/_theme/wolph/static/flasky.css_t +0 -431
  357. progressbar2-4.5.0/docs/_theme/wolph/static/small_flask.css +0 -70
  358. progressbar2-4.5.0/docs/_theme/wolph/theme.conf +0 -7
  359. progressbar2-4.5.0/docs/examples.rst +0 -5
  360. progressbar2-4.5.0/docs/index.rst +0 -28
  361. progressbar2-4.5.0/docs/installation.rst +0 -16
  362. progressbar2-4.5.0/docs/usage.rst +0 -70
  363. progressbar2-4.5.0/examples.py +0 -866
  364. progressbar2-4.5.0/progressbar/__init__.py +0 -91
  365. progressbar2-4.5.0/progressbar/__main__.py +0 -399
  366. progressbar2-4.5.0/progressbar/algorithms.py +0 -51
  367. progressbar2-4.5.0/progressbar/bar.py +0 -1147
  368. progressbar2-4.5.0/progressbar/base.py +0 -36
  369. progressbar2-4.5.0/progressbar/env.py +0 -189
  370. progressbar2-4.5.0/progressbar/multi.py +0 -373
  371. progressbar2-4.5.0/progressbar/shortcuts.py +0 -22
  372. progressbar2-4.5.0/progressbar/terminal/__init__.py +0 -4
  373. progressbar2-4.5.0/progressbar/terminal/base.py +0 -623
  374. progressbar2-4.5.0/progressbar/terminal/os_specific/__init__.py +0 -27
  375. progressbar2-4.5.0/progressbar/terminal/os_specific/posix.py +0 -15
  376. progressbar2-4.5.0/progressbar/terminal/os_specific/windows.py +0 -174
  377. progressbar2-4.5.0/progressbar/terminal/stream.py +0 -142
  378. progressbar2-4.5.0/progressbar/utils.py +0 -450
  379. progressbar2-4.5.0/progressbar/widgets.py +0 -1619
  380. progressbar2-4.5.0/progressbar2.egg-info/PKG-INFO +0 -435
  381. progressbar2-4.5.0/progressbar2.egg-info/SOURCES.txt +0 -114
  382. progressbar2-4.5.0/progressbar2.egg-info/top_level.txt +0 -4
  383. progressbar2-4.5.0/pytest.ini +0 -28
  384. progressbar2-4.5.0/requirements.txt +0 -2
  385. progressbar2-4.5.0/tests/conftest.py +0 -49
  386. progressbar2-4.5.0/tests/test_color.py +0 -404
  387. progressbar2-4.5.0/tests/test_data_transfer_bar.py +0 -16
  388. progressbar2-4.5.0/tests/test_job_status.py +0 -22
  389. progressbar2-4.5.0/tests/test_multibar.py +0 -249
  390. progressbar2-4.5.0/tests/test_progressbar.py +0 -78
  391. progressbar2-4.5.0/tests/test_progressbar_command.py +0 -144
  392. progressbar2-4.5.0/tests/test_stream.py +0 -150
  393. progressbar2-4.5.0/tests/test_utils.py +0 -114
  394. progressbar2-4.5.0/tests/test_widgets.py +0 -206
  395. progressbar2-4.5.0/tests/test_with.py +0 -19
  396. progressbar2-4.5.0/tox.ini +0 -65
  397. {progressbar2-4.5.0 → progressbar2-4.7.0}/.github/ci-reporter.yml +0 -0
  398. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/.gitignore +0 -0
  399. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/Makefile +0 -0
  400. /progressbar2-4.5.0/progressbar/py.typed → /progressbar2-4.7.0/docs/_ext/__init__.py +0 -0
  401. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/contributing.rst +0 -0
  402. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/history.rst +0 -0
  403. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/make.bat +0 -0
  404. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.algorithms.rst +0 -0
  405. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.bar.rst +0 -0
  406. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.base.rst +0 -0
  407. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.env.rst +0 -0
  408. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.multi.rst +0 -0
  409. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.shortcuts.rst +0 -0
  410. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.terminal.base.rst +0 -0
  411. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.terminal.colors.rst +0 -0
  412. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.terminal.stream.rst +0 -0
  413. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.utils.rst +0 -0
  414. {progressbar2-4.5.0 → progressbar2-4.7.0}/docs/progressbar.widgets.rst +0 -0
  415. {progressbar2-4.5.0 → progressbar2-4.7.0}/progressbar2.egg-info/dependency_links.txt +0 -0
  416. {progressbar2-4.5.0 → progressbar2-4.7.0}/setup.cfg +0 -0
  417. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/requirements.txt +0 -0
  418. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_backwards_compatibility.py +0 -0
  419. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_data.py +0 -0
  420. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_dill_pickle.py +0 -0
  421. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_empty.py +0 -0
  422. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_end.py +0 -0
  423. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_flush.py +0 -0
  424. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_iterators.py +0 -0
  425. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_large_values.py +0 -0
  426. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_misc.py +0 -0
  427. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_timer.py +0 -0
  428. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_unicode.py +0 -0
  429. {progressbar2-4.5.0 → progressbar2-4.7.0}/tests/test_wrappingio.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
@@ -12,4 +12,3 @@ If applicable, code to reproduce the issue and/or the stacktrace of the issue
12
12
  - Python distribution/environment: CPython/Anaconda/IPython/IDLE
13
13
  - Operating System: Windows 10, Ubuntu Linux, etc.
14
14
  - Package version: `import progressbar; print(progressbar.__version__)`
15
-
@@ -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
 
@@ -20,23 +20,23 @@ jobs:
20
20
  strategy:
21
21
  fail-fast: false
22
22
  matrix:
23
- language: [ python, javascript ]
23
+ language: [ python ]
24
24
 
25
25
  steps:
26
26
  - name: Checkout
27
- uses: actions/checkout@v3
27
+ uses: actions/checkout@v6
28
28
 
29
29
  - name: Initialize CodeQL
30
- uses: github/codeql-action/init@v2
30
+ uses: github/codeql-action/init@v3
31
31
  with:
32
32
  languages: ${{ matrix.language }}
33
33
  queries: +security-and-quality
34
34
 
35
35
  - name: Autobuild
36
- uses: github/codeql-action/autobuild@v2
37
- if: ${{ matrix.language == 'python' || matrix.language == 'javascript' }}
36
+ uses: github/codeql-action/autobuild@v3
37
+ if: ${{ matrix.language == 'python' }}
38
38
 
39
39
  - name: Perform CodeQL Analysis
40
- uses: github/codeql-action/analyze@v2
40
+ uses: github/codeql-action/analyze@v3
41
41
  with:
42
42
  category: "/language:${{ matrix.language }}"
@@ -0,0 +1,45 @@
1
+ name: docs console
2
+
3
+ on:
4
+ push:
5
+ branches: [master, develop]
6
+ pull_request:
7
+ workflow_dispatch:
8
+
9
+ concurrency:
10
+ group: "${{ github.workflow }}-${{ github.ref }}"
11
+ cancel-in-progress: true
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ jobs:
17
+ console:
18
+ name: in-browser console smoke test
19
+ runs-on: ubuntu-latest
20
+ # Task 18's wheel build, a real Pyodide runtime download from jsdelivr,
21
+ # and Chromium's own download can all be slow on a cold CI cache; 20
22
+ # minutes leaves headroom without letting a genuine hang run forever.
23
+ timeout-minutes: 20
24
+ steps:
25
+ - uses: actions/checkout@v6
26
+ - name: Set up Python 3.13
27
+ uses: actions/setup-python@v6
28
+ with:
29
+ python-version: '3.13'
30
+ - name: Install dependencies
31
+ run: |
32
+ python -m pip install --upgrade pip tox
33
+ python -m pip install -e '.[docs-tests]'
34
+ python -m playwright install --with-deps chromium
35
+ - name: Build the docs
36
+ run: tox -e docs
37
+ - name: Run the console smoke test
38
+ run: python -m pytest tests/console -v --no-cov
39
+ - name: Upload the built docs
40
+ if: always()
41
+ uses: actions/upload-artifact@v4
42
+ with:
43
+ name: docs-html
44
+ path: docs/_build/html
45
+ retention-days: 7
@@ -0,0 +1,137 @@
1
+ name: tox
2
+
3
+ on:
4
+ push:
5
+ branches: [master, develop]
6
+ pull_request:
7
+ workflow_dispatch:
8
+
9
+ concurrency:
10
+ group: "${{ github.workflow }}-${{ github.ref }}"
11
+ cancel-in-progress: true
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ jobs:
17
+ perf-budget:
18
+ name: Performance budget
19
+ runs-on: ubuntu-latest
20
+ timeout-minutes: 10
21
+ steps:
22
+ - uses: actions/checkout@v6
23
+ - name: Set up Python 3.13
24
+ uses: actions/setup-python@v6
25
+ with:
26
+ python-version: '3.13'
27
+ - name: Install dependencies
28
+ run: |
29
+ python -m pip install --upgrade pip
30
+ python -m pip install -r tests/requirements.txt
31
+ python -m pip install -e .
32
+ - name: Performance budget
33
+ run: python -m pytest tests/test_perf_budget.py -v --no-cov
34
+
35
+ build:
36
+ name: tox (${{ matrix.tox-env }})
37
+ runs-on: ubuntu-latest
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 }}
45
+ strategy:
46
+ fail-fast: false
47
+ matrix:
48
+ include:
49
+ - python-version: '3.10'
50
+ tox-env: py310
51
+ - python-version: '3.11'
52
+ tox-env: py311
53
+ - python-version: '3.12'
54
+ tox-env: py312
55
+ - python-version: '3.13'
56
+ tox-env: py313
57
+ - python-version: '3.14'
58
+ tox-env: py314
59
+ # Python 3.15 is a pre-release and currently unsupported by
60
+ # typing_extensions (no released version survives
61
+ # `from typing_extensions import *` on 3.15 because
62
+ # no_type_check_decorator is still listed in __all__ after its
63
+ # removal from typing), which breaks the python_utils import.
64
+ # Failures are advisory until upstream catches up.
65
+ - python-version: '3.15-dev'
66
+ tox-env: py315
67
+ experimental: true
68
+ - python-version: '3.14'
69
+ tox-env: docs
70
+ - python-version: '3.14'
71
+ tox-env: docs-demos
72
+ - python-version: '3.14'
73
+ tox-env: docs-linkcheck
74
+ experimental: true
75
+ - python-version: '3.14'
76
+ tox-env: readme
77
+ - python-version: '3.14'
78
+ tox-env: ruff
79
+ - python-version: '3.14'
80
+ tox-env: codespell
81
+
82
+ steps:
83
+ - uses: actions/checkout@v6
84
+ - name: Set up Python ${{ matrix.python-version }}
85
+ uses: actions/setup-python@v6
86
+ with:
87
+ python-version: ${{ matrix.python-version }}
88
+ allow-prereleases: true
89
+ - name: Install dependencies
90
+ run: |
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
95
+ - name: Test with tox
96
+ env:
97
+ RUFF_OUTPUT_FORMAT: >-
98
+ ${{ github.event_name == 'pull_request' && 'github' || 'full' }}
99
+ # Step-level continue-on-error keeps the job green for
100
+ # experimental (pre-release Python) environments while still
101
+ # showing the failing step in the logs
102
+ continue-on-error: ${{ matrix.experimental || false }}
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
114
+
115
+ windows:
116
+ name: tox (windows / py312)
117
+ runs-on: windows-latest
118
+ timeout-minutes: 10
119
+ env:
120
+ # Force UTF-8 I/O so unicode-marker tests (e.g. test_unicode) don't
121
+ # hit UnicodeEncodeError against the legacy Windows code page under
122
+ # pytest's fd-level capture.
123
+ PYTHONUTF8: '1'
124
+ steps:
125
+ - uses: actions/checkout@v6
126
+ - name: Set up Python 3.12
127
+ uses: actions/setup-python@v6
128
+ with:
129
+ python-version: '3.12'
130
+ - name: Install dependencies
131
+ run: |
132
+ python -m pip install --upgrade pip tox
133
+ - name: Test with tox
134
+ # The 100% coverage gate cannot be met on Windows: POSIX-only
135
+ # branches never execute there, so run without the coverage gate
136
+ # (`--no-cov` posarg). Linux jobs still enforce full coverage.
137
+ run: tox -e py312 -- --no-cov
@@ -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
@@ -8,10 +8,12 @@ on:
8
8
  jobs:
9
9
  stale:
10
10
  runs-on: ubuntu-latest
11
+ permissions:
12
+ issues: write
13
+ pull-requests: write
11
14
  steps:
12
15
  - uses: actions/stale@v8
13
16
  with:
14
17
  days-before-issue-stale: 30
15
18
  exempt-issue-labels: in-progress,help-wanted,pinned,security,enhancement
16
19
  exempt-all-assignees: true
17
-
@@ -42,3 +42,17 @@ coverage.xml
42
42
 
43
43
  # Sphinx documentation
44
44
  docs/_build/
45
+
46
+ # Superpowers brainstorming session artifacts
47
+ .superpowers/
48
+
49
+ # Built at docs build time for the in-browser console
50
+ docs/_static/wheels/
51
+
52
+ # Local secrets and environments
53
+ .env
54
+ .env.*
55
+ .venv/
56
+ *.pem
57
+ *.key
58
+ .pypirc
@@ -0,0 +1,3 @@
1
+ # Supply-chain safety: refuse dependency versions published less than 14 days ago.
2
+ # Honored by npm >= 11.10; silently ignored by older npm.
3
+ min-release-age=14
@@ -0,0 +1,18 @@
1
+ # See https://pre-commit.com for more information
2
+ # See https://pre-commit.com/hooks.html for more hooks
3
+ repos:
4
+ - repo: https://github.com/pre-commit/pre-commit-hooks
5
+ rev: v6.0.0
6
+ hooks:
7
+ - id: end-of-file-fixer
8
+ # Preserve the upstream bytes copied by the vendor update command.
9
+ exclude: '^docs/_static/vendor/xterm\.js$'
10
+ - id: trailing-whitespace
11
+ - id: check-yaml
12
+ - id: check-added-large-files
13
+
14
+ - repo: https://github.com/astral-sh/ruff-pre-commit
15
+ rev: v0.15.20
16
+ hooks:
17
+ - id: ruff-check
18
+ - id: ruff-format
@@ -13,6 +13,12 @@ build:
13
13
  # nodejs: "20"
14
14
  # rust: "1.70"
15
15
  # golang: "1.20"
16
+ jobs:
17
+ # Build the wheels the in-browser console installs. A list, so a
18
+ # future step can be appended here without restructuring this key.
19
+ pre_build:
20
+ - python -m pip install build
21
+ - python scripts/build_docs_wheels.py
16
22
 
17
23
  # Build documentation in the "docs/" directory with Sphinx
18
24
  sphinx:
@@ -20,9 +26,15 @@ sphinx:
20
26
  # You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
21
27
  # builder: "dirhtml"
22
28
  # Fail on all warnings to avoid broken references
23
- # fail_on_warning: true
29
+ fail_on_warning: true
24
30
 
25
- # Optionally build your docs in additional formats such as PDF and ePub
31
+ # PDF and ePub are supported and build warning-free. They are necessarily
32
+ # static: the `.. demo::` directive emits its animation and Run button as
33
+ # HTML-only nodes, so in these formats a demo degrades to its source
34
+ # listing plus surrounding prose -- readable, just not animated.
35
+ # This works because `docs/index.rst` no longer includes `README.rst`;
36
+ # doing so pulled remote SVG badges into every builder, and LaTeX cannot
37
+ # render SVG at all.
26
38
  formats:
27
39
  - pdf
28
40
  - epub
@@ -0,0 +1,16 @@
1
+ <claude-mem-context>
2
+ # Memory Context
3
+
4
+ # [python-progressbar] recent context, 2026-05-11 12:05am GMT+2
5
+
6
+ Legend: 🎯session 🔴bugfix 🟣feature 🔄refactor ✅change 🔵discovery ⚖️decision 🚨security_alert 🔐security_note
7
+ Format: ID TIME TYPE TITLE
8
+ Fetch details: get_observations([IDs]) | Search: mem-search skill
9
+
10
+ Stats: 1 obs (414t read) | 19,980t work | 98% savings
11
+
12
+ ### May 11, 2026
13
+ 2388 12:04a ✅ CI/tox config updated to test Python 3.10–3.15
14
+
15
+ Access 20k tokens of past work via get_observations([IDs]) or mem-search skill.
16
+ </claude-mem-context>
@@ -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.