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')
Metadata
Release files for simple-progress-bar 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simple_progress_bar-0.0.5.win-amd64.zip | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simple_progress_bar-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.8 kB
Release files / simple_progress_bar-0.0.5.win-amd64.zip
| Download URL | simple_progress_bar-0.0.5.win-amd64.zip |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69a8f90209a1ddc83505920503950101ea7f836c1e73f5687ecc7f55a4342b45
|
|
BLAKE2b-256 checksum How to use checksums |
b5fac6310498560e4f961ffb613baf94545a73329703de6354a712b507667460
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / simple_progress_bar-0.0.5-py3-none-any.whl
| Download URL | simple_progress_bar-0.0.5-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
830d2e065d874a64186cf9717adc429c5334c97b1291d2614dbbced24f4ad09b
|
|
BLAKE2b-256 checksum How to use checksums |
0c030270a7818020f11e8e49dd983af29502b5040fa652a33ae3d4abc50eabaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|