Hello community, here is the log from the commit of package python-tqdm for openSUSE:Factory checked in at 2019-11-22 10:22:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tqdm (Old) and /work/SRC/openSUSE:Factory/.python-tqdm.new.26869 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tqdm" Fri Nov 22 10:22:10 2019 rev:24 rq:747340 version:4.38.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tqdm/python-tqdm.changes 2019-09-30 15:54:01.390075011 +0200 +++ /work/SRC/openSUSE:Factory/.python-tqdm.new.26869/python-tqdm.changes 2019-11-22 10:22:12.357327339 +0100 @@ -1,0 +2,39 @@ +Sat Nov 9 14:36:01 UTC 2019 - Arun Persaud <[email protected]> + +- update to version 4.38.0: + * support lock_args for e.g. non-blocking intermediate writes (#838 + -> #839) + + use self.refresh() in more places + + add and update performance tests + + support args for TqdmDefaultWriteLock.acquire() + * fix colorama on win (#678, #764) + * framework updates + + CI cleanup + move to stages (check/test/deploy) + auto deploy notes + deploy only on parent repo + separate docker deploy + + update documentation sync/generation + * update examples + * update documentation + * add and update tests + * misc tidy and linting + +- changes from version 4.37.0: + * potential future pandas fix (#824) + * better unicode widechar support (#803 -> #410, #805) + * fix example/tqdm_wget unknown total (#826) + * add stacklevel=2 to warnings (#821) + * misc framework updates + + snapcraft version fix + + update issue/pr templates (#830) + + update unit tests + * misc documentation updates + + update parallel (multiprocessing, ThreadPoolExecutor) example + (#407) + + add slides, video images + + add CII Best Practices badge + + add repology badge + + update badge icons + +------------------------------------------------------------------- Old: ---- tqdm-4.36.1.tar.gz New: ---- tqdm-4.38.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tqdm.spec ++++++ --- /var/tmp/diff_new_pack.kn6VS6/_old 2019-11-22 10:22:15.393326864 +0100 +++ /var/tmp/diff_new_pack.kn6VS6/_new 2019-11-22 10:22:15.393326864 +0100 @@ -28,11 +28,10 @@ %bcond_with test %endif Name: python-tqdm%{suffix} -Version: 4.36.1 +Version: 4.38.0 Release: 0 Summary: An extensible progress meter License: MPL-2.0 AND MIT -Group: Development/Languages/Python URL: https://github.com/tqdm/tqdm Source: https://files.pythonhosted.org/packages/source/t/tqdm/tqdm-%{version}.tar.gz BuildRequires: %{python_module setuptools} ++++++ tqdm-4.36.1.tar.gz -> tqdm-4.38.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/Makefile new/tqdm-4.38.0/Makefile --- old/tqdm-4.36.1/Makefile 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/Makefile 2019-10-31 20:31:33.000000000 +0100 @@ -154,7 +154,7 @@ @make pypi snap: - @make snapcraft.yaml + @make -B snapcraft.yaml snapcraft docker: @make .dockerignore diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/PKG-INFO new/tqdm-4.38.0/PKG-INFO --- old/tqdm-4.36.1/PKG-INFO 2019-09-19 04:32:20.000000000 +0200 +++ new/tqdm-4.38.0/PKG-INFO 2019-11-09 02:02:45.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: tqdm -Version: 4.36.1 +Version: 4.38.0 Summary: Fast, Extensible Progress Meter Home-page: https://github.com/tqdm/tqdm Maintainer: tqdm developers @@ -35,9 +35,7 @@ ``tqdm(xrange(N))``. |Screenshot| - REPL: `ptpython <https://github.com/jonathanslenders/ptpython>`__ | - PyData London: `video <https://tqdm.github.io/video>`__ - / `slides <https://tqdm.github.io/PyData2019/slides.html>`__ + |Video| |Slides| It can also be executed as a module with pipes: @@ -126,6 +124,16 @@ docker pull tqdm/tqdm docker run -i --rm tqdm/tqdm --help + Other + ~~~~~ + + There are other (unofficial) places where ``tqdm`` may be downloaded, particularly for CLI use: + + |Repology| + + .. |Repology| image:: https://repology.org/badge/tiny-repos/python:tqdm.svg + :target: https://repology.org/project/python:tqdm/versions + Changelog --------- @@ -284,7 +292,7 @@ ``tqdm(zip(a, b))`` should be replaced with ``zip(tqdm(a), b)`` or even ``zip(tqdm(a), tqdm(b))``. - `Hanging pipes in python2 <https://github.com/tqdm/tqdm/issues/359>`__: - when using ``tqdm`` on the CLI, you may need to use python 3.5+ for correct + when using ``tqdm`` on the CLI, you may need to use Python 3.5+ for correct buffering. If you come across any other difficulties, browse and file |GitHub-Issues|. @@ -406,6 +414,9 @@ If (default: None) and ``file`` is unspecified, bytes will be written in Python 2. If ``True`` will also write bytes. In all other cases will default to unicode. + * lock_args : tuple, optional + Passed to ``refresh`` for intermediate output + (initialisation, iterating, and updating). Extra CLI Options ~~~~~~~~~~~~~~~~~ @@ -460,7 +471,18 @@ """Clear current bar display.""" def refresh(self): - """Force refresh the display of this bar.""" + """ + Force refresh the display of this bar. + + Parameters + ---------- + nolock : bool, optional + If ``True``, does not lock. + If [default: ``False``]: calls ``acquire()`` on internal lock. + lock_args : tuple, optional + Passed to internal lock's ``acquire()``. + If specified, will only ``display()`` if ``acquire()`` returns ``True``. + """ def unpause(self): """Restart tqdm timer from last print time.""" @@ -654,7 +676,8 @@ For manual control over positioning (e.g. for multi-processing use), you may specify ``position=n`` where ``n=0`` for the outermost bar, - ``n=1`` for the next, and so on: + ``n=1`` for the next, and so on. However, it's best to check if `tqdm` can work + without manual `position` first. .. code:: python @@ -673,11 +696,10 @@ if __name__ == '__main__': freeze_support() # for Windows support - p = Pool(len(L), initializer=tqdm.set_lock, initargs=(tqdm.get_lock(),)) + p = Pool(initializer=tqdm.set_lock, initargs=(tqdm.get_lock(),)) p.map(progresser, L) - Note that in python 3, threads do not require manual positioning, - and ``tqdm.write`` is safe to use: + Note that in Python 3, ``tqdm.write`` is thread-safe: .. code:: python @@ -1013,7 +1035,7 @@ Contributions ------------- - |GitHub-Commits| |GitHub-Issues| |GitHub-PRs| |OpenHub-Status| |GitHub-Contributions| + |GitHub-Commits| |GitHub-Issues| |GitHub-PRs| |OpenHub-Status| |GitHub-Contributions| |CII Best Practices| All source code is hosted on `GitHub <https://github.com/tqdm/tqdm>`__. Contributions are welcome. @@ -1060,6 +1082,10 @@ .. |Logo| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/logo.gif .. |Screenshot| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm.gif + .. |Video| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/video.jpg + :target: https://tqdm.github.io/video + .. |Slides| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/slides.jpg + :target: https://tqdm.github.io/PyData2019/slides.html .. |Build-Status| image:: https://img.shields.io/travis/tqdm/tqdm/master.svg?logo=travis :target: https://travis-ci.org/tqdm/tqdm .. |Coverage-Status| image:: https://coveralls.io/repos/tqdm/tqdm/badge.svg?branch=master @@ -1068,6 +1094,8 @@ :target: https://codecov.io/gh/tqdm/tqdm .. |Codacy-Grade| image:: https://api.codacy.com/project/badge/Grade/3f965571598f44549c7818f29cdcf177 :target: https://www.codacy.com/app/tqdm/tqdm/dashboard + .. |CII Best Practices| image:: https://bestpractices.coreinfrastructure.org/projects/3264/badge + :target: https://bestpractices.coreinfrastructure.org/projects/3264 .. |GitHub-Status| image:: https://img.shields.io/github/tag/tqdm/tqdm.svg?maxAge=86400&logo=github&logoColor=white :target: https://github.com/tqdm/tqdm/releases .. |GitHub-Forks| image:: https://img.shields.io/github/forks/tqdm/tqdm.svg?logo=github&logoColor=white @@ -1086,7 +1114,7 @@ :target: https://github.com/tqdm/tqdm/pulse .. |Gift-Casper| image:: https://img.shields.io/badge/dynamic/json.svg?color=ff69b4&label=gifts%20received&prefix=%C2%A3&query=%24..sum&url=https%3A%2F%2Fcaspersci.uk.to%2Fgifts.json :target: https://caspersci.uk.to/donate - .. |PyPI-Status| image:: https://img.shields.io/pypi/v/tqdm.svg + .. |PyPI-Status| image:: https://img.shields.io/pypi/v/tqdm.svg?logo=PyPI&logoColor=white :target: https://pypi.org/project/tqdm .. |PyPI-Downloads| image:: https://img.shields.io/pypi/dm/tqdm.svg?label=pypi%20downloads&logo=python&logoColor=white :target: https://pypi.org/project/tqdm @@ -1096,7 +1124,7 @@ :target: https://anaconda.org/conda-forge/tqdm .. |Snapcraft| image:: https://img.shields.io/badge/snap-install-82BEA0.svg?logo=snapcraft :target: https://snapcraft.io/tqdm - .. |Docker| image:: https://img.shields.io/badge/docker-pull-blue.svg?logo=docker + .. |Docker| image:: https://img.shields.io/badge/docker-pull-blue.svg?logo=docker&logoColor=white :target: https://hub.docker.com/r/tqdm/tqdm .. |Libraries-Rank| image:: https://img.shields.io/librariesio/sourcerank/pypi/tqdm.svg?logo=koding&logoColor=white :target: https://libraries.io/pypi/tqdm diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/README.rst new/tqdm-4.38.0/README.rst --- old/tqdm-4.36.1/README.rst 2019-09-19 04:32:19.000000000 +0200 +++ new/tqdm-4.38.0/README.rst 2019-11-09 01:51:35.000000000 +0100 @@ -27,9 +27,7 @@ ``tqdm(xrange(N))``. |Screenshot| - REPL: `ptpython <https://github.com/jonathanslenders/ptpython>`__ | - PyData London: `video <https://tqdm.github.io/video>`__ - / `slides <https://tqdm.github.io/PyData2019/slides.html>`__ + |Video| |Slides| It can also be executed as a module with pipes: @@ -118,6 +116,16 @@ docker pull tqdm/tqdm docker run -i --rm tqdm/tqdm --help +Other +~~~~~ + +There are other (unofficial) places where ``tqdm`` may be downloaded, particularly for CLI use: + +|Repology| + +.. |Repology| image:: https://repology.org/badge/tiny-repos/python:tqdm.svg + :target: https://repology.org/project/python:tqdm/versions + Changelog --------- @@ -276,7 +284,7 @@ ``tqdm(zip(a, b))`` should be replaced with ``zip(tqdm(a), b)`` or even ``zip(tqdm(a), tqdm(b))``. - `Hanging pipes in python2 <https://github.com/tqdm/tqdm/issues/359>`__: - when using ``tqdm`` on the CLI, you may need to use python 3.5+ for correct + when using ``tqdm`` on the CLI, you may need to use Python 3.5+ for correct buffering. If you come across any other difficulties, browse and file |GitHub-Issues|. @@ -398,6 +406,9 @@ If (default: None) and ``file`` is unspecified, bytes will be written in Python 2. If ``True`` will also write bytes. In all other cases will default to unicode. +* lock_args : tuple, optional + Passed to ``refresh`` for intermediate output + (initialisation, iterating, and updating). Extra CLI Options ~~~~~~~~~~~~~~~~~ @@ -452,7 +463,18 @@ """Clear current bar display.""" def refresh(self): - """Force refresh the display of this bar.""" + """ + Force refresh the display of this bar. + + Parameters + ---------- + nolock : bool, optional + If ``True``, does not lock. + If [default: ``False``]: calls ``acquire()`` on internal lock. + lock_args : tuple, optional + Passed to internal lock's ``acquire()``. + If specified, will only ``display()`` if ``acquire()`` returns ``True``. + """ def unpause(self): """Restart tqdm timer from last print time.""" @@ -646,7 +668,8 @@ For manual control over positioning (e.g. for multi-processing use), you may specify ``position=n`` where ``n=0`` for the outermost bar, -``n=1`` for the next, and so on: +``n=1`` for the next, and so on. However, it's best to check if `tqdm` can work +without manual `position` first. .. code:: python @@ -665,11 +688,10 @@ if __name__ == '__main__': freeze_support() # for Windows support - p = Pool(len(L), initializer=tqdm.set_lock, initargs=(tqdm.get_lock(),)) + p = Pool(initializer=tqdm.set_lock, initargs=(tqdm.get_lock(),)) p.map(progresser, L) -Note that in python 3, threads do not require manual positioning, -and ``tqdm.write`` is safe to use: +Note that in Python 3, ``tqdm.write`` is thread-safe: .. code:: python @@ -1005,7 +1027,7 @@ Contributions ------------- -|GitHub-Commits| |GitHub-Issues| |GitHub-PRs| |OpenHub-Status| |GitHub-Contributions| +|GitHub-Commits| |GitHub-Issues| |GitHub-PRs| |OpenHub-Status| |GitHub-Contributions| |CII Best Practices| All source code is hosted on `GitHub <https://github.com/tqdm/tqdm>`__. Contributions are welcome. @@ -1052,6 +1074,10 @@ .. |Logo| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/logo.gif .. |Screenshot| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm.gif +.. |Video| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/video.jpg + :target: https://tqdm.github.io/video +.. |Slides| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/slides.jpg + :target: https://tqdm.github.io/PyData2019/slides.html .. |Build-Status| image:: https://img.shields.io/travis/tqdm/tqdm/master.svg?logo=travis :target: https://travis-ci.org/tqdm/tqdm .. |Coverage-Status| image:: https://coveralls.io/repos/tqdm/tqdm/badge.svg?branch=master @@ -1060,6 +1086,8 @@ :target: https://codecov.io/gh/tqdm/tqdm .. |Codacy-Grade| image:: https://api.codacy.com/project/badge/Grade/3f965571598f44549c7818f29cdcf177 :target: https://www.codacy.com/app/tqdm/tqdm/dashboard +.. |CII Best Practices| image:: https://bestpractices.coreinfrastructure.org/projects/3264/badge + :target: https://bestpractices.coreinfrastructure.org/projects/3264 .. |GitHub-Status| image:: https://img.shields.io/github/tag/tqdm/tqdm.svg?maxAge=86400&logo=github&logoColor=white :target: https://github.com/tqdm/tqdm/releases .. |GitHub-Forks| image:: https://img.shields.io/github/forks/tqdm/tqdm.svg?logo=github&logoColor=white @@ -1078,7 +1106,7 @@ :target: https://github.com/tqdm/tqdm/pulse .. |Gift-Casper| image:: https://img.shields.io/badge/dynamic/json.svg?color=ff69b4&label=gifts%20received&prefix=%C2%A3&query=%24..sum&url=https%3A%2F%2Fcaspersci.uk.to%2Fgifts.json :target: https://caspersci.uk.to/donate -.. |PyPI-Status| image:: https://img.shields.io/pypi/v/tqdm.svg +.. |PyPI-Status| image:: https://img.shields.io/pypi/v/tqdm.svg?logo=PyPI&logoColor=white :target: https://pypi.org/project/tqdm .. |PyPI-Downloads| image:: https://img.shields.io/pypi/dm/tqdm.svg?label=pypi%20downloads&logo=python&logoColor=white :target: https://pypi.org/project/tqdm @@ -1088,7 +1116,7 @@ :target: https://anaconda.org/conda-forge/tqdm .. |Snapcraft| image:: https://img.shields.io/badge/snap-install-82BEA0.svg?logo=snapcraft :target: https://snapcraft.io/tqdm -.. |Docker| image:: https://img.shields.io/badge/docker-pull-blue.svg?logo=docker +.. |Docker| image:: https://img.shields.io/badge/docker-pull-blue.svg?logo=docker&logoColor=white :target: https://hub.docker.com/r/tqdm/tqdm .. |Libraries-Rank| image:: https://img.shields.io/librariesio/sourcerank/pypi/tqdm.svg?logo=koding&logoColor=white :target: https://libraries.io/pypi/tqdm diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/examples/parallel_bars.py new/tqdm-4.38.0/examples/parallel_bars.py --- old/tqdm-4.36.1/examples/parallel_bars.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/examples/parallel_bars.py 2019-11-09 01:50:41.000000000 +0100 @@ -1,38 +1,44 @@ from __future__ import print_function from time import sleep from tqdm import tqdm, trange +from random import random from multiprocessing import Pool, freeze_support from concurrent.futures import ThreadPoolExecutor +from threading import RLock from functools import partial import sys +NUM_SUBITERS = 9 +PY2 = sys.version_info[:1] <= (2,) -L = list(range(9))[::-1] - -def progresser(n, auto_position=False): - interval = 0.001 / (len(L) - n + 2) +def progresser(n, auto_position=True, write_safe=False, blocking=True): + interval = random() * 0.002 / (NUM_SUBITERS - n + 2) total = 5000 text = "#{}, est. {:<04.2}s".format(n, interval * total) - for _ in tqdm(range(total), desc=text, position=None if auto_position else n): + for _ in trange(total, desc=text, + lock_args=None if blocking else (False,), + position=None if auto_position else n): sleep(interval) # NB: may not clear instances with higher `position` upon completion # since this worker may not know about other bars #796 - if auto_position: + if write_safe: # we think we know about other bars (currently only py3 threading) if n == 6: tqdm.write("n == 6 completed") -if sys.version_info[:1] > (2,): - progresser_thread = partial(progresser, auto_position=True) -else: - progresser_thread = progresser - if __name__ == '__main__': freeze_support() # for Windows support + L = list(range(NUM_SUBITERS))[::-1] + + print("Manual nesting") + for i in trange(16, desc="1"): + for _ in trange(16, desc="2 @ %d" % i, leave=i % 2): + sleep(0.01) + print("Multi-processing") - p = Pool(len(L), initializer=tqdm.set_lock, initargs=(tqdm.get_lock(),)) + p = Pool(initializer=tqdm.set_lock, initargs=(tqdm.get_lock(),)) p.map(progresser, L) # unfortunately need ncols @@ -41,10 +47,9 @@ ncols = t.ncols or 80 print(("{msg:<{ncols}}").format(msg="Multi-threading", ncols=ncols)) - with ThreadPoolExecutor(4) as p: + # explicitly set just threading lock for nonblocking progress + tqdm.set_lock(RLock()) + with ThreadPoolExecutor() as p: + progresser_thread = partial( + progresser, write_safe=not PY2, blocking=False) p.map(progresser_thread, L) - - print("Manual nesting") - for i in trange(16, desc="1"): - for _ in trange(16, desc="2 @ %d" % i, leave=i % 2): - sleep(0.01) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/examples/tqdm_wget.py new/tqdm-4.38.0/examples/tqdm_wget.py --- old/tqdm-4.36.1/examples/tqdm_wget.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/examples/tqdm_wget.py 2019-10-31 17:49:57.000000000 +0100 @@ -48,9 +48,10 @@ bsize : int, optional Size of each block (in tqdm units) [default: 1]. tsize : int, optional - Total size (in tqdm units). If [default: None] remains unchanged. + Total size (in tqdm units). If [default: None] or -1, + remains unchanged. """ - if tsize is not None: + if tsize not in (None, -1): t.total = tsize t.update((b - last_b[0]) * bsize) last_b[0] = b diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/setup.cfg new/tqdm-4.38.0/setup.cfg --- old/tqdm-4.36.1/setup.cfg 2019-09-19 04:32:20.000000000 +0200 +++ new/tqdm-4.38.0/setup.cfg 2019-11-09 02:02:45.000000000 +0100 @@ -2,7 +2,7 @@ universal = 1 [flake8] -ignore = W503,W504 +ignore = W503,W504,E722 max_line_length = 80 exclude = .asv,.tox,.ipynb_checkpoints,build,dist,.git,__pycache__ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tox.ini new/tqdm-4.38.0/tox.ini --- old/tqdm-4.36.1/tox.ini 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tox.ini 2019-11-09 01:50:41.000000000 +0100 @@ -77,7 +77,7 @@ [testenv:flake8] deps = flake8 commands = - flake8 -j 8 --count --statistics --exit-zero . + flake8 -j 8 --count --statistics . [testenv:setup.py] deps = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/__init__.py new/tqdm-4.38.0/tqdm/__init__.py --- old/tqdm-4.36.1/tqdm/__init__.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/__init__.py 2019-10-31 17:49:57.000000000 +0100 @@ -24,7 +24,7 @@ from warnings import warn warn("This function will be removed in tqdm==5.0.0\n" "Please use `tqdm.notebook.tqdm` instead of `tqdm.tqdm_notebook`", - TqdmDeprecationWarning) + TqdmDeprecationWarning, stacklevel=2) return _tqdm_notebook(*args, **kwargs) @@ -36,5 +36,5 @@ from .notebook import trange as _tnrange from warnings import warn warn("Please use `tqdm.notebook.trange` instead of `tqdm.tnrange`", - TqdmDeprecationWarning) + TqdmDeprecationWarning, stacklevel=2) return _tnrange(*args, **kwargs) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/_main.py new/tqdm-4.38.0/tqdm/_main.py --- old/tqdm-4.36.1/tqdm/_main.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/_main.py 2019-10-31 17:49:57.000000000 +0100 @@ -4,4 +4,4 @@ from warnings import warn warn("This function will be removed in tqdm==5.0.0\n" "Please use `tqdm.cli.*` instead of `tqdm._main.*`", - TqdmDeprecationWarning) + TqdmDeprecationWarning, stacklevel=2) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/_monitor.py new/tqdm-4.38.0/tqdm/_monitor.py --- old/tqdm-4.36.1/tqdm/_monitor.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/_monitor.py 2019-10-31 17:49:57.000000000 +0100 @@ -93,7 +93,7 @@ if instances != self.get_instances(): # pragma: nocover warn("Set changed size during iteration" + " (see https://github.com/tqdm/tqdm/issues/481)", - TqdmSynchronisationWarning) + TqdmSynchronisationWarning, stacklevel=2) def report(self): return not self.was_killed.is_set() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/_tqdm.py new/tqdm-4.38.0/tqdm/_tqdm.py --- old/tqdm-4.36.1/tqdm/_tqdm.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/_tqdm.py 2019-10-31 17:49:57.000000000 +0100 @@ -4,4 +4,4 @@ from warnings import warn warn("This function will be removed in tqdm==5.0.0\n" "Please use `tqdm.std.*` instead of `tqdm._tqdm.*`", - TqdmDeprecationWarning) + TqdmDeprecationWarning, stacklevel=2) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/_tqdm_gui.py new/tqdm-4.38.0/tqdm/_tqdm_gui.py --- old/tqdm-4.36.1/tqdm/_tqdm_gui.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/_tqdm_gui.py 2019-10-31 17:49:57.000000000 +0100 @@ -4,4 +4,4 @@ from warnings import warn warn("This function will be removed in tqdm==5.0.0\n" "Please use `tqdm.gui.*` instead of `tqdm._tqdm_gui.*`", - TqdmDeprecationWarning) + TqdmDeprecationWarning, stacklevel=2) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/_tqdm_notebook.py new/tqdm-4.38.0/tqdm/_tqdm_notebook.py --- old/tqdm-4.36.1/tqdm/_tqdm_notebook.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/_tqdm_notebook.py 2019-10-31 17:49:57.000000000 +0100 @@ -4,4 +4,4 @@ from warnings import warn warn("This function will be removed in tqdm==5.0.0\n" "Please use `tqdm.notebook.*` instead of `tqdm._tqdm_notebook.*`", - TqdmDeprecationWarning) + TqdmDeprecationWarning, stacklevel=2) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/_utils.py new/tqdm-4.38.0/tqdm/_utils.py --- old/tqdm-4.36.1/tqdm/_utils.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/_utils.py 2019-10-31 17:49:57.000000000 +0100 @@ -3,4 +3,4 @@ from warnings import warn warn("This function will be removed in tqdm==5.0.0\n" "Please use `tqdm.utils.*` instead of `tqdm._utils.*`", - TqdmDeprecationWarning) + TqdmDeprecationWarning, stacklevel=2) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/_version.py new/tqdm-4.38.0/tqdm/_version.py --- old/tqdm-4.36.1/tqdm/_version.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/_version.py 2019-11-09 01:51:23.000000000 +0100 @@ -5,7 +5,7 @@ __all__ = ["__version__"] # major, minor, patch, -extra -version_info = 4, 36, 1 +version_info = 4, 38, 0 # Nice string for the version __version__ = '.'.join(map(str, version_info)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/autonotebook.py new/tqdm-4.38.0/tqdm/autonotebook.py --- old/tqdm-4.36.1/tqdm/autonotebook.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/autonotebook.py 2019-10-31 17:49:57.000000000 +0100 @@ -14,5 +14,5 @@ from warnings import warn warn("Using `tqdm.autonotebook.tqdm` in notebook mode." " Use `tqdm.tqdm` instead to force console mode" - " (e.g. in jupyter console)", TqdmExperimentalWarning) + " (e.g. in jupyter console)", TqdmExperimentalWarning, stacklevel=2) __all__ = ["tqdm", "trange"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/gui.py new/tqdm-4.38.0/tqdm/gui.py --- old/tqdm-4.36.1/tqdm/gui.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/gui.py 2019-10-31 17:49:57.000000000 +0100 @@ -41,7 +41,7 @@ if self.disable or not kwargs['gui']: return - warn('GUI is experimental/alpha', TqdmExperimentalWarning) + warn('GUI is experimental/alpha', TqdmExperimentalWarning, stacklevel=2) self.mpl = mpl self.plt = plt self.sp = None diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/std.py new/tqdm-4.38.0/tqdm/std.py --- old/tqdm-4.36.1/tqdm/std.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/std.py 2019-11-09 01:50:41.000000000 +0100 @@ -12,7 +12,7 @@ from __future__ import division # compatibility functions and utilities from .utils import _supports_unicode, _environ_cols_wrapper, _range, _unich, \ - _term_move_up, _unicode, WeakSet, _basestring, _OrderedDict, \ + _term_move_up, _unicode, WeakSet, _basestring, _OrderedDict, _text_width, \ Comparable, RE_ANSI, _is_ascii, SimpleTextIOWrapper, FormatReplace from ._monitor import TMonitor # native libraries @@ -85,9 +85,9 @@ cls = type(self) self.locks = [lk for lk in [cls.mp_lock, cls.th_lock] if lk is not None] - def acquire(self): + def acquire(self, *a, **k): for lock in self.locks: - lock.acquire() + lock.acquire(*a, **k) def release(self): for lock in self.locks[::-1]: # Release in inverse order of acquisition @@ -474,7 +474,8 @@ # Formatting progress bar space available for bar's display full_bar = Bar( frac, - max(1, ncols - len(RE_ANSI.sub('', nobar))) if ncols else 10, + max(1, ncols - _text_width(RE_ANSI.sub('', nobar))) + if ncols else 10, charset=Bar.ASCII if ascii is True else ascii or Bar.UTF) if not _is_ascii(full_bar.charset) and _is_ascii(bar_format): bar_format = _unicode(bar_format) @@ -490,7 +491,8 @@ return nobar full_bar = Bar( 0, - max(1, ncols - len(RE_ANSI.sub('', nobar))) if ncols else 10, + max(1, ncols - _text_width(RE_ANSI.sub('', nobar))) + if ncols else 10, charset=Bar.BLANK) return bar_format.format(bar=full_bar, **format_dict) else: @@ -516,7 +518,7 @@ except Exception as e: # pragma: nocover warn("tqdm:disabling monitor support" " (monitor_interval = 0) due to:\n" + str(e), - TqdmMonitorWarning) + TqdmMonitorWarning, stacklevel=2) cls.monitor_interval = 0 # Return the instance return instance @@ -645,7 +647,10 @@ """ from pandas.core.frame import DataFrame from pandas.core.series import Series - from pandas import Panel + try: + from pandas import Panel + except ImportError: # TODO: pandas>0.25.2 + Panel = None try: # pandas>=0.18.0 from pandas.core.window import _Rolling_and_Expanding except ImportError: # pragma: no cover @@ -752,7 +757,8 @@ DataFrameGroupBy.progress_apply = inner_generator() DataFrame.progress_applymap = inner_generator('applymap') - Panel.progress_apply = inner_generator() + if Panel is not None: + Panel.progress_apply = inner_generator() if PanelGroupBy is not None: PanelGroupBy.progress_apply = inner_generator() @@ -768,7 +774,8 @@ miniters=None, ascii=None, disable=False, unit='it', unit_scale=False, dynamic_ncols=False, smoothing=0.3, bar_format=None, initial=0, position=None, postfix=None, - unit_divisor=1000, write_bytes=None, gui=False, **kwargs): + unit_divisor=1000, write_bytes=None, lock_args=None, + gui=False, **kwargs): """ Parameters ---------- @@ -865,6 +872,9 @@ If (default: None) and `file` is unspecified, bytes will be written in Python 2. If `True` will also write bytes. In all other cases will default to unicode. + lock_args : tuple, optional + Passed to `refresh` for intermediate output + (initialisation, iterating, and updating). gui : bool, optional WARNING: internal parameter - do not use. Use tqdm.gui.tqdm(...) instead. If set, will attempt to use @@ -971,6 +981,7 @@ self.unit = unit self.unit_scale = unit_scale self.unit_divisor = unit_divisor + self.lock_args = lock_args self.gui = gui self.dynamic_ncols = dynamic_ncols self.smoothing = smoothing @@ -999,8 +1010,7 @@ if not gui: # Initialize the screen printer self.sp = self.status_printer(self.fp) - with self._lock: - self.display() + self.refresh(lock_args=self.lock_args) # Init the time counter self.last_print_t = self._time() @@ -1033,7 +1043,7 @@ # maybe eager thread cleanup upon external error if (exc_type, exc_value, traceback) == (None, None, None): raise - warn("AttributeError ignored", TqdmWarning) + warn("AttributeError ignored", TqdmWarning, stacklevel=2) def __del__(self): self.close() @@ -1097,8 +1107,7 @@ self.avg_time = avg_time self.n = n - with self._lock: - self.display() + self.refresh(lock_args=self.lock_args) # If no `miniters` was specified, adjust automatically # to the max iteration rate seen so far between 2 prints @@ -1181,8 +1190,7 @@ " instead of `tqdm(..., gui=True)`\n", fp_write=getattr(self.fp, 'write', sys.stderr.write)) - with self._lock: - self.display() + self.refresh(lock_args=self.lock_args) # If no `miniters` was specified, adjust automatically to the # maximum iteration rate seen so far between two prints. @@ -1264,16 +1272,32 @@ if not nolock: self._lock.release() - def refresh(self, nolock=False): - """Force refresh the display of this bar.""" + def refresh(self, nolock=False, lock_args=None): + """ + Force refresh the display of this bar. + + Parameters + ---------- + nolock : bool, optional + If `True`, does not lock. + If [default: `False`]: calls `acquire()` on internal lock. + lock_args : tuple, optional + Passed to internal lock's `acquire()`. + If specified, will only `display()` if `acquire()` returns `True`. + """ if self.disable: return if not nolock: - self._lock.acquire() + if lock_args: + if not self._lock.acquire(*lock_args): + return False + else: + self._lock.acquire() self.display() if not nolock: self._lock.release() + return True def unpause(self): """Restart tqdm timer from last print time.""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/tests/tests_main.py new/tqdm-4.38.0/tqdm/tests/tests_main.py --- old/tqdm-4.36.1/tqdm/tests/tests_main.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/tests/tests_main.py 2019-11-09 01:50:41.000000000 +0100 @@ -48,7 +48,7 @@ sys.argv = ['', '--desc', 'Test CLI --delim', '--ascii', 'True', '--delim', r'\0', '--buf_size', '64'] sys.stdin.write('\0'.join(map(str, _range(int(123))))) - #sys.stdin.write(b'\xff') # TODO + # sys.stdin.write(b'\xff') # TODO sys.stdin.seek(0) main() sys.stdin = IN_DATA_LIST diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/tests/tests_perf.py new/tqdm-4.38.0/tqdm/tests/tests_perf.py --- old/tqdm-4.36.1/tqdm/tests/tests_perf.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/tests/tests_perf.py 2019-11-09 01:50:41.000000000 +0100 @@ -164,7 +164,7 @@ if time_left > thresh * time_right: raise ValueError( ('{name[0]}: {time[0]:f}, ' - '{name[1]}: {time[0]:f}, ' + '{name[1]}: {time[1]:f}, ' 'ratio {ratio:f} > {thresh:f}').format( name=(name_left, name_right), time=(time_left, time_right), @@ -219,6 +219,48 @@ assert_performance(6, 'tqdm', time_tqdm(), 'range', time_bench()) +def worker(total, blocking=True): + def incr_bar(x): + with closing(StringIO()) as our_file: + for _ in trange( + total, file=our_file, + lock_args=None if blocking else (False,), + miniters=1, mininterval=0, maxinterval=0): + pass + return x + 1 + return incr_bar + + +@with_setup(pretest, posttest) +@retry_on_except() +def test_lock_args(): + """Test overhead of nonblocking threads""" + try: + from concurrent.futures import ThreadPoolExecutor + from threading import RLock + except ImportError: + raise SkipTest + import sys + + total = 8 + subtotal = 1000 + + tqdm.set_lock(RLock()) + with ThreadPoolExecutor(total) as pool: + sys.stderr.write('block ... ') + sys.stderr.flush() + with relative_timer() as time_tqdm: + res = list(pool.map(worker(subtotal, True), range(total))) + assert sum(res) == sum(range(total)) + total + sys.stderr.write('noblock ... ') + sys.stderr.flush() + with relative_timer() as time_noblock: + res = list(pool.map(worker(subtotal, False), range(total))) + assert sum(res) == sum(range(total)) + total + + assert_performance(0.2, 'noblock', time_noblock(), 'tqdm', time_tqdm()) + + @with_setup(pretest, posttest) @retry_on_except() def test_iter_overhead_hard(): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/tests/tests_synchronisation.py new/tqdm-4.38.0/tqdm/tests/tests_synchronisation.py --- old/tqdm-4.36.1/tqdm/tests/tests_synchronisation.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/tests/tests_synchronisation.py 2019-11-09 01:50:41.000000000 +0100 @@ -1,5 +1,5 @@ from __future__ import division -from tqdm import tqdm, TMonitor +from tqdm import tqdm, trange, TMonitor from tests_tqdm import with_setup, pretest, posttest, SkipTest, \ StringIO, closing from tests_tqdm import DiscreteTimer, cpu_timify @@ -41,6 +41,13 @@ return x + 1 +def incr_bar(x): + with closing(StringIO()) as our_file: + for _ in trange(x, lock_args=(False,), file=our_file): + pass + return incr(x) + + @with_setup(pretest, posttest) def test_monitor_thread(): """Test dummy monitoring thread""" @@ -179,3 +186,18 @@ pool = Pool() res = list(tqdm(pool.imap(incr, range(100)), disable=True)) assert res[-1] == 100 + + +@with_setup(pretest, posttest) +def test_threadpool(): + """Test concurrent.futures.ThreadPoolExecutor""" + try: + from concurrent.futures import ThreadPoolExecutor + from threading import RLock + except ImportError: + raise SkipTest + + tqdm.set_lock(RLock()) + with ThreadPoolExecutor(8) as pool: + res = list(tqdm(pool.map(incr_bar, range(100)), disable=True)) + assert sum(res) == sum(range(1, 101)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/tests/tests_tqdm.py new/tqdm-4.38.0/tqdm/tests/tests_tqdm.py --- old/tqdm-4.36.1/tqdm/tests/tests_tqdm.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/tests/tests_tqdm.py 2019-10-31 17:49:57.000000000 +0100 @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # Advice: use repr(our_file.read()) to print the full output of tqdm # (else '\r' will replace the previous lines and you'll see only the latest. @@ -277,6 +278,12 @@ assert format_meter(20, 100, 12, ncols=14, rate=8.1, bar_format=r'{l_bar}{bar}|{n_fmt}/{total_fmt}') == \ " 20%|" + unich(0x258d) + " |20/100" + # Check wide characters + if sys.version_info >= (3,): + assert format_meter(0, 1000, 13, ncols=68, prefix='fullwidth: ') == \ + "fullwidth: 0%| | 0/1000 [00:13<?, ?it/s]" + assert format_meter(0, 1000, 13, ncols=68, prefix='ニッポン [ニッポン]: ') == \ + "ニッポン [ニッポン]: 0%| | 0/1000 [00:13<?, ?it/s]" # Check that bar_format can print only {bar} or just one side assert format_meter(20, 100, 12, ncols=2, rate=8.1, bar_format=r'{bar}') == \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/tqdm.1 new/tqdm-4.38.0/tqdm/tqdm.1 --- old/tqdm-4.36.1/tqdm/tqdm.1 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/tqdm.1 2019-11-09 01:51:40.000000000 +0100 @@ -209,6 +209,13 @@ .RS .RE .TP +.B \-\-lock_args=\f[I]lock_args\f[] +tuple, optional. +Passed to \f[C]refresh\f[] for intermediate output (initialisation, +iterating, and updating). +.RS +.RE +.TP .B \-\-delim=\f[I]delim\f[] chr, optional. Delimiting character [default: \[aq]\\n\[aq]]. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm/utils.py new/tqdm-4.38.0/tqdm/utils.py --- old/tqdm-4.36.1/tqdm/utils.py 2019-09-19 04:30:40.000000000 +0200 +++ new/tqdm-4.38.0/tqdm/utils.py 2019-11-09 01:50:41.000000000 +0100 @@ -31,11 +31,15 @@ try: if IS_WIN: import colorama - colorama.init() else: - colorama = None + raise ImportError except ImportError: colorama = None + else: + try: + colorama.init(strip=False) + except TypeError: + colorama.init() try: from weakref import WeakSet @@ -283,3 +287,14 @@ def _term_move_up(): # pragma: no cover return '' if (os.name == 'nt') and (colorama is None) else '\x1b[A' + + +try: + # TODO consider using wcswidth third-party package for 0-width characters + from unicodedata import east_asian_width +except ImportError: + _text_width = len +else: + def _text_width(s): + return sum( + 2 if east_asian_width(ch) in 'FW' else 1 for ch in _unicode(s)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tqdm-4.36.1/tqdm.egg-info/PKG-INFO new/tqdm-4.38.0/tqdm.egg-info/PKG-INFO --- old/tqdm-4.36.1/tqdm.egg-info/PKG-INFO 2019-09-19 04:32:20.000000000 +0200 +++ new/tqdm-4.38.0/tqdm.egg-info/PKG-INFO 2019-11-09 02:02:45.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: tqdm -Version: 4.36.1 +Version: 4.38.0 Summary: Fast, Extensible Progress Meter Home-page: https://github.com/tqdm/tqdm Maintainer: tqdm developers @@ -35,9 +35,7 @@ ``tqdm(xrange(N))``. |Screenshot| - REPL: `ptpython <https://github.com/jonathanslenders/ptpython>`__ | - PyData London: `video <https://tqdm.github.io/video>`__ - / `slides <https://tqdm.github.io/PyData2019/slides.html>`__ + |Video| |Slides| It can also be executed as a module with pipes: @@ -126,6 +124,16 @@ docker pull tqdm/tqdm docker run -i --rm tqdm/tqdm --help + Other + ~~~~~ + + There are other (unofficial) places where ``tqdm`` may be downloaded, particularly for CLI use: + + |Repology| + + .. |Repology| image:: https://repology.org/badge/tiny-repos/python:tqdm.svg + :target: https://repology.org/project/python:tqdm/versions + Changelog --------- @@ -284,7 +292,7 @@ ``tqdm(zip(a, b))`` should be replaced with ``zip(tqdm(a), b)`` or even ``zip(tqdm(a), tqdm(b))``. - `Hanging pipes in python2 <https://github.com/tqdm/tqdm/issues/359>`__: - when using ``tqdm`` on the CLI, you may need to use python 3.5+ for correct + when using ``tqdm`` on the CLI, you may need to use Python 3.5+ for correct buffering. If you come across any other difficulties, browse and file |GitHub-Issues|. @@ -406,6 +414,9 @@ If (default: None) and ``file`` is unspecified, bytes will be written in Python 2. If ``True`` will also write bytes. In all other cases will default to unicode. + * lock_args : tuple, optional + Passed to ``refresh`` for intermediate output + (initialisation, iterating, and updating). Extra CLI Options ~~~~~~~~~~~~~~~~~ @@ -460,7 +471,18 @@ """Clear current bar display.""" def refresh(self): - """Force refresh the display of this bar.""" + """ + Force refresh the display of this bar. + + Parameters + ---------- + nolock : bool, optional + If ``True``, does not lock. + If [default: ``False``]: calls ``acquire()`` on internal lock. + lock_args : tuple, optional + Passed to internal lock's ``acquire()``. + If specified, will only ``display()`` if ``acquire()`` returns ``True``. + """ def unpause(self): """Restart tqdm timer from last print time.""" @@ -654,7 +676,8 @@ For manual control over positioning (e.g. for multi-processing use), you may specify ``position=n`` where ``n=0`` for the outermost bar, - ``n=1`` for the next, and so on: + ``n=1`` for the next, and so on. However, it's best to check if `tqdm` can work + without manual `position` first. .. code:: python @@ -673,11 +696,10 @@ if __name__ == '__main__': freeze_support() # for Windows support - p = Pool(len(L), initializer=tqdm.set_lock, initargs=(tqdm.get_lock(),)) + p = Pool(initializer=tqdm.set_lock, initargs=(tqdm.get_lock(),)) p.map(progresser, L) - Note that in python 3, threads do not require manual positioning, - and ``tqdm.write`` is safe to use: + Note that in Python 3, ``tqdm.write`` is thread-safe: .. code:: python @@ -1013,7 +1035,7 @@ Contributions ------------- - |GitHub-Commits| |GitHub-Issues| |GitHub-PRs| |OpenHub-Status| |GitHub-Contributions| + |GitHub-Commits| |GitHub-Issues| |GitHub-PRs| |OpenHub-Status| |GitHub-Contributions| |CII Best Practices| All source code is hosted on `GitHub <https://github.com/tqdm/tqdm>`__. Contributions are welcome. @@ -1060,6 +1082,10 @@ .. |Logo| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/logo.gif .. |Screenshot| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm.gif + .. |Video| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/video.jpg + :target: https://tqdm.github.io/video + .. |Slides| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/slides.jpg + :target: https://tqdm.github.io/PyData2019/slides.html .. |Build-Status| image:: https://img.shields.io/travis/tqdm/tqdm/master.svg?logo=travis :target: https://travis-ci.org/tqdm/tqdm .. |Coverage-Status| image:: https://coveralls.io/repos/tqdm/tqdm/badge.svg?branch=master @@ -1068,6 +1094,8 @@ :target: https://codecov.io/gh/tqdm/tqdm .. |Codacy-Grade| image:: https://api.codacy.com/project/badge/Grade/3f965571598f44549c7818f29cdcf177 :target: https://www.codacy.com/app/tqdm/tqdm/dashboard + .. |CII Best Practices| image:: https://bestpractices.coreinfrastructure.org/projects/3264/badge + :target: https://bestpractices.coreinfrastructure.org/projects/3264 .. |GitHub-Status| image:: https://img.shields.io/github/tag/tqdm/tqdm.svg?maxAge=86400&logo=github&logoColor=white :target: https://github.com/tqdm/tqdm/releases .. |GitHub-Forks| image:: https://img.shields.io/github/forks/tqdm/tqdm.svg?logo=github&logoColor=white @@ -1086,7 +1114,7 @@ :target: https://github.com/tqdm/tqdm/pulse .. |Gift-Casper| image:: https://img.shields.io/badge/dynamic/json.svg?color=ff69b4&label=gifts%20received&prefix=%C2%A3&query=%24..sum&url=https%3A%2F%2Fcaspersci.uk.to%2Fgifts.json :target: https://caspersci.uk.to/donate - .. |PyPI-Status| image:: https://img.shields.io/pypi/v/tqdm.svg + .. |PyPI-Status| image:: https://img.shields.io/pypi/v/tqdm.svg?logo=PyPI&logoColor=white :target: https://pypi.org/project/tqdm .. |PyPI-Downloads| image:: https://img.shields.io/pypi/dm/tqdm.svg?label=pypi%20downloads&logo=python&logoColor=white :target: https://pypi.org/project/tqdm @@ -1096,7 +1124,7 @@ :target: https://anaconda.org/conda-forge/tqdm .. |Snapcraft| image:: https://img.shields.io/badge/snap-install-82BEA0.svg?logo=snapcraft :target: https://snapcraft.io/tqdm - .. |Docker| image:: https://img.shields.io/badge/docker-pull-blue.svg?logo=docker + .. |Docker| image:: https://img.shields.io/badge/docker-pull-blue.svg?logo=docker&logoColor=white :target: https://hub.docker.com/r/tqdm/tqdm .. |Libraries-Rank| image:: https://img.shields.io/librariesio/sourcerank/pypi/tqdm.svg?logo=koding&logoColor=white :target: https://libraries.io/pypi/tqdm
