progressbar2 4.1.1__tar.gz → 4.3.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 (394) hide show
  1. progressbar2-4.3.0/.github/FUNDING.yml +1 -0
  2. progressbar2-4.3.0/.github/ci-reporter.yml +8 -0
  3. progressbar2-4.3.0/.github/workflows/codeql.yml +42 -0
  4. progressbar2-4.3.0/.github/workflows/main.yml +26 -0
  5. progressbar2-4.3.0/.github/workflows/stale.yml +17 -0
  6. progressbar2-4.3.0/.gitignore +44 -0
  7. progressbar2-4.3.0/.pre-commit-config.yaml +14 -0
  8. progressbar2-4.3.0/ISSUE_TEMPLATE +15 -0
  9. {progressbar2-4.1.1 → progressbar2-4.3.0}/LICENSE +1 -1
  10. {progressbar2-4.1.1 → progressbar2-4.3.0}/MANIFEST.in +3 -3
  11. {progressbar2-4.1.1 → progressbar2-4.3.0}/Makefile +3 -7
  12. {progressbar2-4.1.1/progressbar2.egg-info → progressbar2-4.3.0}/PKG-INFO +161 -46
  13. progressbar2-4.1.1/PKG-INFO → progressbar2-4.3.0/README.rst +93 -59
  14. progressbar2-4.3.0/appveyor.yml +41 -0
  15. progressbar2-4.3.0/circle.yml +8 -0
  16. progressbar2-4.3.0/docs/.gitignore +1 -0
  17. progressbar2-4.3.0/docs/Makefile +177 -0
  18. progressbar2-4.3.0/docs/_theme/LICENSE +46 -0
  19. progressbar2-4.3.0/docs/_theme/flask_theme_support.py +89 -0
  20. progressbar2-4.3.0/docs/_theme/wolph/layout.html +27 -0
  21. progressbar2-4.3.0/docs/_theme/wolph/relations.html +19 -0
  22. progressbar2-4.3.0/docs/_theme/wolph/static/flasky.css_t +431 -0
  23. progressbar2-4.3.0/docs/_theme/wolph/static/small_flask.css +70 -0
  24. progressbar2-4.3.0/docs/_theme/wolph/theme.conf +7 -0
  25. progressbar2-4.3.0/docs/conf.py +344 -0
  26. progressbar2-4.3.0/docs/contributing.rst +1 -0
  27. progressbar2-4.3.0/docs/examples.rst +5 -0
  28. progressbar2-4.3.0/docs/history.rst +8 -0
  29. progressbar2-4.3.0/docs/index.rst +28 -0
  30. progressbar2-4.3.0/docs/installation.rst +16 -0
  31. progressbar2-4.3.0/docs/make.bat +242 -0
  32. progressbar2-4.3.0/docs/progressbar.bar.rst +8 -0
  33. progressbar2-4.3.0/docs/progressbar.base.rst +7 -0
  34. progressbar2-4.3.0/docs/progressbar.multi.rst +7 -0
  35. progressbar2-4.3.0/docs/progressbar.rst +31 -0
  36. progressbar2-4.3.0/docs/progressbar.shortcuts.rst +7 -0
  37. progressbar2-4.3.0/docs/progressbar.terminal.base.rst +7 -0
  38. progressbar2-4.3.0/docs/progressbar.terminal.colors.rst +7 -0
  39. progressbar2-4.3.0/docs/progressbar.terminal.os_specific.posix.rst +7 -0
  40. progressbar2-4.3.0/docs/progressbar.terminal.os_specific.rst +19 -0
  41. progressbar2-4.3.0/docs/progressbar.terminal.os_specific.windows.rst +7 -0
  42. progressbar2-4.3.0/docs/progressbar.terminal.rst +28 -0
  43. progressbar2-4.3.0/docs/progressbar.terminal.stream.rst +7 -0
  44. progressbar2-4.3.0/docs/progressbar.utils.rst +7 -0
  45. progressbar2-4.3.0/docs/progressbar.widgets.rst +7 -0
  46. progressbar2-4.3.0/docs/requirements.txt +1 -0
  47. progressbar2-4.3.0/docs/usage.rst +70 -0
  48. {progressbar2-4.1.1 → progressbar2-4.3.0}/examples.py +172 -84
  49. {progressbar2-4.1.1 → progressbar2-4.3.0}/progressbar/__about__.py +5 -3
  50. progressbar2-4.3.0/progressbar/__init__.py +81 -0
  51. {progressbar2-4.1.1 → progressbar2-4.3.0}/progressbar/bar.py +537 -266
  52. progressbar2-4.3.0/progressbar/base.py +31 -0
  53. progressbar2-4.3.0/progressbar/env.py +159 -0
  54. progressbar2-4.3.0/progressbar/multi.py +372 -0
  55. progressbar2-4.3.0/progressbar/py.typed +0 -0
  56. progressbar2-4.3.0/progressbar/shortcuts.py +22 -0
  57. progressbar2-4.3.0/progressbar/terminal/__init__.py +4 -0
  58. progressbar2-4.3.0/progressbar/terminal/base.py +524 -0
  59. progressbar2-4.3.0/progressbar/terminal/colors.py +1070 -0
  60. progressbar2-4.3.0/progressbar/terminal/os_specific/__init__.py +22 -0
  61. progressbar2-4.3.0/progressbar/terminal/os_specific/posix.py +15 -0
  62. progressbar2-4.3.0/progressbar/terminal/os_specific/windows.py +137 -0
  63. progressbar2-4.3.0/progressbar/terminal/stream.py +138 -0
  64. {progressbar2-4.1.1 → progressbar2-4.3.0}/progressbar/utils.py +165 -155
  65. {progressbar2-4.1.1 → progressbar2-4.3.0}/progressbar/widgets.py +744 -256
  66. progressbar2-4.1.1/README.rst → progressbar2-4.3.0/progressbar2.egg-info/PKG-INFO +174 -36
  67. progressbar2-4.3.0/progressbar2.egg-info/SOURCES.txt +109 -0
  68. progressbar2-4.3.0/progressbar2.egg-info/entry_points.txt +2 -0
  69. {progressbar2-4.1.1 → progressbar2-4.3.0}/progressbar2.egg-info/requires.txt +5 -3
  70. progressbar2-4.3.0/progressbar2.egg-info/top_level.txt +6 -0
  71. progressbar2-4.3.0/pyproject.toml +190 -0
  72. {progressbar2-4.1.1 → progressbar2-4.3.0}/pytest.ini +9 -8
  73. progressbar2-4.3.0/ruff.toml +75 -0
  74. progressbar2-4.3.0/setup.cfg +4 -0
  75. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/conftest.py +11 -7
  76. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/original_examples.py +123 -53
  77. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_backwards_compatibility.py +4 -3
  78. progressbar2-4.3.0/tests/test_color.py +328 -0
  79. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_custom_widgets.py +23 -11
  80. progressbar2-4.3.0/tests/test_data.py +24 -0
  81. progressbar2-4.3.0/tests/test_dill_pickle.py +14 -0
  82. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_empty.py +0 -1
  83. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_end.py +12 -8
  84. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_failure.py +22 -2
  85. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_flush.py +2 -1
  86. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_iterators.py +17 -14
  87. progressbar2-4.3.0/tests/test_job_status.py +19 -0
  88. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_large_values.py +1 -0
  89. progressbar2-4.3.0/tests/test_monitor_progress.py +295 -0
  90. progressbar2-4.3.0/tests/test_multibar.py +249 -0
  91. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_progressbar.py +15 -13
  92. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_samples.py +6 -3
  93. progressbar2-4.3.0/tests/test_speed.py +35 -0
  94. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_stream.py +51 -6
  95. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_terminal.py +45 -13
  96. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_timed.py +36 -19
  97. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_timer.py +29 -18
  98. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_unicode.py +12 -11
  99. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_unknown_length.py +5 -3
  100. progressbar2-4.3.0/tests/test_utils.py +110 -0
  101. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_widgets.py +21 -15
  102. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_with.py +0 -1
  103. progressbar2-4.3.0/tests/test_wrappingio.py +61 -0
  104. progressbar2-4.3.0/tox.ini +68 -0
  105. progressbar2-4.1.1/progressbar/__init__.py +0 -76
  106. progressbar2-4.1.1/progressbar/base.py +0 -18
  107. progressbar2-4.1.1/progressbar/shortcuts.py +0 -11
  108. progressbar2-4.1.1/progressbar2.egg-info/SOURCES.txt +0 -322
  109. progressbar2-4.1.1/progressbar2.egg-info/not-zip-safe +0 -1
  110. progressbar2-4.1.1/progressbar2.egg-info/top_level.txt +0 -1
  111. progressbar2-4.1.1/setup.cfg +0 -13
  112. progressbar2-4.1.1/setup.py +0 -72
  113. progressbar2-4.1.1/tests/.coverage +0 -0
  114. progressbar2-4.1.1/tests/__pycache__/conftest.cpython-310-pytest-7.1.3.pyc +0 -0
  115. progressbar2-4.1.1/tests/__pycache__/conftest.cpython-37-pytest-7.1.3.pyc +0 -0
  116. progressbar2-4.1.1/tests/__pycache__/conftest.cpython-38-pytest-7.1.3.pyc +0 -0
  117. progressbar2-4.1.1/tests/__pycache__/conftest.cpython-39-pytest-7.1.3.pyc +0 -0
  118. progressbar2-4.1.1/tests/__pycache__/custom_widgets.cpython-310-pytest-7.1.3.pyc +0 -0
  119. progressbar2-4.1.1/tests/__pycache__/custom_widgets.cpython-310.pyc +0 -0
  120. progressbar2-4.1.1/tests/__pycache__/custom_widgets.cpython-37-pytest-7.1.3.pyc +0 -0
  121. progressbar2-4.1.1/tests/__pycache__/custom_widgets.cpython-38-pytest-7.1.3.pyc +0 -0
  122. progressbar2-4.1.1/tests/__pycache__/custom_widgets.cpython-39-pytest-7.1.3.pyc +0 -0
  123. progressbar2-4.1.1/tests/__pycache__/data.cpython-310-pytest-7.1.3.pyc +0 -0
  124. progressbar2-4.1.1/tests/__pycache__/data.cpython-310.pyc +0 -0
  125. progressbar2-4.1.1/tests/__pycache__/data.cpython-37-pytest-7.1.3.pyc +0 -0
  126. progressbar2-4.1.1/tests/__pycache__/data.cpython-38-pytest-7.1.3.pyc +0 -0
  127. progressbar2-4.1.1/tests/__pycache__/data.cpython-39-pytest-7.1.3.pyc +0 -0
  128. progressbar2-4.1.1/tests/__pycache__/datatransferbar.cpython-310-pytest-7.1.3.pyc +0 -0
  129. progressbar2-4.1.1/tests/__pycache__/datatransferbar.cpython-310.pyc +0 -0
  130. progressbar2-4.1.1/tests/__pycache__/datatransferbar.cpython-37-pytest-7.1.3.pyc +0 -0
  131. progressbar2-4.1.1/tests/__pycache__/datatransferbar.cpython-38-pytest-7.1.3.pyc +0 -0
  132. progressbar2-4.1.1/tests/__pycache__/datatransferbar.cpython-39-pytest-7.1.3.pyc +0 -0
  133. progressbar2-4.1.1/tests/__pycache__/empty.cpython-310-pytest-7.1.3.pyc +0 -0
  134. progressbar2-4.1.1/tests/__pycache__/empty.cpython-310.pyc +0 -0
  135. progressbar2-4.1.1/tests/__pycache__/empty.cpython-37-pytest-7.1.3.pyc +0 -0
  136. progressbar2-4.1.1/tests/__pycache__/empty.cpython-38-pytest-7.1.3.pyc +0 -0
  137. progressbar2-4.1.1/tests/__pycache__/empty.cpython-39-pytest-7.1.3.pyc +0 -0
  138. progressbar2-4.1.1/tests/__pycache__/failure.cpython-310-pytest-7.1.3.pyc +0 -0
  139. progressbar2-4.1.1/tests/__pycache__/failure.cpython-310.pyc +0 -0
  140. progressbar2-4.1.1/tests/__pycache__/failure.cpython-37-pytest-7.1.3.pyc +0 -0
  141. progressbar2-4.1.1/tests/__pycache__/failure.cpython-38-pytest-7.1.3.pyc +0 -0
  142. progressbar2-4.1.1/tests/__pycache__/failure.cpython-39-pytest-7.1.3.pyc +0 -0
  143. progressbar2-4.1.1/tests/__pycache__/iterators.cpython-310-pytest-7.1.3.pyc +0 -0
  144. progressbar2-4.1.1/tests/__pycache__/iterators.cpython-310.pyc +0 -0
  145. progressbar2-4.1.1/tests/__pycache__/iterators.cpython-37-pytest-7.1.3.pyc +0 -0
  146. progressbar2-4.1.1/tests/__pycache__/iterators.cpython-38-pytest-7.1.3.pyc +0 -0
  147. progressbar2-4.1.1/tests/__pycache__/iterators.cpython-39-pytest-7.1.3.pyc +0 -0
  148. progressbar2-4.1.1/tests/__pycache__/misc.cpython-310-pytest-7.1.3.pyc +0 -0
  149. progressbar2-4.1.1/tests/__pycache__/misc.cpython-310.pyc +0 -0
  150. progressbar2-4.1.1/tests/__pycache__/misc.cpython-37-pytest-7.1.3.pyc +0 -0
  151. progressbar2-4.1.1/tests/__pycache__/misc.cpython-38-pytest-7.1.3.pyc +0 -0
  152. progressbar2-4.1.1/tests/__pycache__/misc.cpython-39-pytest-7.1.3.pyc +0 -0
  153. progressbar2-4.1.1/tests/__pycache__/original_examples.cpython-310-pytest-7.1.3.pyc +0 -0
  154. progressbar2-4.1.1/tests/__pycache__/original_examples.cpython-310.pyc +0 -0
  155. progressbar2-4.1.1/tests/__pycache__/original_examples.cpython-37-pytest-7.1.3.pyc +0 -0
  156. progressbar2-4.1.1/tests/__pycache__/original_examples.cpython-38-pytest-7.1.3.pyc +0 -0
  157. progressbar2-4.1.1/tests/__pycache__/original_examples.cpython-39-pytest-7.1.3.pyc +0 -0
  158. progressbar2-4.1.1/tests/__pycache__/speed.cpython-310-pytest-7.1.3.pyc +0 -0
  159. progressbar2-4.1.1/tests/__pycache__/speed.cpython-310.pyc +0 -0
  160. progressbar2-4.1.1/tests/__pycache__/speed.cpython-37-pytest-7.1.3.pyc +0 -0
  161. progressbar2-4.1.1/tests/__pycache__/speed.cpython-38-pytest-7.1.3.pyc +0 -0
  162. progressbar2-4.1.1/tests/__pycache__/speed.cpython-39-pytest-7.1.3.pyc +0 -0
  163. progressbar2-4.1.1/tests/__pycache__/terminal.cpython-310-pytest-7.1.3.pyc +0 -0
  164. progressbar2-4.1.1/tests/__pycache__/terminal.cpython-310.pyc +0 -0
  165. progressbar2-4.1.1/tests/__pycache__/terminal.cpython-37-pytest-7.1.3.pyc +0 -0
  166. progressbar2-4.1.1/tests/__pycache__/terminal.cpython-38-pytest-7.1.3.pyc +0 -0
  167. progressbar2-4.1.1/tests/__pycache__/terminal.cpython-39-pytest-7.1.3.pyc +0 -0
  168. progressbar2-4.1.1/tests/__pycache__/test_backwards_compatibility.cpython-310-pytest-7.1.3.pyc +0 -0
  169. progressbar2-4.1.1/tests/__pycache__/test_custom_widgets.cpython-310-pytest-7.1.3.pyc +0 -0
  170. progressbar2-4.1.1/tests/__pycache__/test_custom_widgets.cpython-310.pyc +0 -0
  171. progressbar2-4.1.1/tests/__pycache__/test_custom_widgets.cpython-37-pytest-7.1.3.pyc +0 -0
  172. progressbar2-4.1.1/tests/__pycache__/test_custom_widgets.cpython-38-pytest-7.1.3.pyc +0 -0
  173. progressbar2-4.1.1/tests/__pycache__/test_custom_widgets.cpython-39-pytest-7.1.3.pyc +0 -0
  174. progressbar2-4.1.1/tests/__pycache__/test_data.cpython-310-pytest-7.1.3.pyc +0 -0
  175. progressbar2-4.1.1/tests/__pycache__/test_data.cpython-310.pyc +0 -0
  176. progressbar2-4.1.1/tests/__pycache__/test_data.cpython-37-pytest-7.1.3.pyc +0 -0
  177. progressbar2-4.1.1/tests/__pycache__/test_data.cpython-38-pytest-7.1.3.pyc +0 -0
  178. progressbar2-4.1.1/tests/__pycache__/test_data.cpython-39-pytest-7.1.3.pyc +0 -0
  179. progressbar2-4.1.1/tests/__pycache__/test_data_transfer_bar.cpython-310-pytest-7.1.3.pyc +0 -0
  180. progressbar2-4.1.1/tests/__pycache__/test_data_transfer_bar.cpython-310.pyc +0 -0
  181. progressbar2-4.1.1/tests/__pycache__/test_data_transfer_bar.cpython-37-pytest-7.1.3.pyc +0 -0
  182. progressbar2-4.1.1/tests/__pycache__/test_data_transfer_bar.cpython-38-pytest-7.1.3.pyc +0 -0
  183. progressbar2-4.1.1/tests/__pycache__/test_data_transfer_bar.cpython-39-pytest-7.1.3.pyc +0 -0
  184. progressbar2-4.1.1/tests/__pycache__/test_empty.cpython-310-pytest-7.1.3.pyc +0 -0
  185. progressbar2-4.1.1/tests/__pycache__/test_empty.cpython-310.pyc +0 -0
  186. progressbar2-4.1.1/tests/__pycache__/test_empty.cpython-37-pytest-7.1.3.pyc +0 -0
  187. progressbar2-4.1.1/tests/__pycache__/test_empty.cpython-38-pytest-7.1.3.pyc +0 -0
  188. progressbar2-4.1.1/tests/__pycache__/test_empty.cpython-39-pytest-7.1.3.pyc +0 -0
  189. progressbar2-4.1.1/tests/__pycache__/test_end.cpython-310-pytest-7.1.3.pyc +0 -0
  190. progressbar2-4.1.1/tests/__pycache__/test_end.cpython-310.pyc +0 -0
  191. progressbar2-4.1.1/tests/__pycache__/test_end.cpython-37-pytest-7.1.3.pyc +0 -0
  192. progressbar2-4.1.1/tests/__pycache__/test_end.cpython-38-pytest-7.1.3.pyc +0 -0
  193. progressbar2-4.1.1/tests/__pycache__/test_end.cpython-39-pytest-7.1.3.pyc +0 -0
  194. progressbar2-4.1.1/tests/__pycache__/test_failure.cpython-310-pytest-7.1.3.pyc +0 -0
  195. progressbar2-4.1.1/tests/__pycache__/test_failure.cpython-310.pyc +0 -0
  196. progressbar2-4.1.1/tests/__pycache__/test_failure.cpython-37-pytest-7.1.3.pyc +0 -0
  197. progressbar2-4.1.1/tests/__pycache__/test_failure.cpython-38-pytest-7.1.3.pyc +0 -0
  198. progressbar2-4.1.1/tests/__pycache__/test_failure.cpython-39-pytest-7.1.3.pyc +0 -0
  199. progressbar2-4.1.1/tests/__pycache__/test_flush.cpython-310-pytest-7.1.3.pyc +0 -0
  200. progressbar2-4.1.1/tests/__pycache__/test_flush.cpython-310.pyc +0 -0
  201. progressbar2-4.1.1/tests/__pycache__/test_flush.cpython-37-pytest-7.1.3.pyc +0 -0
  202. progressbar2-4.1.1/tests/__pycache__/test_flush.cpython-38-pytest-7.1.3.pyc +0 -0
  203. progressbar2-4.1.1/tests/__pycache__/test_flush.cpython-39-pytest-7.1.3.pyc +0 -0
  204. progressbar2-4.1.1/tests/__pycache__/test_iterators.cpython-310-pytest-7.1.3.pyc +0 -0
  205. progressbar2-4.1.1/tests/__pycache__/test_iterators.cpython-310.pyc +0 -0
  206. progressbar2-4.1.1/tests/__pycache__/test_iterators.cpython-37-pytest-7.1.3.pyc +0 -0
  207. progressbar2-4.1.1/tests/__pycache__/test_iterators.cpython-38-pytest-7.1.3.pyc +0 -0
  208. progressbar2-4.1.1/tests/__pycache__/test_iterators.cpython-39-pytest-7.1.3.pyc +0 -0
  209. progressbar2-4.1.1/tests/__pycache__/test_large_values.cpython-310-pytest-7.1.3.pyc +0 -0
  210. progressbar2-4.1.1/tests/__pycache__/test_large_values.cpython-310.pyc +0 -0
  211. progressbar2-4.1.1/tests/__pycache__/test_large_values.cpython-37-pytest-7.1.3.pyc +0 -0
  212. progressbar2-4.1.1/tests/__pycache__/test_large_values.cpython-38-pytest-7.1.3.pyc +0 -0
  213. progressbar2-4.1.1/tests/__pycache__/test_large_values.cpython-39-pytest-7.1.3.pyc +0 -0
  214. progressbar2-4.1.1/tests/__pycache__/test_misc.cpython-310-pytest-7.1.3.pyc +0 -0
  215. progressbar2-4.1.1/tests/__pycache__/test_misc.cpython-310.pyc +0 -0
  216. progressbar2-4.1.1/tests/__pycache__/test_misc.cpython-37-pytest-7.1.3.pyc +0 -0
  217. progressbar2-4.1.1/tests/__pycache__/test_misc.cpython-38-pytest-7.1.3.pyc +0 -0
  218. progressbar2-4.1.1/tests/__pycache__/test_misc.cpython-39-pytest-7.1.3.pyc +0 -0
  219. progressbar2-4.1.1/tests/__pycache__/test_monitor_progress.cpython-310-pytest-7.1.3.pyc +0 -0
  220. progressbar2-4.1.1/tests/__pycache__/test_monitor_progress.cpython-310.pyc +0 -0
  221. progressbar2-4.1.1/tests/__pycache__/test_monitor_progress.cpython-37-pytest-7.1.3.pyc +0 -0
  222. progressbar2-4.1.1/tests/__pycache__/test_monitor_progress.cpython-38-pytest-7.1.3.pyc +0 -0
  223. progressbar2-4.1.1/tests/__pycache__/test_monitor_progress.cpython-39-pytest-7.1.3.pyc +0 -0
  224. progressbar2-4.1.1/tests/__pycache__/test_multibar.cpython-310-pytest-7.1.3.pyc +0 -0
  225. progressbar2-4.1.1/tests/__pycache__/test_multibar.cpython-310.pyc +0 -0
  226. progressbar2-4.1.1/tests/__pycache__/test_multibar.cpython-37-pytest-7.1.3.pyc +0 -0
  227. progressbar2-4.1.1/tests/__pycache__/test_multibar.cpython-38-pytest-7.1.3.pyc +0 -0
  228. progressbar2-4.1.1/tests/__pycache__/test_multibar.cpython-39-pytest-7.1.3.pyc +0 -0
  229. progressbar2-4.1.1/tests/__pycache__/test_progressbar.cpython-310-pytest-7.1.3.pyc +0 -0
  230. progressbar2-4.1.1/tests/__pycache__/test_progressbar.cpython-310.pyc +0 -0
  231. progressbar2-4.1.1/tests/__pycache__/test_progressbar.cpython-37-pytest-7.1.3.pyc +0 -0
  232. progressbar2-4.1.1/tests/__pycache__/test_progressbar.cpython-38-pytest-7.1.3.pyc +0 -0
  233. progressbar2-4.1.1/tests/__pycache__/test_progressbar.cpython-39-pytest-7.1.3.pyc +0 -0
  234. progressbar2-4.1.1/tests/__pycache__/test_samples.cpython-310-pytest-7.1.3.pyc +0 -0
  235. progressbar2-4.1.1/tests/__pycache__/test_samples.cpython-310.pyc +0 -0
  236. progressbar2-4.1.1/tests/__pycache__/test_samples.cpython-37-pytest-7.1.3.pyc +0 -0
  237. progressbar2-4.1.1/tests/__pycache__/test_samples.cpython-38-pytest-7.1.3.pyc +0 -0
  238. progressbar2-4.1.1/tests/__pycache__/test_samples.cpython-39-pytest-7.1.3.pyc +0 -0
  239. progressbar2-4.1.1/tests/__pycache__/test_speed.cpython-310-pytest-7.1.3.pyc +0 -0
  240. progressbar2-4.1.1/tests/__pycache__/test_speed.cpython-310.pyc +0 -0
  241. progressbar2-4.1.1/tests/__pycache__/test_speed.cpython-37-pytest-7.1.3.pyc +0 -0
  242. progressbar2-4.1.1/tests/__pycache__/test_speed.cpython-38-pytest-7.1.3.pyc +0 -0
  243. progressbar2-4.1.1/tests/__pycache__/test_speed.cpython-39-pytest-7.1.3.pyc +0 -0
  244. progressbar2-4.1.1/tests/__pycache__/test_stream.cpython-310-pytest-7.1.3.pyc +0 -0
  245. progressbar2-4.1.1/tests/__pycache__/test_stream.cpython-310.pyc +0 -0
  246. progressbar2-4.1.1/tests/__pycache__/test_stream.cpython-37-pytest-7.1.3.pyc +0 -0
  247. progressbar2-4.1.1/tests/__pycache__/test_stream.cpython-38-pytest-7.1.3.pyc +0 -0
  248. progressbar2-4.1.1/tests/__pycache__/test_stream.cpython-39-pytest-7.1.3.pyc +0 -0
  249. progressbar2-4.1.1/tests/__pycache__/test_terminal.cpython-310-pytest-7.1.3.pyc +0 -0
  250. progressbar2-4.1.1/tests/__pycache__/test_terminal.cpython-310.pyc +0 -0
  251. progressbar2-4.1.1/tests/__pycache__/test_terminal.cpython-37-pytest-7.1.3.pyc +0 -0
  252. progressbar2-4.1.1/tests/__pycache__/test_terminal.cpython-38-pytest-7.1.3.pyc +0 -0
  253. progressbar2-4.1.1/tests/__pycache__/test_terminal.cpython-39-pytest-7.1.3.pyc +0 -0
  254. progressbar2-4.1.1/tests/__pycache__/test_timed.cpython-310-pytest-7.1.3.pyc +0 -0
  255. progressbar2-4.1.1/tests/__pycache__/test_timed.cpython-310.pyc +0 -0
  256. progressbar2-4.1.1/tests/__pycache__/test_timed.cpython-37-pytest-7.1.3.pyc +0 -0
  257. progressbar2-4.1.1/tests/__pycache__/test_timed.cpython-38-pytest-7.1.3.pyc +0 -0
  258. progressbar2-4.1.1/tests/__pycache__/test_timed.cpython-39-pytest-7.1.3.pyc +0 -0
  259. progressbar2-4.1.1/tests/__pycache__/test_timer.cpython-310-pytest-7.1.3.pyc +0 -0
  260. progressbar2-4.1.1/tests/__pycache__/test_timer.cpython-310.pyc +0 -0
  261. progressbar2-4.1.1/tests/__pycache__/test_timer.cpython-37-pytest-7.1.3.pyc +0 -0
  262. progressbar2-4.1.1/tests/__pycache__/test_timer.cpython-38-pytest-7.1.3.pyc +0 -0
  263. progressbar2-4.1.1/tests/__pycache__/test_timer.cpython-39-pytest-7.1.3.pyc +0 -0
  264. progressbar2-4.1.1/tests/__pycache__/test_unicode.cpython-310-pytest-7.1.3.pyc +0 -0
  265. progressbar2-4.1.1/tests/__pycache__/test_unicode.cpython-310.pyc +0 -0
  266. progressbar2-4.1.1/tests/__pycache__/test_unicode.cpython-37-pytest-7.1.3.pyc +0 -0
  267. progressbar2-4.1.1/tests/__pycache__/test_unicode.cpython-38-pytest-7.1.3.pyc +0 -0
  268. progressbar2-4.1.1/tests/__pycache__/test_unicode.cpython-39-pytest-7.1.3.pyc +0 -0
  269. progressbar2-4.1.1/tests/__pycache__/test_unknown_length.cpython-310-pytest-7.1.3.pyc +0 -0
  270. progressbar2-4.1.1/tests/__pycache__/test_unknown_length.cpython-310.pyc +0 -0
  271. progressbar2-4.1.1/tests/__pycache__/test_unknown_length.cpython-37-pytest-7.1.3.pyc +0 -0
  272. progressbar2-4.1.1/tests/__pycache__/test_unknown_length.cpython-38-pytest-7.1.3.pyc +0 -0
  273. progressbar2-4.1.1/tests/__pycache__/test_unknown_length.cpython-39-pytest-7.1.3.pyc +0 -0
  274. progressbar2-4.1.1/tests/__pycache__/test_utils.cpython-310-pytest-7.1.3.pyc +0 -0
  275. progressbar2-4.1.1/tests/__pycache__/test_utils.cpython-310.pyc +0 -0
  276. progressbar2-4.1.1/tests/__pycache__/test_utils.cpython-37-pytest-7.1.3.pyc +0 -0
  277. progressbar2-4.1.1/tests/__pycache__/test_utils.cpython-38-pytest-7.1.3.pyc +0 -0
  278. progressbar2-4.1.1/tests/__pycache__/test_utils.cpython-39-pytest-7.1.3.pyc +0 -0
  279. progressbar2-4.1.1/tests/__pycache__/test_widgets.cpython-310-pytest-7.1.3.pyc +0 -0
  280. progressbar2-4.1.1/tests/__pycache__/test_widgets.cpython-310.pyc +0 -0
  281. progressbar2-4.1.1/tests/__pycache__/test_widgets.cpython-37-pytest-7.1.3.pyc +0 -0
  282. progressbar2-4.1.1/tests/__pycache__/test_widgets.cpython-38-pytest-7.1.3.pyc +0 -0
  283. progressbar2-4.1.1/tests/__pycache__/test_widgets.cpython-39-pytest-7.1.3.pyc +0 -0
  284. progressbar2-4.1.1/tests/__pycache__/test_with.cpython-310-pytest-7.1.3.pyc +0 -0
  285. progressbar2-4.1.1/tests/__pycache__/test_with.cpython-310.pyc +0 -0
  286. progressbar2-4.1.1/tests/__pycache__/test_with.cpython-37-pytest-7.1.3.pyc +0 -0
  287. progressbar2-4.1.1/tests/__pycache__/test_with.cpython-38-pytest-7.1.3.pyc +0 -0
  288. progressbar2-4.1.1/tests/__pycache__/test_with.cpython-39-pytest-7.1.3.pyc +0 -0
  289. progressbar2-4.1.1/tests/__pycache__/timed.cpython-310-pytest-7.1.3.pyc +0 -0
  290. progressbar2-4.1.1/tests/__pycache__/timed.cpython-310.pyc +0 -0
  291. progressbar2-4.1.1/tests/__pycache__/timed.cpython-37-pytest-7.1.3.pyc +0 -0
  292. progressbar2-4.1.1/tests/__pycache__/timed.cpython-38-pytest-7.1.3.pyc +0 -0
  293. progressbar2-4.1.1/tests/__pycache__/timed.cpython-39-pytest-7.1.3.pyc +0 -0
  294. progressbar2-4.1.1/tests/__pycache__/unicode.cpython-310-pytest-7.1.3.pyc +0 -0
  295. progressbar2-4.1.1/tests/__pycache__/unicode.cpython-310.pyc +0 -0
  296. progressbar2-4.1.1/tests/__pycache__/unicode.cpython-37-pytest-7.1.3.pyc +0 -0
  297. progressbar2-4.1.1/tests/__pycache__/unicode.cpython-38-pytest-7.1.3.pyc +0 -0
  298. progressbar2-4.1.1/tests/__pycache__/unicode.cpython-39-pytest-7.1.3.pyc +0 -0
  299. progressbar2-4.1.1/tests/__pycache__/unknownlength.cpython-310-pytest-7.1.3.pyc +0 -0
  300. progressbar2-4.1.1/tests/__pycache__/unknownlength.cpython-310.pyc +0 -0
  301. progressbar2-4.1.1/tests/__pycache__/unknownlength.cpython-37-pytest-7.1.3.pyc +0 -0
  302. progressbar2-4.1.1/tests/__pycache__/unknownlength.cpython-38-pytest-7.1.3.pyc +0 -0
  303. progressbar2-4.1.1/tests/__pycache__/unknownlength.cpython-39-pytest-7.1.3.pyc +0 -0
  304. progressbar2-4.1.1/tests/__pycache__/widgets.cpython-310-pytest-7.1.3.pyc +0 -0
  305. progressbar2-4.1.1/tests/__pycache__/widgets.cpython-310.pyc +0 -0
  306. progressbar2-4.1.1/tests/__pycache__/widgets.cpython-37-pytest-7.1.3.pyc +0 -0
  307. progressbar2-4.1.1/tests/__pycache__/widgets.cpython-38-pytest-7.1.3.pyc +0 -0
  308. progressbar2-4.1.1/tests/__pycache__/widgets.cpython-39-pytest-7.1.3.pyc +0 -0
  309. progressbar2-4.1.1/tests/__pycache__/with.cpython-310-pytest-7.1.3.pyc +0 -0
  310. progressbar2-4.1.1/tests/__pycache__/with.cpython-310.pyc +0 -0
  311. progressbar2-4.1.1/tests/__pycache__/with.cpython-37-pytest-7.1.3.pyc +0 -0
  312. progressbar2-4.1.1/tests/__pycache__/with.cpython-38-pytest-7.1.3.pyc +0 -0
  313. progressbar2-4.1.1/tests/__pycache__/with.cpython-39-pytest-7.1.3.pyc +0 -0
  314. progressbar2-4.1.1/tests/htmlcov/.gitignore +0 -2
  315. progressbar2-4.1.1/tests/htmlcov/_Volumes_workspace_python-progressbar__tox_py27_lib_python2_7_site-packages_progressbar___about___py.html +0 -90
  316. progressbar2-4.1.1/tests/htmlcov/_Volumes_workspace_python-progressbar__tox_py27_lib_python2_7_site-packages_progressbar___init___py.html +0 -153
  317. progressbar2-4.1.1/tests/htmlcov/_Volumes_workspace_python-progressbar__tox_py27_lib_python2_7_site-packages_progressbar_bar_py.html +0 -894
  318. progressbar2-4.1.1/tests/htmlcov/_Volumes_workspace_python-progressbar__tox_py27_lib_python2_7_site-packages_progressbar_base_py.html +0 -86
  319. progressbar2-4.1.1/tests/htmlcov/_Volumes_workspace_python-progressbar__tox_py27_lib_python2_7_site-packages_progressbar_shortcuts_py.html +0 -76
  320. progressbar2-4.1.1/tests/htmlcov/_Volumes_workspace_python-progressbar__tox_py27_lib_python2_7_site-packages_progressbar_utils_py.html +0 -488
  321. progressbar2-4.1.1/tests/htmlcov/_Volumes_workspace_python-progressbar__tox_py27_lib_python2_7_site-packages_progressbar_widgets_py.html +0 -1138
  322. progressbar2-4.1.1/tests/htmlcov/_Volumes_workspace_python-progressbar__tox_py38_lib_python3_8_site-packages_progressbar___about___py.html +0 -90
  323. progressbar2-4.1.1/tests/htmlcov/_Volumes_workspace_python-progressbar__tox_py38_lib_python3_8_site-packages_progressbar___init___py.html +0 -153
  324. progressbar2-4.1.1/tests/htmlcov/_Volumes_workspace_python-progressbar__tox_py38_lib_python3_8_site-packages_progressbar_bar_py.html +0 -894
  325. progressbar2-4.1.1/tests/htmlcov/_Volumes_workspace_python-progressbar__tox_py38_lib_python3_8_site-packages_progressbar_base_py.html +0 -86
  326. progressbar2-4.1.1/tests/htmlcov/_Volumes_workspace_python-progressbar__tox_py38_lib_python3_8_site-packages_progressbar_shortcuts_py.html +0 -76
  327. progressbar2-4.1.1/tests/htmlcov/_Volumes_workspace_python-progressbar__tox_py38_lib_python3_8_site-packages_progressbar_utils_py.html +0 -488
  328. progressbar2-4.1.1/tests/htmlcov/_Volumes_workspace_python-progressbar__tox_py38_lib_python3_8_site-packages_progressbar_widgets_py.html +0 -1125
  329. progressbar2-4.1.1/tests/htmlcov/coverage_html.js +0 -604
  330. progressbar2-4.1.1/tests/htmlcov/d_18810ed2ef19928c___about___py.html +0 -95
  331. progressbar2-4.1.1/tests/htmlcov/d_18810ed2ef19928c___init___py.html +0 -146
  332. progressbar2-4.1.1/tests/htmlcov/d_18810ed2ef19928c_bar_py.html +0 -898
  333. progressbar2-4.1.1/tests/htmlcov/d_18810ed2ef19928c_base_py.html +0 -88
  334. progressbar2-4.1.1/tests/htmlcov/d_18810ed2ef19928c_shortcuts_py.html +0 -81
  335. progressbar2-4.1.1/tests/htmlcov/d_18810ed2ef19928c_utils_py.html +0 -505
  336. progressbar2-4.1.1/tests/htmlcov/d_18810ed2ef19928c_widgets_py.html +0 -1140
  337. progressbar2-4.1.1/tests/htmlcov/d_53776422c0a9f212___about___py.html +0 -95
  338. progressbar2-4.1.1/tests/htmlcov/d_53776422c0a9f212___init___py.html +0 -146
  339. progressbar2-4.1.1/tests/htmlcov/d_53776422c0a9f212_bar_py.html +0 -898
  340. progressbar2-4.1.1/tests/htmlcov/d_53776422c0a9f212_base_py.html +0 -88
  341. progressbar2-4.1.1/tests/htmlcov/d_53776422c0a9f212_shortcuts_py.html +0 -81
  342. progressbar2-4.1.1/tests/htmlcov/d_53776422c0a9f212_utils_py.html +0 -505
  343. progressbar2-4.1.1/tests/htmlcov/d_53776422c0a9f212_widgets_py.html +0 -1140
  344. progressbar2-4.1.1/tests/htmlcov/d_5b178ab2b5b862b9___about___py.html +0 -90
  345. progressbar2-4.1.1/tests/htmlcov/d_5b178ab2b5b862b9___init___py.html +0 -153
  346. progressbar2-4.1.1/tests/htmlcov/d_5b178ab2b5b862b9_bar_py.html +0 -894
  347. progressbar2-4.1.1/tests/htmlcov/d_5b178ab2b5b862b9_base_py.html +0 -86
  348. progressbar2-4.1.1/tests/htmlcov/d_5b178ab2b5b862b9_shortcuts_py.html +0 -76
  349. progressbar2-4.1.1/tests/htmlcov/d_5b178ab2b5b862b9_utils_py.html +0 -488
  350. progressbar2-4.1.1/tests/htmlcov/d_5b178ab2b5b862b9_widgets_py.html +0 -1125
  351. progressbar2-4.1.1/tests/htmlcov/d_61a71cd8cb75cfe5___about___py.html +0 -95
  352. progressbar2-4.1.1/tests/htmlcov/d_61a71cd8cb75cfe5___init___py.html +0 -146
  353. progressbar2-4.1.1/tests/htmlcov/d_61a71cd8cb75cfe5_bar_py.html +0 -898
  354. progressbar2-4.1.1/tests/htmlcov/d_61a71cd8cb75cfe5_base_py.html +0 -88
  355. progressbar2-4.1.1/tests/htmlcov/d_61a71cd8cb75cfe5_shortcuts_py.html +0 -81
  356. progressbar2-4.1.1/tests/htmlcov/d_61a71cd8cb75cfe5_utils_py.html +0 -505
  357. progressbar2-4.1.1/tests/htmlcov/d_61a71cd8cb75cfe5_widgets_py.html +0 -1140
  358. progressbar2-4.1.1/tests/htmlcov/d_63c73e8fa8c52c4f___about___py.html +0 -122
  359. progressbar2-4.1.1/tests/htmlcov/d_63c73e8fa8c52c4f___init___py.html +0 -173
  360. progressbar2-4.1.1/tests/htmlcov/d_63c73e8fa8c52c4f_bar_py.html +0 -898
  361. progressbar2-4.1.1/tests/htmlcov/d_63c73e8fa8c52c4f_base_py.html +0 -88
  362. progressbar2-4.1.1/tests/htmlcov/d_63c73e8fa8c52c4f_shortcuts_py.html +0 -81
  363. progressbar2-4.1.1/tests/htmlcov/d_63c73e8fa8c52c4f_utils_py.html +0 -505
  364. progressbar2-4.1.1/tests/htmlcov/d_63c73e8fa8c52c4f_widgets_py.html +0 -1140
  365. progressbar2-4.1.1/tests/htmlcov/d_a964a7e1adffd5da___about___py.html +0 -122
  366. progressbar2-4.1.1/tests/htmlcov/d_a964a7e1adffd5da___init___py.html +0 -173
  367. progressbar2-4.1.1/tests/htmlcov/d_a964a7e1adffd5da_bar_py.html +0 -925
  368. progressbar2-4.1.1/tests/htmlcov/d_a964a7e1adffd5da_base_py.html +0 -115
  369. progressbar2-4.1.1/tests/htmlcov/d_a964a7e1adffd5da_shortcuts_py.html +0 -108
  370. progressbar2-4.1.1/tests/htmlcov/d_a964a7e1adffd5da_utils_py.html +0 -532
  371. progressbar2-4.1.1/tests/htmlcov/d_a964a7e1adffd5da_widgets_py.html +0 -1167
  372. progressbar2-4.1.1/tests/htmlcov/favicon_32.png +0 -0
  373. progressbar2-4.1.1/tests/htmlcov/index.html +0 -144
  374. progressbar2-4.1.1/tests/htmlcov/jquery.ba-throttle-debounce.min.js +0 -9
  375. progressbar2-4.1.1/tests/htmlcov/jquery.hotkeys.js +0 -99
  376. progressbar2-4.1.1/tests/htmlcov/jquery.isonscreen.js +0 -53
  377. progressbar2-4.1.1/tests/htmlcov/jquery.min.js +0 -4
  378. progressbar2-4.1.1/tests/htmlcov/jquery.tablesorter.min.js +0 -2
  379. progressbar2-4.1.1/tests/htmlcov/keybd_closed.png +0 -0
  380. progressbar2-4.1.1/tests/htmlcov/keybd_open.png +0 -0
  381. progressbar2-4.1.1/tests/htmlcov/status.json +0 -1
  382. progressbar2-4.1.1/tests/htmlcov/style.css +0 -311
  383. progressbar2-4.1.1/tests/test_data.py +0 -21
  384. progressbar2-4.1.1/tests/test_monitor_progress.py +0 -243
  385. progressbar2-4.1.1/tests/test_multibar.py +0 -20
  386. progressbar2-4.1.1/tests/test_speed.py +0 -27
  387. progressbar2-4.1.1/tests/test_utils.py +0 -56
  388. {progressbar2-4.1.1 → progressbar2-4.3.0}/CHANGES.rst +0 -0
  389. {progressbar2-4.1.1 → progressbar2-4.3.0}/CONTRIBUTING.rst +0 -0
  390. {progressbar2-4.1.1 → progressbar2-4.3.0}/progressbar2.egg-info/dependency_links.txt +0 -0
  391. {progressbar2-4.1.1 → progressbar2-4.3.0}/requirements.txt +0 -0
  392. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/requirements.txt +0 -0
  393. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_data_transfer_bar.py +0 -0
  394. {progressbar2-4.1.1 → progressbar2-4.3.0}/tests/test_misc.py +0 -0
