A progress bar for Python.
Project description
- Info:
This is the README file for KwPBar.
- Copyright:
- © 2015-2018, Chris Warrick.
- Date:
- 2018-09-03
- Version:
- 0.2.1
A simple progress bar for Python programs.
INSTALLATION
pip install kwpbar
USAGE
import kwpbar in your program.
The following functions are available:
get_termlength() → return terminal length (columns); helper function
pbar(value, max) → print a progress bar to the screen (stderr). Can raise ValueError.
erase_pbar() → erase the progress bar from the screen
DEMO
python -m kwpbar.demo
SEE ALSO
COPYRIGHT
Copyright © 2015-2018, Chris Warrick. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions, and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the author of this software nor the names of contributors to this software may be used to endorse or promote products derived from this software without specific prior written consent.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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
File details
Details for the file kwpbar-0.2.1.tar.gz
.
File metadata
- Download URL: kwpbar-0.2.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4415cc13aaad5274c3fd85ddc0b6fb29728e32bb2dbc31384b05db2264e93c97 |
|
MD5 | 55915ce000986ed1b771b317f9c57a4b |
|
BLAKE2b-256 | c634659bc391a3092bdb7390e4066bb10d0289b80824c97ffacdce1c0090b72d |
File details
Details for the file kwpbar-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: kwpbar-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39cf51e278f87d6929a02faf3653217eebb4308789dac11c46485226d7d3d384 |
|
MD5 | 79abbfe6f9e153f6cb11e560caa398ba |
|
BLAKE2b-256 | c1b28c6a539c5b15e7a118d3b1430b926ad18f229b54b78291aacc9cbb4596d0 |