Browse Source

Tqdm

pull/3/head
Jure Šorn 6 years ago
parent
commit
99f4f494f9
1 changed files with 13 additions and 4 deletions
  1. 17
      README.md

17
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

Loading…
Cancel
Save