Metadata-Version: 2.1
Name: pyprobar
Version: 0.1.1.2
Summary: An easy-to-use progress bar tool for python.
Home-page: https://github.com/beidongjiedeguang/python-progress-bar
Author: K.y
Author-email: beidongjiedeguang@gmail.com
License: MIT
Keywords: Deep Learning,Machine Learning,Neural Networks,Natural Language Processing,Computer Vision
Platform: UNKNOWN
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
Requires-Dist: colorama

# Pyprobar

[![image](https://img.shields.io/badge/Pypi-0.1.1.2-green.svg)](https://pypi.org/project/pyprobar)
[![image](https://img.shields.io/badge/python-3.6+-blue.svg)](https://www.python.org/)
[![image](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![image](https://img.shields.io/badge/author-K.y-orange.svg?style=flat-square&logo=appveyor)](https://github.com/beidongjiedeguang)




An easy-to-use progress bar tool for python.


## Installation

```bash
pip install pyprobar
```

## Synopsis
```bash
28.71% |████████>>>>>>>>>>>>>>>>>  | 0:00:22|0:00:31 ETC: 05-20 18:08:15
```

## Usage

Use `probar` or `bar` for different situations:

  ```python
  from pyprobar import bar, probar
  import time

  for idx, x in probar(range(1234)):
      time.sleep(0.02)
  ```
  ```bash
  >>> 18.31%|█████>>>>>                  | 0:00:20|0:00:25  ETC: 05-20 19:00:39
  ```
  ```python
  import numpy as np
  N = 1024
  a = np.linspace(2, 5, N)
  for idx, i in enumerate(a):
      time.sleep(0.01)
      bar(idx, N)
  ```
  ```bash
 >>> 100.00% |███████████████████████████| 0:00:00|0:00:10  ETC: 05-20 20:33:34 
  ```



You can set your own progress bar through parameter `symbol_1` and `symbol_2` :

```python
for idx, i in probar(range(1234), symbol_2="o"):
    time.sleep(0.01)
```
```bash
>>> 23.10%|██████ooooooooooooooooooo    | 0:00:10|0:00:14  ETC: 05-20 17:29:57
```





