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-0.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f0c6f59bd87ccdbb80aed9700f4634045fae9812c2e1386ecc219ca883762b1 |
|
MD5 | 551272b8e01d7529b2e7a42c8681d1e9 |
|
BLAKE2b-256 | 14548f793abbe6edbf7ace652e951ede185c4ce120abb13e7bd64ad3ca77225d |
Close
Hashes for blackhc.progress_bar-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68b303a285ec66ec3f42302de8b5aaaa381ed2499a75bc0ac878a53a4c6801fc |
|
MD5 | 2372a28498c220d8e9b6cbc9dc19888b |
|
BLAKE2b-256 | c9a488b946df2f784a5110cebc5439b379a3ccf44706bce16ff7752596ae4467 |