progress-table 2.2.1__tar.gz → 2.2.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-2.2.1 → progress-table-2.2.3}/PKG-INFO +9 -9
- {progress-table-2.2.1 → progress-table-2.2.3}/README.md +4 -4
- {progress-table-2.2.1 → progress-table-2.2.3}/progress_table/__init__.py +1 -1
- {progress-table-2.2.1 → progress-table-2.2.3}/progress_table/v1/progress_table.py +1 -1
- {progress-table-2.2.1 → progress-table-2.2.3}/progress_table/v1/styles.py +28 -7
- {progress-table-2.2.1 → progress-table-2.2.3}/progress_table.egg-info/PKG-INFO +9 -9
- {progress-table-2.2.1 → progress-table-2.2.3}/setup.py +11 -1
- {progress-table-2.2.1 → progress-table-2.2.3}/tests/test_docs_automated.py +2 -1
- {progress-table-2.2.1 → progress-table-2.2.3}/tests/test_examples_automated.py +1 -1
- {progress-table-2.2.1 → progress-table-2.2.3}/LICENSE.txt +0 -0
- {progress-table-2.2.1 → progress-table-2.2.3}/progress_table/v0/__init__.py +0 -0
- {progress-table-2.2.1 → progress-table-2.2.3}/progress_table/v0/progress_table.py +0 -0
- {progress-table-2.2.1 → progress-table-2.2.3}/progress_table/v0/symbols.py +0 -0
- {progress-table-2.2.1 → progress-table-2.2.3}/progress_table/v1/__init__.py +0 -0
- {progress-table-2.2.1 → progress-table-2.2.3}/progress_table/v1/common.py +0 -0
- {progress-table-2.2.1 → progress-table-2.2.3}/progress_table.egg-info/PKG-INFO.sync-conflict-20240314-015933-NXTV2IO +0 -0
- {progress-table-2.2.1 → progress-table-2.2.3}/progress_table.egg-info/SOURCES.txt +0 -0
- {progress-table-2.2.1 → progress-table-2.2.3}/progress_table.egg-info/dependency_links.txt +0 -0
- {progress-table-2.2.1 → progress-table-2.2.3}/progress_table.egg-info/requires.txt +0 -0
- {progress-table-2.2.1 → progress-table-2.2.3}/progress_table.egg-info/top_level.txt +0 -0
- {progress-table-2.2.1 → progress-table-2.2.3}/pyproject.toml +0 -0
- {progress-table-2.2.1 → progress-table-2.2.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: progress-table
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.3
|
|
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
|
|
@@ -37,29 +37,29 @@ Lightweight utility to display the progress of your process as a pretty table in
|
|
|
37
37
|
|
|
38
38
|
### Change this:
|
|
39
39
|
|
|
40
|
-

|
|
41
41
|
|
|
42
42
|
### Into this:
|
|
43
43
|
|
|
44
|
-

|
|
45
45
|
|
|
46
46
|
## Examples
|
|
47
47
|
|
|
48
48
|
* Neural network training
|
|
49
49
|
|
|
50
|
-

|
|
50
|
+

|
|
51
51
|
|
|
52
52
|
* Progress of multi-threaded downloads
|
|
53
53
|
|
|
54
|
-

|
|
54
|
+

|
|
55
55
|
|
|
56
56
|
* Simulation and interactive display of Brownian motion
|
|
57
57
|
|
|
58
|
-

|
|
58
|
+

|
|
59
59
|
|
|
60
60
|
* Display of a game board
|
|
61
61
|
|
|
62
|
-

|
|
62
|
+

|
|
63
63
|
|
|
64
64
|
## Quick start code
|
|
65
65
|
|
|
@@ -100,12 +100,12 @@ table.close()
|
|
|
100
100
|
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
> Go to [integrations](https://github.com/sjmikler/progress-table/blob/main/docs
|
|
103
|
+
> Go to [integrations](https://github.com/sjmikler/progress-table/blob/main/docs//integrations.md)
|
|
104
104
|
> page to see examples of integration with deep learning libraries.
|
|
105
105
|
|
|
106
106
|
## Advanced usage
|
|
107
107
|
|
|
108
|
-
Go to [advanced usage](https://github.com/sjmikler/progress-table/blob/main/docs
|
|
108
|
+
Go to [advanced usage](https://github.com/sjmikler/progress-table/blob/main/docs//advanced-usage.md) page for more information.
|
|
109
109
|
|
|
110
110
|
## Troubleshooting
|
|
111
111
|
|
|
@@ -16,11 +16,11 @@ Lightweight utility to display the progress of your process as a pretty table in
|
|
|
16
16
|
|
|
17
17
|
### Change this:
|
|
18
18
|
|
|
19
|
-

|
|
20
20
|
|
|
21
21
|
### Into this:
|
|
22
22
|
|
|
23
|
-

|
|
24
24
|
|
|
25
25
|
## Examples
|
|
26
26
|
|
|
@@ -79,12 +79,12 @@ table.close()
|
|
|
79
79
|
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
> Go to [integrations](
|
|
82
|
+
> Go to [integrations](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](
|
|
87
|
+
Go to [advanced usage](docs/advanced-usage.md) page for more information.
|
|
88
88
|
|
|
89
89
|
## Troubleshooting
|
|
90
90
|
|
|
@@ -119,7 +119,7 @@ class ProgressTableV1:
|
|
|
119
119
|
pbar_show_eta: bool = False,
|
|
120
120
|
pbar_embedded: bool = True,
|
|
121
121
|
pbar_style: str | Type[styles.PbarStyleBase] = "square",
|
|
122
|
-
pbar_style_embed: str | Type[styles.PbarStyleBase] = "
|
|
122
|
+
pbar_style_embed: str | Type[styles.PbarStyleBase] = "cdots",
|
|
123
123
|
print_header_on_top: bool = True,
|
|
124
124
|
print_header_every_n_rows: int = 30,
|
|
125
125
|
custom_cell_format: Callable[[Any], str] | None = None,
|
|
@@ -134,13 +134,6 @@ class PbarStyleAngled(PbarStyleBase):
|
|
|
134
134
|
head = "▰"
|
|
135
135
|
|
|
136
136
|
|
|
137
|
-
class PbarStyleEmbed(PbarStyleBase):
|
|
138
|
-
name = "embed"
|
|
139
|
-
filled = "ꞏ"
|
|
140
|
-
empty = " "
|
|
141
|
-
head = ">"
|
|
142
|
-
|
|
143
|
-
|
|
144
137
|
class PbarStyleRich(PbarStyleBase):
|
|
145
138
|
name = "rich"
|
|
146
139
|
filled = "━"
|
|
@@ -156,6 +149,34 @@ class PbarStyleRich(PbarStyleBase):
|
|
|
156
149
|
self.empty = self.filled
|
|
157
150
|
|
|
158
151
|
|
|
152
|
+
class PbarStyleCdots(PbarStyleBase):
|
|
153
|
+
name = "cdots"
|
|
154
|
+
filled = "ꞏ"
|
|
155
|
+
empty = " "
|
|
156
|
+
head = ">"
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
class PbarStyleDash(PbarStyleBase):
|
|
160
|
+
name = "dash"
|
|
161
|
+
filled = "-"
|
|
162
|
+
empty = " "
|
|
163
|
+
head = ">"
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
class PbarStyleUnder(PbarStyleBase):
|
|
167
|
+
name = "under"
|
|
168
|
+
filled = "_"
|
|
169
|
+
empty = " "
|
|
170
|
+
head = "_"
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
class PbarStyleDoubleDash(PbarStyleBase):
|
|
174
|
+
name = "doubledash"
|
|
175
|
+
filled = "="
|
|
176
|
+
empty = " "
|
|
177
|
+
head = ">"
|
|
178
|
+
|
|
179
|
+
|
|
159
180
|
class PbarStyleNone(PbarStyleBase):
|
|
160
181
|
name = "hidden"
|
|
161
182
|
filled = " "
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: progress-table
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.3
|
|
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
|
|
@@ -37,29 +37,29 @@ Lightweight utility to display the progress of your process as a pretty table in
|
|
|
37
37
|
|
|
38
38
|
### Change this:
|
|
39
39
|
|
|
40
|
-

|
|
41
41
|
|
|
42
42
|
### Into this:
|
|
43
43
|
|
|
44
|
-

|
|
45
45
|
|
|
46
46
|
## Examples
|
|
47
47
|
|
|
48
48
|
* Neural network training
|
|
49
49
|
|
|
50
|
-

|
|
50
|
+

|
|
51
51
|
|
|
52
52
|
* Progress of multi-threaded downloads
|
|
53
53
|
|
|
54
|
-

|
|
54
|
+

|
|
55
55
|
|
|
56
56
|
* Simulation and interactive display of Brownian motion
|
|
57
57
|
|
|
58
|
-

|
|
58
|
+

|
|
59
59
|
|
|
60
60
|
* Display of a game board
|
|
61
61
|
|
|
62
|
-

|
|
62
|
+

|
|
63
63
|
|
|
64
64
|
## Quick start code
|
|
65
65
|
|
|
@@ -100,12 +100,12 @@ table.close()
|
|
|
100
100
|
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
> Go to [integrations](https://github.com/sjmikler/progress-table/blob/main/docs
|
|
103
|
+
> Go to [integrations](https://github.com/sjmikler/progress-table/blob/main/docs//integrations.md)
|
|
104
104
|
> page to see examples of integration with deep learning libraries.
|
|
105
105
|
|
|
106
106
|
## Advanced usage
|
|
107
107
|
|
|
108
|
-
Go to [advanced usage](https://github.com/sjmikler/progress-table/blob/main/docs
|
|
108
|
+
Go to [advanced usage](https://github.com/sjmikler/progress-table/blob/main/docs//advanced-usage.md) page for more information.
|
|
109
109
|
|
|
110
110
|
## Troubleshooting
|
|
111
111
|
|
|
@@ -21,6 +21,16 @@ def get_version():
|
|
|
21
21
|
|
|
22
22
|
long_description = package_relative_path("README.md").read_text(encoding="UTF-8")
|
|
23
23
|
|
|
24
|
+
|
|
25
|
+
def with_direct_github_urls(description):
|
|
26
|
+
images_github_link = "https://raw.githubusercontent.com/sjmikler/progress-table/main/images"
|
|
27
|
+
description = description.replace("(images", "(" + images_github_link)
|
|
28
|
+
|
|
29
|
+
docs_github_link = "https://github.com/sjmikler/progress-table/blob/main/docs/"
|
|
30
|
+
description = description.replace("(docs", "(" + docs_github_link)
|
|
31
|
+
return description
|
|
32
|
+
|
|
33
|
+
|
|
24
34
|
setup(
|
|
25
35
|
name="progress-table",
|
|
26
36
|
version=get_version(),
|
|
@@ -42,6 +52,6 @@ setup(
|
|
|
42
52
|
"Programming Language :: Python :: 3.12",
|
|
43
53
|
],
|
|
44
54
|
install_requires=["colorama"],
|
|
45
|
-
long_description=long_description,
|
|
55
|
+
long_description=with_direct_github_urls(long_description),
|
|
46
56
|
long_description_content_type="text/markdown",
|
|
47
57
|
)
|
|
@@ -23,6 +23,7 @@ def scan_for_code_blobs(text):
|
|
|
23
23
|
new_blobs = []
|
|
24
24
|
for mode, blob in blobs:
|
|
25
25
|
if "..." in blob:
|
|
26
|
+
# ignore blobs that are not complete
|
|
26
27
|
continue
|
|
27
28
|
header = get_header(f"Generated ({mode})")
|
|
28
29
|
blob = header + blob
|
|
@@ -41,7 +42,7 @@ def test_all_code_blobs():
|
|
|
41
42
|
# Testing whether code blobs from the documentation run without errors
|
|
42
43
|
all_code_blobs = []
|
|
43
44
|
|
|
44
|
-
for root, dirs, files in os.walk(""):
|
|
45
|
+
for root, dirs, files in os.walk("."):
|
|
45
46
|
for file in files:
|
|
46
47
|
path = pathlib.Path(os.path.join(root, file))
|
|
47
48
|
if path.suffix == ".md":
|
|
@@ -7,7 +7,7 @@ from glob import glob
|
|
|
7
7
|
from io import StringIO
|
|
8
8
|
|
|
9
9
|
EXPECTED_OUTPUTS = {
|
|
10
|
-
"examples.training": "
|
|
10
|
+
"examples.training": "6993e60d3edc3cb48014480fc4890404",
|
|
11
11
|
"examples.tictactoe": "378133fb7804a678282564d751068531",
|
|
12
12
|
"examples.brown2d": "c0f37fdfcfc2db6ef465473c67c05d83",
|
|
13
13
|
}
|
|
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
|