@@ -0,0 +1 @@
1
+ github: WoLpH
@@ -0,0 +1,8 @@
1
+ # Set to false to create a new comment instead of updating the app's first one
2
+ updateComment: true
3
+
4
+ # Use a custom string, or set to false to disable
5
+ before: "✨ Good work on this PR so far! ✨ Unfortunately, the [ build]() is failing as of . Here's the output:"
6
+
7
+ # Use a custom string, or set to false to disable
8
+ after: "I'm sure you can fix it! If you need help, don't hesitate to ask a maintainer of the project!"
@@ -0,0 +1,42 @@
1
+ name: "CodeQL"
2
+
3
+ on:
4
+ push:
5
+ branches: [ "develop" ]
6
+ pull_request:
7
+ branches: [ "develop" ]
8
+ schedule:
9
+ - cron: "24 21 * * 1"
10
+
11
+ jobs:
12
+ analyze:
13
+ name: Analyze
14
+ runs-on: ubuntu-latest
15
+ permissions:
16
+ actions: read
17
+ contents: read
18
+ security-events: write
19
+
20
+ strategy:
21
+ fail-fast: false
22
+ matrix:
23
+ language: [ python, javascript ]
24
+
25
+ steps:
26
+ - name: Checkout
27
+ uses: actions/checkout@v3
28
+
29
+ - name: Initialize CodeQL
30
+ uses: github/codeql-action/init@v2
31
+ with:
32
+ languages: ${{ matrix.language }}
33
+ queries: +security-and-quality
34
+
35
+ - name: Autobuild
36
+ uses: github/codeql-action/autobuild@v2
37
+ if: ${{ matrix.language == 'python' || matrix.language == 'javascript' }}
38
+
39
+ - name: Perform CodeQL Analysis
40
+ uses: github/codeql-action/analyze@v2
41
+ with:
42
+ category: "/language:${{ matrix.language }}"
@@ -0,0 +1,26 @@
1
+ name: tox
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+ timeout-minutes: 10
12
+ strategy:
13
+ matrix:
14
+ python-version: ['3.8', '3.9', '3.10', '3.11']
15
+
16
+ steps:
17
+ - uses: actions/checkout@v3
18
+ - name: Set up Python ${{ matrix.python-version }}
19
+ uses: actions/setup-python@v4
20
+ with:
21
+ python-version: ${{ matrix.python-version }}
22
+ - name: Install dependencies
23
+ run: |
24
+ python -m pip install --upgrade pip tox
25
+ - name: Test with tox
26
+ run: tox
@@ -0,0 +1,17 @@
1
+ name: Close stale issues and pull requests
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ schedule:
6
+ - cron: '0 0 * * *' # Run every day at midnight
7
+
8
+ jobs:
9
+ stale:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/stale@v8
13
+ with:
14
+ days-before-stale: 30
15
+ exempt-issue-labels: in-progress,help-wanted,pinned,security,enhancement
16
+ exempt-all-pr-assignees: true
17
+
@@ -0,0 +1,44 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+
5
+ # C extensions
6
+ *.so
7
+
8
+ # Distribution / packaging
9
+ .Python
10
+ env/
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ eggs/
15
+ lib/
16
+ lib64/
17
+ parts/
18
+ sdist/
19
+ var/
20
+ *.egg-info/
21
+ .installed.cfg
22
+ *.egg
23
+
24
+ # Installer logs
25
+ pip-log.txt
26
+ pip-delete-this-directory.txt
27
+
28
+ # Unit test / coverage reports
29
+ htmlcov/
30
+ .tox/
31
+ .coverage
32
+ .cache
33
+ nosetests.xml
34
+ coverage.xml
35
+
36
+ # Translations
37
+ *.mo
38
+ *.pot
39
+
40
+ # Django stuff:
41
+ *.log
42
+
43
+ # Sphinx documentation
44
+ docs/_build/
@@ -0,0 +1,14 @@
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: v2.4.0
6
+ hooks:
7
+ - id: trailing-whitespace
8
+ - id: check-yaml
9
+ - id: check-added-large-files
10
+
11
+ - repo: https://gitlab.com/pycqa/flake8
12
+ rev: 3.7.9
13
+ hooks:
14
+ - id: flake8
@@ -0,0 +1,15 @@
1
+ #### Description
2
+
3
+ Description of the problem
4
+
5
+ #### Code
6
+
7
+ If applicable, code to reproduce the issue and/or the stacktrace of the issue
8
+
9
+ #### Versions
10
+
11
+ - Python version: `import sys; print(sys.version)`
12
+ - Python distribution/environment: CPython/Anaconda/IPython/IDLE
13
+ - Operating System: Windows 10, Ubuntu Linux, etc.
14
+ - Package version: `import progressbar; print(progressbar.__version__)`
15
+
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015, Rick van Hattem (Wolph)
1
+ Copyright (c) 2022, Rick van Hattem (Wolph)
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
@@ -1,3 +1,6 @@
1
+ recursive-exclude *.pyc
2
+ recursive-exclude *.pyo
3
+ recursive-exclude *.html
1
4
  include AUTHORS.rst
