Skip to main content

coolbar

Aims to be the ultimate progress bar package for python.
(But i dont believe in myself so it fails)

Installation

pip install pycoolprogressbar

Usage

from pycoolprogressbar import CoolBar
import time
for i in CoolBar(100):
    time.sleep(0.02)

CoolBar class

This is the main class for everything It can be used as an iterable or as a context manager

init (creating the instance):

This can be kinda confusing? args: total: the maximum value of the progress bar. Can be overshot. width: the length of the progress bar, in characters. color: must be a color from the COLORS_LIST fill: changes the character displayed for filled segments. empty: changes the character displayed for unfilled segments. prefix: displayed in the bar before the bar. use as a title (eg.: "Loading") suffix: displayed after the bar but before everything else, surprisingly. Could use to describe what you're doing start: what value the bar starts from. done_msg: printed when bar ends with no errors under_msg: printed when the bar ends without reaching total. over_msg: printed when the bar ends with current being more than total. spinner_func: used to add a spinner to the bar. It should be a function, and you should preferably add limiting frames yourself spinner_max_frames: additional frame limit. it should be how much frames you have - 1 unit: what is displayed when overshot and in the speed counter.

CoolBar.update(n)

Adds n to the instances current count. This is also called when calling the coolbar class itself Can overshoot total.

License

MIT

Metadata

Release files for pycoolprogressbar 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycoolprogressbar 0.1.0
File Size Uploaded
pycoolprogressbar-0.1.0.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycoolprogressbar 0.1.0
File Interpreter ABI Platform
pycoolprogressbar-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / pycoolprogressbar-0.1.0.tar.gz

Download URL pycoolprogressbar-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b2231802318888f932592fc8a95d78a2ff05e5f6c4a47e317dd25a9feef529dc
BLAKE2b-256 checksum
How to use checksums
d6eac0b90426f4bc376477751f494897e51b4c9098f2123857c209433831d08e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.1

Release files / pycoolprogressbar-0.1.0-py3-none-any.whl

Download URL pycoolprogressbar-0.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7538a81a8cbef677b231dbc814ae0ab511a9945e8fcb5bfb6bddf620a7f1f83a
BLAKE2b-256 checksum
How to use checksums
21a5f1cb1e3ee92662c7ad876e7914b991713bd86a7e8926de3001bcefe6256d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.1

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page