Skip to main content

A package for simple progress bar

Project description

Simple Library for Progress Bar

Install

  • With pipenv
    • pipenv install mortalprogressbar

Usage

Import

from progress import ProgressBar

Use

with ProgressBar(total=100, width=30, prefix="Processing...") as bar:
    bar.update(add=1)

Example

with ProgressBar(total=100, width=30, prefix="Processing...") as bar:
    for _ in range(total):
        bar.update(add=1)
        time.sleep(0.05)

Result

| Testing... |██████████████████████████████| 100% - 100 / 100 | TTL / ETA: 2.49s / 0.00s | AVG: 40.13/s |

已支援中文 prefix

| 處理中... |██████████████████████████████| 100% - 100 / 100 | TTL / ETA: 2.49s / 0.00s | AVG: 40.13/s |

若 width == -1 則會填滿整個 terminal 長度

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

mortalprogressbar-1.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

mortalprogressbar-1.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file mortalprogressbar-1.0.1.tar.gz.

File metadata

  • Download URL: mortalprogressbar-1.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.2

File hashes

Hashes for mortalprogressbar-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d27c96c98a4f4e8219471c08a349aab28fb316ba446308d2b98d1663022e331e
MD5 f89c099e10cb9433788a8f5fbfeeb972
BLAKE2b-256 c563c4b6d4acdc0fca9a854bd82f136958b058a39eb83df44f1f1884f19be3a3

See more details on using hashes here.

File details

Details for the file mortalprogressbar-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mortalprogressbar-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 64e067caa778f9a8fecc9ad19522ecfe5cc7f63fea616633c999be396279370f
MD5 8aee93b332d41bf3036424af2611b5c0
BLAKE2b-256 af6ed05f433902488ae64a122c8802138033c3be3d767e8f14c461353837128c

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