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.1

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.1
File Size Uploaded
pycoolprogressbar-0.1.1.tar.gz 4.1 kB Details

Built distribution (wheel)

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

Total release size: 8.5 kB

Release files / pycoolprogressbar-0.1.1.tar.gz

Download URL pycoolprogressbar-0.1.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aa3a1f7c4964cb013fa4028828ced4d1e0806988dcf4aea842d494b3fca20a3b
BLAKE2b-256 checksum
How to use checksums
5c2288f4f8cb85d74bf54afbcaf0ee7afe0a39190ead3d158c57c33f0602d876
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.1-py3-none-any.whl

Download URL pycoolprogressbar-0.1.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6e821caaa6737bb76f44a4c099e0e4f0d5582be35f383fc06a995d9ce774f22
BLAKE2b-256 checksum
How to use checksums
a7c89179e4fc6ff212f376c5b5413735ca3564eff975cd5e68ab1aa4c762625e
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

This release

0.1.1 This release

2 release files

0.1.0

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