You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Overhauled `PyLoadBar` class.
- Replaced "load" method with "start" method.
- Sequence type is now set upon initialization of `PyLoadBar` object.
- Implemented customizeable iteration length of text-sequence.
- Total iterations can now be set.
- Iterations now take random amount of time to complete to add realism.
- Min/Max time to complete iteration is set upon calling "start()".
- Re-wrote tests.
- Updated requirements.txt to be less strict.
- Updated "setup.py".
- Expanded upon source code docstrings.
- Updated README.md sections and added more content.
- Appropriately renamed several parameters.
Signed-off-by: schlopp96 <71921821+schlopp96@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,18 +13,20 @@
13
13
-**A.**_Progress-bar_ style loading sequence
14
14
-**B.**_Animated-text_ style loading sequence
15
15
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.
16
+
- When instantiating a `PyLoadBar` object, you may set the type of loading sequence using the `bar_sequence: bool` parameter.
17
+
18
+
- Once initialized, run the loading sequence using the `start()` method, and set sequence configuration using parameters.
19
+
20
+
- Messages can be customized by passing custom strings to the `msg_loading: str` and `msg_complete: str` parameters respectively.
17
21
18
22
- The loading message defaults to `"Loading..."`
19
23
- The completion message defaults to `"Done!"`
20
24
21
25
- You may apply a label to the progress bar using the `label: str` parameter (defaults to `None`).
22
26
23
-
-**NOTE:**`enable_bar: bool` must be set to `True` for a label to be assigned to the progress bar.
24
-
25
-
- The desired loading sequence **can be toggled** using the `enable_bar: bool` parameter.
27
+
-**NOTE:**`bar_sequence: bool` must be set to `True` for a label to be assigned to the progress bar.
26
28
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.
29
+
- If `bar_sequence: bool` is `False`, the _progress-bar sequence_ will **not** be used, and the _animated text-based_ loading sequence **will** be used instead.
28
30
29
31
- 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.
Copy file name to clipboardExpand all lines: setup.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
8
setup(
9
9
name='PyLoadBar',
10
-
version="0.0.9.2",
10
+
version="0.1.0",
11
11
description=
12
12
'Customizeable loading sequence/progress bar generator, enabling users to customize start/finish messages, toggle sequence type, and set total iterations among other features.',
0 commit comments