progress-table 3.3.1__tar.gz → 3.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {progress_table-3.3.1 → progress_table-3.3.3}/PKG-INFO +16 -18
- {progress_table-3.3.1 → progress_table-3.3.3}/README.md +3 -3
- {progress_table-3.3.1 → progress_table-3.3.3}/README_pypi.md +11 -11
- {progress_table-3.3.1 → progress_table-3.3.3}/examples/training.py +10 -2
- {progress_table-3.3.1 → progress_table-3.3.3}/progress_table/__init__.py +1 -1
- {progress_table-3.3.1 → progress_table-3.3.3}/progress_table/common.py +1 -1
- {progress_table-3.3.1 → progress_table-3.3.3}/progress_table/progress_table.py +9 -5
- {progress_table-3.3.1 → progress_table-3.3.3}/pyproject.toml +6 -8
- {progress_table-3.3.1 → progress_table-3.3.3}/.gitignore +0 -0
- {progress_table-3.3.1 → progress_table-3.3.3}/LICENSE.txt +0 -0
- {progress_table-3.3.1 → progress_table-3.3.3}/docs/advanced-usage.md +0 -0
- {progress_table-3.3.1 → progress_table-3.3.3}/docs/integrations.md +0 -0
- {progress_table-3.3.1 → progress_table-3.3.3}/docs/v3-notice.md +0 -0
- {progress_table-3.3.1 → progress_table-3.3.3}/examples/brown2d.py +0 -0
- {progress_table-3.3.1 → progress_table-3.3.3}/examples/download_v1.py +0 -0
- {progress_table-3.3.1 → progress_table-3.3.3}/examples/download_v2.py +0 -0
- {progress_table-3.3.1 → progress_table-3.3.3}/examples/tictactoe.py +0 -0
- {progress_table-3.3.1 → progress_table-3.3.3}/progress_table/styles.py +0 -0
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: progress-table
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.3
|
|
4
4
|
Summary: Display progress as a pretty table in the command line.
|
|
5
|
-
Project-URL: Home, https://github.com/
|
|
6
|
-
Project-URL: Documentation, https://github.com/
|
|
5
|
+
Project-URL: Home, https://github.com/szmikler/progress-table
|
|
6
|
+
Project-URL: Documentation, https://github.com/szmikler/progress-table/blob/main/docs
|
|
7
7
|
Author-email: Szymon Mikler <sjmikler@gmail.com>
|
|
8
8
|
License: MIT
|
|
9
9
|
License-File: LICENSE.txt
|
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
15
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
-
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Requires-Python: >=3.10
|
|
20
18
|
Requires-Dist: colorama
|
|
21
19
|
Requires-Dist: wcwidth
|
|
22
20
|
Provides-Extra: dev
|
|
@@ -31,8 +29,8 @@ Description-Content-Type: text/markdown
|
|
|
31
29
|
# Progress Table
|
|
32
30
|
|
|
33
31
|
[](https://pypi.org/project/progress-table)
|
|
34
|
-
[](https://github.com/
|
|
35
|
-
[](https://github.com/szmikler/progress-table/blob/main/LICENSE.txt)
|
|
33
|
+
[](https://codecov.io/gh/szmikler/progress-table)
|
|
36
34
|
|
|
37
35
|
Lightweight utility to display the progress of your process as a pretty table in the command line.
|
|
38
36
|
|
|
@@ -44,11 +42,11 @@ Lightweight utility to display the progress of your process as a pretty table in
|
|
|
44
42
|
|
|
45
43
|
### Change this:
|
|
46
44
|
|
|
47
|
-

|
|
48
46
|
|
|
49
47
|
### Into this:
|
|
50
48
|
|
|
51
|
-

|
|
52
50
|
|
|
53
51
|
## Examples
|
|
54
52
|
|
|
@@ -56,19 +54,19 @@ From `examples/` directory:
|
|
|
56
54
|
|
|
57
55
|
* Neural network training
|
|
58
56
|
|
|
59
|
-

|
|
60
58
|
|
|
61
59
|
* Progress of multi-threaded downloads
|
|
62
60
|
|
|
63
|
-

|
|
64
62
|
|
|
65
63
|
* Simulation and interactive display of Brownian motion
|
|
66
64
|
|
|
67
|
-

|
|
68
66
|
|
|
69
67
|
* Display of a game board
|
|
70
68
|
|
|
71
|
-

|
|
72
70
|
|
|
73
71
|
## Quick start code
|
|
74
72
|
|
|
@@ -109,12 +107,12 @@ table.close()
|
|
|
109
107
|
|
|
110
108
|
```
|
|
111
109
|
|
|
112
|
-
> Go to [integrations](https://github.com/
|
|
110
|
+
> Go to [integrations](https://github.com/szmikler/progress-table/blob/main/docs//integrations.md)
|
|
113
111
|
> page to see examples of integration with deep learning libraries.
|
|
114
112
|
|
|
115
113
|
## Advanced usage
|
|
116
114
|
|
|
117
|
-
Go to [advanced usage](https://github.com/
|
|
115
|
+
Go to [advanced usage](https://github.com/szmikler/progress-table/blob/main/docs//advanced-usage.md) page for more information.
|
|
118
116
|
|
|
119
117
|
## Troubleshooting
|
|
120
118
|
|
|
@@ -142,7 +140,7 @@ pip install progress-table
|
|
|
142
140
|
|
|
143
141
|
## Links
|
|
144
142
|
|
|
145
|
-
* [See on GitHub](https://github.com/
|
|
143
|
+
* [See on GitHub](https://github.com/szmikler/progress-table)
|
|
146
144
|
* [See on PyPI](https://pypi.org/project/progress-table)
|
|
147
145
|
|
|
148
146
|
## Alternatives
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Progress Table
|
|
2
2
|
|
|
3
3
|
[](https://pypi.org/project/progress-table)
|
|
4
|
-
[](https://github.com/
|
|
5
|
-
[](https://github.com/szmikler/progress-table/blob/main/LICENSE.txt)
|
|
5
|
+
[](https://codecov.io/gh/szmikler/progress-table)
|
|
6
6
|
|
|
7
7
|
Lightweight utility to display the progress of your process as a pretty table in the command line.
|
|
8
8
|
|
|
@@ -112,7 +112,7 @@ pip install progress-table
|
|
|
112
112
|
|
|
113
113
|
## Links
|
|
114
114
|
|
|
115
|
-
* [See on GitHub](https://github.com/
|
|
115
|
+
* [See on GitHub](https://github.com/szmikler/progress-table)
|
|
116
116
|
* [See on PyPI](https://pypi.org/project/progress-table)
|
|
117
117
|
|
|
118
118
|
## Alternatives
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Progress Table
|
|
2
2
|
|
|
3
3
|
[](https://pypi.org/project/progress-table)
|
|
4
|
-
[](https://github.com/
|
|
5
|
-
[](https://github.com/szmikler/progress-table/blob/main/LICENSE.txt)
|
|
5
|
+
[](https://codecov.io/gh/szmikler/progress-table)
|
|
6
6
|
|
|
7
7
|
Lightweight utility to display the progress of your process as a pretty table in the command line.
|
|
8
8
|
|
|
@@ -14,11 +14,11 @@ Lightweight utility to display the progress of your process as a pretty table in
|
|
|
14
14
|
|
|
15
15
|
### Change this:
|
|
16
16
|
|
|
17
|
-

|
|
18
18
|
|
|
19
19
|
### Into this:
|
|
20
20
|
|
|
21
|
-

|
|
22
22
|
|
|
23
23
|
## Examples
|
|
24
24
|
|
|
@@ -26,19 +26,19 @@ From `examples/` directory:
|
|
|
26
26
|
|
|
27
27
|
* Neural network training
|
|
28
28
|
|
|
29
|
-

|
|
30
30
|
|
|
31
31
|
* Progress of multi-threaded downloads
|
|
32
32
|
|
|
33
|
-

|
|
34
34
|
|
|
35
35
|
* Simulation and interactive display of Brownian motion
|
|
36
36
|
|
|
37
|
-

|
|
38
38
|
|
|
39
39
|
* Display of a game board
|
|
40
40
|
|
|
41
|
-

|
|
42
42
|
|
|
43
43
|
## Quick start code
|
|
44
44
|
|
|
@@ -79,12 +79,12 @@ table.close()
|
|
|
79
79
|
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
> Go to [integrations](https://github.com/
|
|
82
|
+
> Go to [integrations](https://github.com/szmikler/progress-table/blob/main/docs//integrations.md)
|
|
83
83
|
> page to see examples of integration with deep learning libraries.
|
|
84
84
|
|
|
85
85
|
## Advanced usage
|
|
86
86
|
|
|
87
|
-
Go to [advanced usage](https://github.com/
|
|
87
|
+
Go to [advanced usage](https://github.com/szmikler/progress-table/blob/main/docs//advanced-usage.md) page for more information.
|
|
88
88
|
|
|
89
89
|
## Troubleshooting
|
|
90
90
|
|
|
@@ -112,7 +112,7 @@ pip install progress-table
|
|
|
112
112
|
|
|
113
113
|
## Links
|
|
114
114
|
|
|
115
|
-
* [See on GitHub](https://github.com/
|
|
115
|
+
* [See on GitHub](https://github.com/szmikler/progress-table)
|
|
116
116
|
* [See on PyPI](https://pypi.org/project/progress-table)
|
|
117
117
|
|
|
118
118
|
## Alternatives
|
|
@@ -86,7 +86,11 @@ def main(random_seed=None, sleep_duration=SLEEP_DURATION, **overrides):
|
|
|
86
86
|
X_batches = np.array_split(X_train, NUM_BATCHES)
|
|
87
87
|
Y_batches = np.array_split(Y_train, NUM_BATCHES)
|
|
88
88
|
|
|
89
|
-
for batch in table(
|
|
89
|
+
for batch in table(
|
|
90
|
+
zip(X_batches, Y_batches, strict=True),
|
|
91
|
+
total=NUM_BATCHES,
|
|
92
|
+
description="train epoch",
|
|
93
|
+
):
|
|
90
94
|
x, y = batch
|
|
91
95
|
logits = x @ weights
|
|
92
96
|
|
|
@@ -108,7 +112,11 @@ def main(random_seed=None, sleep_duration=SLEEP_DURATION, **overrides):
|
|
|
108
112
|
X_batches = np.array_split(X_valid, NUM_BATCHES)
|
|
109
113
|
Y_batches = np.array_split(Y_valid, NUM_BATCHES)
|
|
110
114
|
|
|
111
|
-
for batch in table(
|
|
115
|
+
for batch in table(
|
|
116
|
+
zip(X_batches, Y_batches, strict=True),
|
|
117
|
+
total=NUM_BATCHES,
|
|
118
|
+
description="valid epoch",
|
|
119
|
+
):
|
|
112
120
|
x, y = batch
|
|
113
121
|
logits = x @ weights
|
|
114
122
|
accuracy = np.mean(np.argmax(logits, axis=1) == y)
|
|
@@ -55,7 +55,7 @@ def maybe_convert_to_colorama(color: ColorFormat) -> str:
|
|
|
55
55
|
|
|
56
56
|
def is_ipython_kernel() -> bool:
|
|
57
57
|
try:
|
|
58
|
-
from IPython.core.getipython import get_ipython
|
|
58
|
+
from IPython.core.getipython import get_ipython # pyright: ignore[reportMissingImports]
|
|
59
59
|
|
|
60
60
|
ipython = get_ipython()
|
|
61
61
|
if ipython is not None:
|
|
@@ -358,9 +358,13 @@ class ProgressTable:
|
|
|
358
358
|
else:
|
|
359
359
|
self.column_names.append(name)
|
|
360
360
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
361
|
+
if width is not None:
|
|
362
|
+
resolved_width = width
|
|
363
|
+
elif self.column_width is not None:
|
|
364
|
+
resolved_width = self.column_width
|
|
365
|
+
else:
|
|
366
|
+
resolved_width = self.DEFAULT_COLUMN_WIDTH
|
|
367
|
+
resolved_width = max(resolved_width, len(name))
|
|
364
368
|
self.column_widths[name] = resolved_width
|
|
365
369
|
self.column_colors[name] = maybe_convert_to_colorama(color or self.column_color or self.DEFAULT_COLUMN_COLOR)
|
|
366
370
|
self.column_alignments[name] = alignment or self.column_alignment or self.DEFAULT_COLUMN_ALIGNMENT
|
|
@@ -401,7 +405,7 @@ class ProgressTable:
|
|
|
401
405
|
column_names: Names of the columns in the desired order.
|
|
402
406
|
|
|
403
407
|
"""
|
|
404
|
-
if all(x == y for x, y in zip(column_names, self.column_names)):
|
|
408
|
+
if all(x == y for x, y in zip(column_names, self.column_names, strict=True)):
|
|
405
409
|
return
|
|
406
410
|
|
|
407
411
|
assert isinstance(column_names, (list, tuple))
|
|
@@ -557,7 +561,7 @@ class ProgressTable:
|
|
|
557
561
|
if not self._data_rows[-1].is_empty():
|
|
558
562
|
self.next_row(**kwds)
|
|
559
563
|
|
|
560
|
-
for key, value in zip(self.column_names, values):
|
|
564
|
+
for key, value in zip(self.column_names, values, strict=False):
|
|
561
565
|
self.update(key, value)
|
|
562
566
|
|
|
563
567
|
# The row was explicitly added, make sure it is displayed
|
|
@@ -8,26 +8,24 @@ dynamic = ["version"]
|
|
|
8
8
|
description = "Display progress as a pretty table in the command line."
|
|
9
9
|
dependencies = ["colorama", "wcwidth"]
|
|
10
10
|
license = { text = "MIT" }
|
|
11
|
-
requires-python = ">=3.
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
12
|
authors = [
|
|
13
13
|
{ name = "Szymon Mikler", email = "sjmikler@gmail.com" }
|
|
14
14
|
]
|
|
15
15
|
classifiers = [
|
|
16
16
|
"License :: OSI Approved :: MIT License",
|
|
17
17
|
"Programming Language :: Python :: 3",
|
|
18
|
-
"Programming Language :: Python :: 3.7",
|
|
19
|
-
"Programming Language :: Python :: 3.8",
|
|
20
|
-
"Programming Language :: Python :: 3.9",
|
|
21
18
|
"Programming Language :: Python :: 3.10",
|
|
22
19
|
"Programming Language :: Python :: 3.11",
|
|
23
20
|
"Programming Language :: Python :: 3.12",
|
|
24
21
|
"Programming Language :: Python :: 3.13",
|
|
22
|
+
"Programming Language :: Python :: 3.14",
|
|
25
23
|
]
|
|
26
24
|
readme = "README_pypi.md"
|
|
27
25
|
|
|
28
26
|
[project.urls]
|
|
29
|
-
Home = "https://github.com/
|
|
30
|
-
Documentation = "https://github.com/
|
|
27
|
+
Home = "https://github.com/szmikler/progress-table"
|
|
28
|
+
Documentation = "https://github.com/szmikler/progress-table/blob/main/docs"
|
|
31
29
|
|
|
32
30
|
[project.optional-dependencies]
|
|
33
31
|
dev = ["ruff", "pyright", "pytest", "pytest-cov", "hatch", "twine"]
|
|
@@ -52,7 +50,7 @@ exclude = ["devel", "build", "dist"]
|
|
|
52
50
|
|
|
53
51
|
[tool.ruff]
|
|
54
52
|
line-length = 120
|
|
55
|
-
target-version = "
|
|
53
|
+
target-version = "py313"
|
|
56
54
|
|
|
57
55
|
[tool.ruff.lint]
|
|
58
56
|
select = ["E", "F", "I", "B"]
|
|
@@ -71,4 +69,4 @@ profile = "black"
|
|
|
71
69
|
line_length = 120
|
|
72
70
|
|
|
73
71
|
[tool.black]
|
|
74
|
-
line_length = 120
|
|
72
|
+
line_length = 120
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|