diff --git a/MANIFEST.in b/MANIFEST.in index b2d05771..f3f509fd 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,11 +3,11 @@ include .coveragerc include CONTRIBUTE include LICENCE include logo.png +# include images/logo.gif include Makefile include README.rst include RELEASE include tox.ini -# include tqdm.gif # too big... # Test suite recursive-include tqdm/tests *.py diff --git a/README.rst b/README.rst index 77cda1b7..3ab84a2f 100644 --- a/README.rst +++ b/README.rst @@ -19,18 +19,16 @@ iterable with ``tqdm(iterable)``, and you're done! .. code:: python from tqdm import tqdm - for i in tqdm(range(9)): + for i in tqdm(range(10000)): ... -Here's what the output looks like: - ``76%|████████████████████████████         | 7568/10000 [00:33<00:10, 229.00it/s]`` ``trange(N)`` can be also used as a convenient shortcut for ``tqdm(xrange(N))``. |Screenshot| - Screenshot using `bpython `__ + REPL: `ptpython `__ It can also be executed as a module with pipes: @@ -39,6 +37,9 @@ It can also be executed as a module with pipes: $ seq 9999999 | tqdm --unit_scale | wc -l 10.0Mit [00:02, 3.58Mit/s] 9999999 + $ 7z a -bd -r backup.7z docs/ | grep Compressing | \ + tqdm --total $(find docs/ -type f | wc -l) --unit files >> backup.log + 100%|███████████████████████████████▉| 8014/8014 [01:37<00:00, 82.29files/s] Overhead is low -- about 60ns per iteration (80ns with ``tqdm_gui``), and is unit tested against performance regression. @@ -710,7 +711,7 @@ Ranked by contributions. |README-Hits| (Since 19 May 2016) -.. |Logo| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/logo.png +.. |Logo| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/logo.gif .. |Screenshot| image:: https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm.gif .. |Build-Status| image:: https://travis-ci.org/tqdm/tqdm.svg?branch=master :target: https://travis-ci.org/tqdm/tqdm diff --git a/images/logo.gif b/images/logo.gif new file mode 100644 index 00000000..9719bb4b Binary files /dev/null and b/images/logo.gif differ diff --git a/images/tqdm.gif b/images/tqdm.gif index 9aa2fcfc..cf560e7e 100644 Binary files a/images/tqdm.gif and b/images/tqdm.gif differ