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
Copy file name to clipboardExpand all lines: PyLoadBar/main.py
+44-42Lines changed: 44 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -10,29 +10,29 @@
10
10
sys.path.insert(0, dirname(
11
11
dirname(__file__))) # Ensure module can be found by Python.
12
12
13
-
__version__='0.1.1'
13
+
__version__='0.2.0'
14
14
15
15
16
16
classPyLoadBar:
17
-
"""Generate loading sequences with ability to customize start/finish messages, toggle visual progress meter, and set time to completion.
17
+
"""Create loading sequences with ability to customize start/finish messages, toggle between bar/text progress sequences, and set length of progress sequences.
18
18
19
19
---
20
20
21
21
Settings:
22
22
23
23
- When instantiating a new :class:`PyLoadBar` object, you can set the sequence type using :param:`bar_sequence`.
:param label: label displayed alongside progress bar, defaults to `None`
91
+
:type label: :class:`str` | `None`, optional
92
+
:param iter_total: total amount of iterations to run, defaults to `5`
93
93
:type iter_total: :class:`int`, optional
94
-
:param min_iter: minimum possible time to complete an iteration, defaults to 0.01 seconds
94
+
:param min_iter: minimum possible time to complete an iteration, defaults to `0.01` seconds
95
95
:type min_iter: :class:`float`, optional
96
-
:param max_iter: maximum possible time to complete an iteration, defaults to 0.5 seconds
96
+
:param max_iter: maximum possible time to complete an iteration, defaults to `0.5` seconds
97
97
:type max_iter: :class:`float`, optional
98
-
:param txt_seq_speed: number of seconds to complete a single text-sequence iteration, defaults to 0.5 seconds
99
-
:type txt_seq_speed: :class:`float`, optional
98
+
:param txt_iter_speed: number of seconds to complete a single text-sequence iteration (only usable if :param:`self.bar_sequence` == :bool:`False`), defaults to `0.5` seconds
Copy file name to clipboardExpand all lines: README.md
+5-24Lines changed: 5 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# PyLoadBar
2
2
3
-
> _**Customizeable loading sequence/progress bar generator, enabling users to customize start/finish messages, toggle sequence type, and set total iterations among other features.**_
3
+
> _**Loading sequence/progress bar generator with options for users to customize start/finish messages, toggle between bar/text sequences, and set total iterations among other features.**_
4
4
5
5
---
6
6
@@ -34,7 +34,7 @@
34
34
- 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.
35
35
36
36
- The _text-based_ loading sequence displays the loading message followed by incrementing dots, all printed to the same line.
37
-
- Set number of seconds to complete a single text-sequence iteration using `txt_seq_speed: float`.
37
+
- Set number of seconds to complete a single text-sequence iteration using `txt_iter_speed: float`.
# Note that during actual use case, text is printed to same line followed by incrementing dots:
116
-
117
-
Loading
118
-
Loading.
119
-
Loading..
120
-
Loading...
121
-
122
-
Done!
123
112
```
124
113
125
-
---
126
-
127
-
## Contributing to PyLoadBar
128
-
129
-
- If you wish to help contribute to this project, please run the following in your virtual env to acquire the necessary dependencies and tools you need to develop and run tests:
Copy file name to clipboardExpand all lines: setup.py
+2-3Lines changed: 2 additions & 3 deletions
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.1.1",
10
+
version="0.2.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.',
13
13
url='https://github.com/schlopp96/PyLoadBar',
@@ -19,7 +19,6 @@
19
19
packages=find_packages(),
20
20
include_package_data=True,
21
21
install_requires=[reqs],
22
-
extras_require={"dev": ["pytest>=6.2.5"]},
23
22
classifiers=[
24
23
"Development Status :: 3 - Alpha", "Intended Audience :: Developers",
25
24
"Intended Audience :: End Users/Desktop",
@@ -31,5 +30,5 @@
31
30
"Programming Language :: Python :: 3.10", "Topic :: Utilities"
0 commit comments