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
Built Distribution
File details
Details for the file simple_progress_bar-0.0.5.win-amd64.zip
.
File metadata
- Download URL: simple_progress_bar-0.0.5.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69a8f90209a1ddc83505920503950101ea7f836c1e73f5687ecc7f55a4342b45 |
|
MD5 | 4d56eadc95c7f7daddee7fc1bc876ca5 |
|
BLAKE2b-256 | b5fac6310498560e4f961ffb613baf94545a73329703de6354a712b507667460 |
File details
Details for the file simple_progress_bar-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: simple_progress_bar-0.0.5-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 830d2e065d874a64186cf9717adc429c5334c97b1291d2614dbbced24f4ad09b |
|
MD5 | f4d51c68e9cdfba7f5c163537897f06b |
|
BLAKE2b-256 | 0c030270a7818020f11e8e49dd983af29502b5040fa652a33ae3d4abc50eabaa |