Skip to content

Commit ae38aae

Browse files
committed
PyLoadBar v0.0.9.2 Hotfix
- Fixed typo in method docstring. - Added missing context to **"./README.md"**. Signed-off-by: schlopp96 <71921821+schlopp96@users.noreply.github.com>
1 parent 6c08e70 commit ae38aae

3 files changed

Lines changed: 17 additions & 14 deletions

File tree

PyLoadBar/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
chdir(dirname(__file__)) # Change working directory to main module.
1515

16-
__version__ = '0.0.9.1'
16+
__version__ = '0.0.9.2'
1717

1818

1919
class PyLoadBar:
@@ -83,7 +83,7 @@ def start(
8383
- Time taken by each individual iteration is randomized within range of :param:`min_iter` and :param:`max_iter`.
8484
8585
- Set number of seconds to complete a single text-sequence iteration using :param:`txt_seq_speed`.
86-
-
86+
- Defaults to `0.5` seconds per iteration/animation cycle.
8787
8888
---
8989

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,10 @@
1010

1111
- Users can choose between two different loading sequences:
1212

13-
- **A.** Progress-bar style loading sequence
14-
- **B.** Animated-text style loading sequence
13+
- **A.** _Progress-bar_ style loading sequence
14+
- **B.** _Animated-text_ style loading sequence
1515

16-
- The desired loading sequence **can be toggled** using the `enable_bar: bool` parameter.
17-
18-
- If `enable_bar: bool` is `False`, the progress-bar sequence will not be used, and the animated text-based loading sequence will be used instead.
19-
20-
- The text-based loading sequence displays the loading message followed by incrementing dots, all printed to the same line.
21-
22-
- Messages can be customized by passing custom strings to the `msg_loading: str` and `msg_complete: str` parameters respectively.
16+
- When instantiating a `PyLoadBar` object, messages can be customized by passing custom strings to the `msg_loading: str` and `msg_complete: str` parameters respectively.
2317

2418
- The loading message defaults to `"Loading..."`
2519
- The completion message defaults to `"Done!"`
@@ -28,10 +22,19 @@
2822

2923
- **NOTE:** `enable_bar: bool` must be set to `True` for a label to be assigned to the progress bar.
3024

31-
- The time taken to complete each iteration can be determined using the `min_iter: float` and `max_iter: float` parameters.
25+
- The desired loading sequence **can be toggled** using the `enable_bar: bool` parameter.
26+
27+
- If `enable_bar: bool` is `False`, the progress-bar sequence will not be used, and the animated text-based loading sequence will be used instead.
28+
29+
- When calling the `start()` method and using the _progress-bar_ sequence, the time taken to complete each iteration can be determined using the `min_iter: float` and `max_iter: float` parameters.
30+
3231
- Each iteration length is randomized to a value between `min_iter: float` and `max_iter: float` seconds.
3332
- e.g. `start(min_iter=0.5, max_iter=1.5)` would take anywhere between 0.5 - 1.5 seconds to complete a single iteration.
3433

34+
- The _text-based_ loading sequence displays the loading message followed by incrementing dots, all printed to the same line.
35+
- Set number of seconds to complete a single text-sequence iteration using `txt_seq_speed: float`.
36+
- Defaults to `0.5` seconds per animation cycle.
37+
3538
---
3639

3740
## Installing PyLoadBar
@@ -105,7 +108,7 @@ gh repo clone schlopp96/PyLoadBar
105108

106109
>>> bar = PyLoadBar(msg_loading='Loading', msg_complete='Done!', enable_bar=False) # Initialize loading sequence.
107110

108-
>>> bar.start(iter_total=1) # Start animated-text loading sequence.
111+
>>> bar.start(iter_total=1, txt_iter_speed=1) # Start animated-text loading sequence.
109112

110113
# Note that during actual use case, text is printed to same line followed by incrementing dots:
111114

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name='PyLoadBar',
10-
version="0.0.9.1",
10+
version="0.0.9.2",
1111
description=
1212
'Customizeable loading sequence/progress bar generator, enabling users to customize start/finish messages, toggle sequence type, and set total iterations among other features.',
1313
url='https://github.com/schlopp96/PyLoadBar',

0 commit comments

Comments
 (0)