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
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}")
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
Close
Hashes for simple_progress_bar-0.0.2.win-amd64.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b224f144a70bffaa512d520c3136af3eccc4bb90adaaa30b99d6b2c357d33be |
|
MD5 | d53342578fec81ee5ed389142f78f588 |
|
BLAKE2b-256 | 101d979d85cc80c0d2c39af78d783654fd19b53d167d368dd79a1f0700438cac |
Close
Hashes for simple_progress_bar-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5c08c16a878ef0ebcd6e9c3323ffc4fe6b429331c36bb6378b090ba209a7b90 |
|
MD5 | a2ea3f53e674f44ed4c057c7b1a2f4b9 |
|
BLAKE2b-256 | db5acf5603f34ff4ff78ffaeab95e6c8143b2d61c0e20c8e9127507f8cc5cea2 |