2
5
  include CHANGES.rst
3
6
  include CONTRIBUTING.rst
@@ -7,6 +10,3 @@ include examples.py
7
10
  include requirements.txt
8
11
  include Makefile
9
12
  include pytest.ini
10
- recursive-include tests *
11
- recursive-exclude *.pyc
12
- recursive-exclude *.pyo
@@ -24,7 +24,7 @@ clean-pyc:
24
24
  find . -name '*~' -exec rm -f {} +
25
25
 
26
26
  lint:
27
- flake8 progressbar tests
27
+ ruff progressbar tests
28
28
 
29
29
  test:
30
30
  py.test
@@ -46,10 +46,6 @@ docs:
46
46
  $(MAKE) -C docs html
47
47
  open docs/_build/html/index.html
48
48
 
49
- release: clean
50
- python setup.py register || true
51
- python setup.py sdist upload build_sphinx upload_sphinx
52
-
53
- sdist: clean
54
- python setup.py sdist
49
+ build:
50
+ python -m build
55
51
  ls -l dist
@@ -1,25 +1,83 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: progressbar2
3
- Version: 4.1.1
3
+ Version: 4.3.0
4
4
  Summary: A Python Progressbar library to provide visual (yet text based) progress to long running operations.
5
- Home-page: https://github.com/WoLpH/python-progressbar
6
- Author: Rick van Hattem (Wolph)
7
- Author-email: wolph@wol.ph
8
- License: BSD
9
- Keywords: Python Progressbar
5
+ Author-email: "Rick van Hattem (Wolph)" <wolph@wol.ph>
6
+ License: BSD-3-Clause
7
+ Project-URL: bugs, https://github.com/wolph/python-progressbar/issues
8
+ Project-URL: documentation, https://progressbar-2.readthedocs.io/en/latest/
9
+ Project-URL: repository, https://github.com/wolph/python-progressbar/
10
+ Keywords: REPL,animated,bar,color,console,duration,efficient,elapsed,eta,feedback,live,meter,monitor,monitoring,multi-threaded,progress,progress-bar,progressbar,progressmeter,python,rate,simple,speed,spinner,stats,terminal,throughput,time,visual
11
+ Classifier: Development Status :: 5 - Production/Stable
10
12
  Classifier: Development Status :: 6 - Mature
