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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0a10c5873e9f9cc855d29035c6dc47067557d5e78d144888c4b7c52e05c3161 |
|
MD5 | 1b75a262e9643366af1744a01bda77bc |
|
BLAKE2b-256 | 5037ea3e1bbea838354a0bc9c6f96be4b9d04bd75f895d2f6578aef1c03cb11d |
Close
Hashes for blackhc.progress_bar-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab8272d93476db3ac4446d74521d77693f165b2e0a0bd2952ad6c696d51b8805 |
|
MD5 | 07c48d1914257c6343ec3b35f0298ffd |
|
BLAKE2b-256 | 7d5cfd266392c4bc7259895d122457ee22234dcea861b8d85fa2a06b4c347b6c |