Skip to main content

pyterm_progress_bar

Prints a progress bar to the terminal from python.

ProgressBar

import pyterm_progress_bar

progress_bar = pyterm_progress_bar.ProgressBar(
    name='Progress',  # Default
    char='#'  # Default
)
progress_bar.start()

for i in range (0, 5):
    # Do stuff
    progress_bar.update((i+1)/5)  # between 0 and 1 inclusive.

Loop

pyterm_progress_bar can automatically perform a loop for you to save you having to do the difficult math.

import pyterm_progress_bar

def my_func(counter, data):  # data param is optional here
    # Do stuff
    # 'counter' is the loop counter
    # 'data' is whatever you pass as 'param' in the next step

loop = pyterm_progress_bar.Loop(
    my_func,
    number_of_iterations=300,
    param=['foo', 'bar', '🐙'],  # Optional
    progress_bar_name='Running my_func',  # Default
    progress_bar_char='#'  # Default
)
loop.execute()

Release files for pyterm-progress-bar 0.0.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 pyterm-progress-bar 0.0.1
File Size Uploaded
pyterm_progress_bar-0.0.1.tar.gz 2.1 kB Details

Release files / pyterm_progress_bar-0.0.1.tar.gz

Download URL pyterm_progress_bar-0.0.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
102af71c516fc46bd4175710232c117900c635998af7556f8acfa0e2828dd54c
BLAKE2b-256 checksum
How to use checksums
5bb193d9e3b6a7b9f37eb34765eb415e9501f32c4e41432c93370b8142451087
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

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