13
+ Classifier: Environment :: Console
14
+ Classifier: Environment :: MacOS X
15
+ Classifier: Environment :: Other Environment
16
+ Classifier: Environment :: Win32 (MS Windows)
17
+ Classifier: Environment :: X11 Applications
18
+ Classifier: Framework :: IPython
19
+ Classifier: Framework :: Jupyter
11
20
  Classifier: Intended Audience :: Developers
21
+ Classifier: Intended Audience :: Education
22
+ Classifier: Intended Audience :: End Users/Desktop
23
+ Classifier: Intended Audience :: Other Audience
24
+ Classifier: Intended Audience :: System Administrators
12
25
  Classifier: License :: OSI Approved :: BSD License
13
26
  Classifier: Natural Language :: English
14
- Classifier: Programming Language :: Python :: 3.7
27
+ Classifier: Operating System :: MacOS :: MacOS X
28
+ Classifier: Operating System :: MacOS
29
+ Classifier: Operating System :: Microsoft :: MS-DOS
30
+ Classifier: Operating System :: Microsoft :: Windows
31
+ Classifier: Operating System :: Microsoft
32
+ Classifier: Operating System :: POSIX :: BSD :: FreeBSD
33
+ Classifier: Operating System :: POSIX :: BSD
34
+ Classifier: Operating System :: POSIX :: Linux
35
+ Classifier: Operating System :: POSIX :: SunOS/Solaris
36
+ Classifier: Operating System :: POSIX
37
+ Classifier: Operating System :: Unix
38
+ Classifier: Programming Language :: Python :: 3 :: Only
39
+ Classifier: Programming Language :: Python :: 3
40
+ Classifier: Programming Language :: Python :: 3.10
41
+ Classifier: Programming Language :: Python :: 3.11
42
+ Classifier: Programming Language :: Python :: 3.12
15
43
  Classifier: Programming Language :: Python :: 3.8
