Socket
Book a DemoInstallSign in
Socket

simple-progress-bar

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-progress-bar

Simple progress bar for your console apps in python

pipPyPI
Version
0.0.5
Maintainers
1

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')


Keywords

progress

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts