From 99f4f494f9561c92c848459ca064b3b41cc69c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 26 Dec 2018 16:04:33 +0100 Subject: [PATCH] Tqdm --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 992366e..8190afe 100644 --- a/README.md +++ b/README.md @@ -1295,7 +1295,7 @@ def get_filename(): Progress Bar ------------ -### Basic: +### Basic ```python import sys @@ -1333,15 +1333,24 @@ class Bar(): #### Usage: ```python from time import sleep -# Range: for i in Bar.range(100): sleep(0.02) -# Foreach: for el in Bar.foreach([1, 2, 3]): + sleep(0.2) +``` + +### Tqdm +```python +# $ pip3 install tqdm +from tqdm import tqdm +from time import sleep +for i in tqdm(range(100)): sleep(0.02) +for i in tqdm([1, 2, 3]): + sleep(0.2) ``` -### Progress: +### Progress ```python # $ pip3 install progress from progress.bar import Bar