16
44
  Classifier: Programming Language :: Python :: 3.9
17
- Classifier: Programming Language :: Python :: 3.10
45
+ Classifier: Programming Language :: Python :: Implementation :: IronPython
18
46
  Classifier: Programming Language :: Python :: Implementation :: PyPy
19
- Requires-Python: >=3.7.0
47
+ Classifier: Programming Language :: Python :: Implementation
48
+ Classifier: Programming Language :: Python
49
+ Classifier: Programming Language :: Unix Shell
50
+ Classifier: Topic :: Desktop Environment
51
+ Classifier: Topic :: Education :: Computer Aided Instruction (CAI)
52
+ Classifier: Topic :: Education :: Testing
53
+ Classifier: Topic :: Office/Business
54
+ Classifier: Topic :: Other/Nonlisted Topic
55
+ Classifier: Topic :: Software Development :: Build Tools
56
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
57
+ Classifier: Topic :: Software Development :: Libraries
58
+ Classifier: Topic :: Software Development :: Pre-processors
59
+ Classifier: Topic :: Software Development :: User Interfaces
60
+ Classifier: Topic :: System :: Installation/Setup
61
+ Classifier: Topic :: System :: Logging
62
+ Classifier: Topic :: System :: Monitoring
63
+ Classifier: Topic :: System :: Shells
64
+ Classifier: Topic :: Terminals
65
+ Classifier: Topic :: Utilities
66
+ Requires-Python: >=3.8
67
+ Description-Content-Type: text/x-rst
68
+ License-File: LICENSE
69
+ Requires-Dist: python-utils>=3.8.1
20
70
  Provides-Extra: docs
