Skip to main content

Usefull progress "bar"

Project description

nobar

  • Why make a new progress bar?
  • To have the right one! Pythonic, plain, which can be used)

Quick start:

pip install nobar

Examples:

from nobar import nobar
from time import sleep

# With init. You'll see itetations and time left

nobar('task_1', 50)
for i in range(50):
    sleep(0.8)
    nobar('task_1')
    
>>> task_1   50 / 50   pas 00:00:46   lef 00:00:00   tot 00:00:46   las 0.801   avg 0.922



# Without init. Only Passed 

for i in range(800):
    sleep(0.02)
    nobar('task_2')
    
>>> task_2   800 / ---   pas 00:00:16   lef --:--:--   tot --:--:--   las 0.020   avg 0.020



# Previous data saved

nobar(print_all=True)

>>> task_1   50 / 50   pas 00:00:46   lef 00:00:00   tot 00:00:46   las 0.801   avg 0.922
>>> task_2   800 / ---   pas 00:00:16   lef --:--:--   tot --:--:--   las 0.020   avg 0.020

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

nobar-1.0.2.17.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nobar-1.0.2.17-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file nobar-1.0.2.17.tar.gz.

File metadata

  • Download URL: nobar-1.0.2.17.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for nobar-1.0.2.17.tar.gz
Algorithm Hash digest
SHA256 ffd98f1325a3eb01346c1c7d42fd4f72dc87725ed721f017de056c6af03171f0
MD5 28ca30d0e5dabd77243a9249aa7c70f9
BLAKE2b-256 2fed97569dca6b41a2269c68b91afea7ddb4cc4bf95492f3b7af5d9c14ae9d8b

See more details on using hashes here.

File details

Details for the file nobar-1.0.2.17-py3-none-any.whl.

File metadata

  • Download URL: nobar-1.0.2.17-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for nobar-1.0.2.17-py3-none-any.whl
Algorithm Hash digest
SHA256 47871e2fc3b297da98c9f9a832b1e9aefa83c834bc3926b9a2c3d774551e20eb
MD5 1bc86bc86fbed6550b66add9091d0ae9
BLAKE2b-256 20160155646144c610cc4101ce41ba4fde18f31fa0a2aeee84c470ba600ee149

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page