Skip to main content

Simple progress bar for your console apps in python

Project description

Simple Progress Bar

This module will print a progress bar for console apps. It should be used inside a for loop.

Installation

pip install simple-progress-bar

Usage

# import function from module
from simple_progress_bar import print_progressbar

def test_function():

    df_test = pd.read_excel('test_file_read.xls')
    df_test_size = len(df_dles.index)

    # iterate through anything - here is a pandas dataframe
    for index, row in df_test.iterrows():
        index_fix = index + 1
        result = 'Test' 
        df_test.loc[index, 'result'] = result

        # Printing the progress bar
        print_progressbar(index_fix, df_test_size, blank='-', description=f"Testing: Line {index_fix} of {df_test_size}")

    df_test.to_excel('test_file_write.xls')

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

simple_progress_bar-0.0.4.win-amd64.zip (6.2 kB view details)

Uploaded Source

Built Distribution

simple_progress_bar-0.0.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file simple_progress_bar-0.0.4.win-amd64.zip.

File metadata

  • Download URL: simple_progress_bar-0.0.4.win-amd64.zip
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9

File hashes

Hashes for simple_progress_bar-0.0.4.win-amd64.zip
Algorithm Hash digest
SHA256 10b6c031fb86e4b1ca64a4553549c75084c4e4c21a5a00827cf6c99e2cc931c6
MD5 9d611a89f079bcab56805fae0af31d84
BLAKE2b-256 3b07be04343e4c849bf0758da7fe7c7560b8efb716083ba7cc0dbd3a42d16b1d

See more details on using hashes here.

File details

Details for the file simple_progress_bar-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: simple_progress_bar-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9

File hashes

Hashes for simple_progress_bar-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c0ebef918d8869e8e1b0ce8bff1591259738334353fca8f11508a911d62d356b
MD5 98a6f7082fa7b4894b693c7277e94716
BLAKE2b-256 45649335236f3e70d264f5ff77f52426da6322bf9bbc516fba7189804cdb40d5

See more details on using hashes here.

Supported by

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