71
+ Requires-Dist: sphinx>=1.8.5; extra == "docs"
72
+ Requires-Dist: sphinx-autodoc-typehints>=1.6.0; extra == "docs"
21
73
  Provides-Extra: tests
22
- License-File: LICENSE
74
+ Requires-Dist: dill>=0.3.6; extra == "tests"
75
+ Requires-Dist: flake8>=3.7.7; extra == "tests"
76
+ Requires-Dist: freezegun>=0.3.11; extra == "tests"
77
+ Requires-Dist: pytest-cov>=2.6.1; extra == "tests"
78
+ Requires-Dist: pytest-mypy; extra == "tests"
79
+ Requires-Dist: pytest>=4.6.9; extra == "tests"
80
+ Requires-Dist: sphinx>=1.8.5; extra == "tests"
23
81
 
24
82
  ##############################################################################
25
83
  Text progress bar library for Python.
@@ -95,13 +153,19 @@ The progressbar module is very easy to use, yet very powerful. It will also
95
153
  automatically enable features like auto-resizing when the system supports it.
96
154
 
97
155
  ******************************************************************************
98
- Known issues
156
+ Security contact information
99
157
  ******************************************************************************
100
158
 
101
- Due to limitations in both the IDLE shell and the Jetbrains (Pycharm) shells this progressbar cannot function properly within those.
159
+ To report a security vulnerability, please use the
160
+ `Tidelift security contact <https://tidelift.com/security>`_.
161
+ Tidelift will coordinate the fix and disclosure.
102
162
 
