progress-table 3.3.1__tar.gz → 3.3.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: progress-table
3
- Version: 3.3.1
3
+ Version: 3.3.2
4
4
  Summary: Display progress as a pretty table in the command line.
5
5
  Project-URL: Home, https://github.com/gahaalt/progress-table
6
6
  Project-URL: Documentation, https://github.com/sjmikler/progress-table/blob/main/docs
@@ -9,14 +9,12 @@ 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
- Requires-Python: >=3.7
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
@@ -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(zip(X_batches, Y_batches), total=NUM_BATCHES, description="train epoch"):
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(zip(X_batches, Y_batches), total=NUM_BATCHES, description="valid epoch"):
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)
@@ -10,7 +10,7 @@ Supported features:
10
10
  """
11
11
 
12
12
  __license__ = "MIT"
13
- __version__ = "3.3.1"
13
+ __version__ = "3.3.2"
14
14
  __author__ = "Szymon Mikler"
15
15
 
16
16
  from progress_table.progress_table import ProgressTable, styles
@@ -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:
@@ -401,7 +401,7 @@ class ProgressTable:
401
401
  column_names: Names of the columns in the desired order.
402
402
 
403
403
  """
404
- if all(x == y for x, y in zip(column_names, self.column_names)):
404
+ if all(x == y for x, y in zip(column_names, self.column_names, strict=True)):
405
405
  return
406
406
 
407
407
  assert isinstance(column_names, (list, tuple))
@@ -557,7 +557,7 @@ class ProgressTable:
557
557
  if not self._data_rows[-1].is_empty():
558
558
  self.next_row(**kwds)
559
559
 
560
- for key, value in zip(self.column_names, values):
560
+ for key, value in zip(self.column_names, values, strict=False):
561
561
  self.update(key, value)
562
562
 
563
563
  # The row was explicitly added, make sure it is displayed
@@ -8,20 +8,18 @@ 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.7"
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
 
@@ -52,7 +50,7 @@ exclude = ["devel", "build", "dist"]
52
50
 
53
51
  [tool.ruff]
54
52
  line-length = 120
55
- target-version = "py37"
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