Skip to main content

Basic usage:

import time

from lubar import ProgressBar

total = 100
bar = ProgressBar(total)
for i in bar(range(total)):
    time.sleep(0.05)

Keyword Arguments:

  • size: size of the progress bar (default to 37)

  • description: progress description (default to '')

  • file: file object to print progress bar to it (default to sys.stdout)

  • progressed_char: progress character (default to '#')

  • remained_char: remain character (default to '.')

  • enclosing_chars: characters to enclose progress bar between them (default to ('[', ']'))

  • join_char: character to join progress bar parts (default to ' ')

Note: All attributes can be updated at run time. I designed this progress bar to train deep learning models in PyTorch. I needed a progress bar to update it description in training loops to print model's losses values.

Special credit to eusoubrasileiro. I designed this progress based on his answer in Stack Overflow

Metadata

Release files for lubar 0.0.4

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

Source distribution (sdist)

Source distribution for lubar 0.0.4
File Size Uploaded
lubar-0.0.4.tar.gz 14.8 kB Details

Built distribution (wheel)

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

Total release size: 29.8 kB

Release files / lubar-0.0.4.tar.gz

Download URL lubar-0.0.4.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0680a6b89e652c973e6b76663d58133f50e266856f818e1006730e88d318d1bc
BLAKE2b-256 checksum
How to use checksums
978e54dbcbe7a21af794c1f4fa11277202cd233a86fcaf73eb6523381e381dcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.1

Release files / lubar-0.0.4-py3-none-any.whl

Download URL lubar-0.0.4-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b258b531b50fdb5696088863b058dea860c5ed244ca698d783000063c60ddab8
BLAKE2b-256 checksum
How to use checksums
6186125a9a22507ad2e524376b4f5c98d6fa848a92b35767b521b662030d7faf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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