163
+ ******************************************************************************
164
+ Known issues
165
+ ******************************************************************************
166
+
167
+ - The Jetbrains (PyCharm, etc) editors work out of the box, but for more advanced features such as the `MultiBar` support you will need to enable the "Enable terminal in output console" checkbox in the Run dialog.
103
168
  - The IDLE editor doesn't support these types of progress bars at all: https://bugs.python.org/issue23220
104
- - The Jetbrains (Pycharm) editors partially work but break with fast output. As a workaround make sure you only write to either `sys.stdout` (regular print) or `sys.stderr` at the same time. If you do plan to use both, make sure you wait about ~200 milliseconds for the next output or it will break regularly. Linked issue: https://github.com/WoLpH/python-progressbar/issues/115
105
169
  - Jupyter notebooks buffer `sys.stdout` which can cause mixed output. This issue can be resolved easily using: `import sys; sys.stdout.flush()`. Linked issue: https://github.com/WoLpH/python-progressbar/issues/173
106
170
 
107
171
  ******************************************************************************
@@ -175,6 +239,38 @@ In most cases the following will work as well, as long as you initialize the
175
239
  logging.error('Got %d', i)
176
240
  time.sleep(0.2)
177
241
 
242
+ Multiple (threaded) progressbars
243
+ ==============================================================================
244
+
245
+ .. code:: python
246
+
247
+ import random
248
+ import threading
249
+ import time
250
+
251
+ import progressbar
252
+
253
+ BARS = 5
254
+ N = 50
255
+
256
+
257
+ def do_something(bar):
258
+ for i in bar(range(N)):
259
+ # Sleep up to 0.1 seconds
260
+ time.sleep(random.random() * 0.1)
261
+
262
+ # print messages at random intervals to show how extra output works
263
+ if random.random() > 0.9:
264
+ bar.print('random message for bar', bar, i)
265
+
266
+
267
+ with progressbar.MultiBar() as multibar:
268
+ for i in range(BARS):
269
+ # Get a progressbar
270
+ bar = multibar[f'Thread label here {i}']
271
+ # Create a thread and pass the progressbar
272
+ threading.Thread(target=do_something, args=(bar,)).start()
273
+
178
274
  Context wrapper
