A progressbar that works well for log files and also Jupyter notebooks
Project description
# Progress Bar
[![Build Status](https://travis-ci.com/BlackHC/progress_bar.svg?branch=master)](https://travis-ci.com/BlackHC/progress_bar) [![codecov](https://codecov.io/gh/BlackHC/progress_bar/branch/master/graph/badge.svg)](https://codecov.io/gh/BlackHC/progress_bar) [![PyPI](https://img.shields.io/badge/PyPI-progress_bar-blue.svg)](https://pypi.python.org/pypi/progress_bar/)
A progress bar that is either using TQDM for nice outputs internally, or a log-friendly replacement that works well for piping into files.
## Example
```python
from blackhc.progress_bar import with_progress_bar, use_tqdm
use_tqdm = False
for _ in with_progress_bar(range(100000)):
pass
```
Without `use_tqdm = False`, the package will decide whether to use tqdm or not based on whether output is attached to a terminal or not.
## Installation
To install using pip, use:
```
pip install blackhc.progress_bar
```
To run the tests, use:
```
python setup.py test
```
[![Build Status](https://travis-ci.com/BlackHC/progress_bar.svg?branch=master)](https://travis-ci.com/BlackHC/progress_bar) [![codecov](https://codecov.io/gh/BlackHC/progress_bar/branch/master/graph/badge.svg)](https://codecov.io/gh/BlackHC/progress_bar) [![PyPI](https://img.shields.io/badge/PyPI-progress_bar-blue.svg)](https://pypi.python.org/pypi/progress_bar/)
A progress bar that is either using TQDM for nice outputs internally, or a log-friendly replacement that works well for piping into files.
## Example
```python
from blackhc.progress_bar import with_progress_bar, use_tqdm
use_tqdm = False
for _ in with_progress_bar(range(100000)):
pass
```
Without `use_tqdm = False`, the package will decide whether to use tqdm or not based on whether output is attached to a terminal or not.
## Installation
To install using pip, use:
```
pip install blackhc.progress_bar
```
To run the tests, use:
```
python setup.py test
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for blackhc.progress_bar-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfd01c9b43579a5c8c8216741c46e7f9c00c3cba1d05fd0611f74b73a8cf8f9e |
|
MD5 | 3a1d3b3e26723ebabdb43a0bbbeeb1fb |
|
BLAKE2b-256 | ae18832f5600832541797430177e6a8eac81130b66ce1615aff0a795392bef94 |
Close
Hashes for blackhc.progress_bar-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 499eabf45e1da6cb226fd4822ffb1fe313ccea2163e6f4521e3a4e54130832f2 |
|
MD5 | 7e79c66253b6ce172875e62e9d7c319f |
|
BLAKE2b-256 | 66081e51c8c8db2a1ca6c0e47c42aebeba6d639af56af36725926c9cbb620239 |