progress-table 2.3.0__tar.gz → 2.3.1__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-2.3.0 → progress_table-2.3.1}/PKG-INFO +12 -2
- {progress_table-2.3.0 → progress_table-2.3.1}/progress_table/__init__.py +1 -1
- {progress_table-2.3.0 → progress_table-2.3.1}/progress_table/v1/progress_table.py +7 -3
- {progress_table-2.3.0 → progress_table-2.3.1}/progress_table.egg-info/PKG-INFO +12 -2
- {progress_table-2.3.0 → progress_table-2.3.1}/LICENSE.txt +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/README.md +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/progress_table/v0/__init__.py +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/progress_table/v0/progress_table.py +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/progress_table/v0/symbols.py +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/progress_table/v1/__init__.py +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/progress_table/v1/common.py +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/progress_table/v1/styles.py +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/progress_table.egg-info/PKG-INFO.sync-conflict-20240314-015933-NXTV2IO +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/progress_table.egg-info/SOURCES.txt +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/progress_table.egg-info/dependency_links.txt +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/progress_table.egg-info/requires.txt +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/progress_table.egg-info/top_level.txt +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/pyproject.toml +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/setup.cfg +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/setup.py +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/tests/test_docs_automated.py +0 -0
- {progress_table-2.3.0 → progress_table-2.3.1}/tests/test_examples_automated.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: progress-table
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.1
|
|
4
4
|
Summary: Display progress as a pretty table in the command line.
|
|
5
5
|
Home-page: https://github.com/gahaalt/progress-table.git
|
|
6
6
|
Author: Szymon Mikler
|
|
@@ -18,6 +18,16 @@ Requires-Python: >=3.7
|
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE.txt
|
|
20
20
|
Requires-Dist: colorama
|
|
21
|
+
Dynamic: author
|
|
22
|
+
Dynamic: author-email
|
|
23
|
+
Dynamic: classifier
|
|
24
|
+
Dynamic: description
|
|
25
|
+
Dynamic: description-content-type
|
|
26
|
+
Dynamic: home-page
|
|
27
|
+
Dynamic: license
|
|
28
|
+
Dynamic: requires-dist
|
|
29
|
+
Dynamic: requires-python
|
|
30
|
+
Dynamic: summary
|
|
21
31
|
|
|
22
32
|
> Version 2.X introduces new features and new interactive modes.
|
|
23
33
|
>
|
|
@@ -220,7 +220,7 @@ class ProgressTableV1:
|
|
|
220
220
|
|
|
221
221
|
self.files = (file,) if not isinstance(file, (list, tuple)) else file
|
|
222
222
|
|
|
223
|
-
assert print_header_every_n_rows
|
|
223
|
+
assert print_header_every_n_rows >= 0, "Value must be non-negative!"
|
|
224
224
|
self._print_header_on_top = print_header_on_top
|
|
225
225
|
self._print_header_every_n_rows = print_header_every_n_rows
|
|
226
226
|
self._previous_header_row_number = 0
|
|
@@ -412,7 +412,11 @@ class ProgressTableV1:
|
|
|
412
412
|
"""End the current row."""
|
|
413
413
|
|
|
414
414
|
# Force header if it wasn't printed for a long enough time
|
|
415
|
-
if
|
|
415
|
+
if (
|
|
416
|
+
header is None
|
|
417
|
+
and len(self._data_rows) - self._previous_header_row_number >= self._print_header_every_n_rows
|
|
418
|
+
and self._print_header_every_n_rows > 0
|
|
419
|
+
):
|
|
416
420
|
header = True
|
|
417
421
|
header = header or False
|
|
418
422
|
split = split or False
|
|
@@ -431,7 +435,7 @@ class ProgressTableV1:
|
|
|
431
435
|
self._append_new_empty_data_row()
|
|
432
436
|
# Add decorations and a new row
|
|
433
437
|
if header:
|
|
434
|
-
self._previous_header_row_number = len(self._data_rows)
|
|
438
|
+
self._previous_header_row_number = len(self._data_rows) - 1
|
|
435
439
|
self._latest_row_decorations.extend(["SPLIT MID", "HEADER", "SPLIT MID"])
|
|
436
440
|
elif split:
|
|
437
441
|
self._latest_row_decorations.append("SPLIT MID")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: progress-table
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.1
|
|
4
4
|
Summary: Display progress as a pretty table in the command line.
|
|
5
5
|
Home-page: https://github.com/gahaalt/progress-table.git
|
|
6
6
|
Author: Szymon Mikler
|
|
@@ -18,6 +18,16 @@ Requires-Python: >=3.7
|
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE.txt
|
|
20
20
|
Requires-Dist: colorama
|
|
21
|
+
Dynamic: author
|
|
22
|
+
Dynamic: author-email
|
|
23
|
+
Dynamic: classifier
|
|
24
|
+
Dynamic: description
|
|
25
|
+
Dynamic: description-content-type
|
|
26
|
+
Dynamic: home-page
|
|
27
|
+
Dynamic: license
|
|
28
|
+
Dynamic: requires-dist
|
|
29
|
+
Dynamic: requires-python
|
|
30
|
+
Dynamic: summary
|
|
21
31
|
|
|
22
32
|
> Version 2.X introduces new features and new interactive modes.
|
|
23
33
|
>
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|