179
275
  ==============================================================================
180
276
  .. code:: python
@@ -261,55 +357,72 @@ Bar with wide Chinese (or other multibyte) characters
261
357
  for i in bar(range(10)):
262
358
  time.sleep(0.1)
263
359
 
264
- Showing multiple (threaded) independent progress bars in parallel
360
+ Showing multiple independent progress bars in parallel
265
361
  ==============================================================================
266
362
 
267
- While this method works fine and will continue to work fine, a smarter and
268
- fully automatic version of this is currently being made:
269
- https://github.com/WoLpH/python-progressbar/issues/176
270
-
271
363
  .. code:: python
272
364
 
273
365
  import random
274
366
  import sys
275
- import threading
276
367
  import time
277
368
 
278
369
  import progressbar
279
370
 
280
- output_lock = threading.Lock()
371
+ BARS = 5
372
+ N = 100
281
373
 
374
+ # Construct the list of progress bars with the `line_offset` so they draw
375
+ # below each other
376
+ bars = []
377
+ for i in range(BARS):
378
+ bars.append(
379
+ progressbar.ProgressBar(
380
+ max_value=N,
381
+ # We add 1 to the line offset to account for the `print_fd`
382
+ line_offset=i + 1,
383
+ max_error=False,
384
+ )
385
+ )
282
386
 
283
- class LineOffsetStreamWrapper:
284
- UP = '\033[F'
285
- DOWN = '\033[B'
387
+ # Create a file descriptor for regular printing as well
388
+ print_fd = progressbar.LineOffsetStreamWrapper(sys.stdout, 0)
286
389
 
287
- def __init__(self, lines=0, stream=sys.stderr):
288
- self.stream = stream
289
- self.lines = lines
390
+ # The progress bar updates, normally you would do something useful here
391
+ for i in range(N * BARS):
392
+ time.sleep(0.005)
290
393
 
291
- def write(self, data):
292
- with output_lock:
293
- self.stream.write(self.UP * self.lines)
294
- self.stream.write(data)
295
- self.stream.write(self.DOWN * self.lines)
296
- self.stream.flush()
394
+ # Increment one of the progress bars at random
395
+ bars[random.randrange(0, BARS)].increment()
297
396
 
298
- def __getattr__(self, name):
299
- return getattr(self.stream, name)
397
+ # Print a status message to the `print_fd` below the progress bars
398
+ print(f'Hi, we are at update {i+1} of {N * BARS}', file=print_fd)
300
399
 
400
+ # Cleanup the bars
401
+ for bar in bars:
402
+ bar.finish()
301
403
 
302
- bars = []
303
- for i in range(5):
304
- bars.append(
305
- progressbar.ProgressBar(
306
- fd=LineOffsetStreamWrapper(i),
307
- max_value=1000,
308
- )
309
- )
404
+ # Add a newline to make sure the next print starts on a new line
405
+ print()
406
+
407
+ ******************************************************************************
310
408
 
311
- if i:
312
- print('Reserve a line for the progressbar')
409
+ Naturally we can do this from separate threads as well:
410
+
411
+ .. code:: python
412
+
413
+ import random
414
+ import threading
415
+ import time
416
+
417
+ import progressbar
418
+
419
+ BARS = 5
420
+ N = 100
421
+
422
+ # Create the bars with the given line offset
423
+ bars = []
424
+ for line_offset in range(BARS):
425
+ bars.append(progressbar.ProgressBar(line_offset=line_offset, max_value=N))
313
426
 
314
427
 
315
428
  class Worker(threading.Thread):
@@ -318,10 +431,12 @@ https://github.com/WoLpH/python-progressbar/issues/176
318
431
  self.bar = bar
319
432
 
320
433
  def run(self):
321
- for i in range(1000):
322
- time.sleep(random.random() / 100)
434
+ for i in range(N):
435
+ time.sleep(random.random() / 25)
323
436
  self.bar.update(i)
324
437
 
325
438
 
326
439
  for bar in bars:
327
440
  Worker(bar).start()
441
+
442
+ print()