progress-table 3.0.0__tar.gz → 3.0.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-3.0.1/PKG-INFO +159 -0
- {progress_table-3.0.0 → progress_table-3.0.1}/progress_table/__init__.py +1 -1
- {progress_table-3.0.0 → progress_table-3.0.1}/pyproject.toml +3 -2
- progress_table-3.0.0/PKG-INFO +0 -25
- {progress_table-3.0.0 → progress_table-3.0.1}/.gitignore +0 -0
- {progress_table-3.0.0 → progress_table-3.0.1}/LICENSE.txt +0 -0
- {progress_table-3.0.0 → progress_table-3.0.1}/README.md +0 -0
- {progress_table-3.0.0 → progress_table-3.0.1}/progress_table/common.py +0 -0
- {progress_table-3.0.0 → progress_table-3.0.1}/progress_table/progress_table.py +0 -0
- {progress_table-3.0.0 → progress_table-3.0.1}/progress_table/styles.py +0 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: progress-table
|
|
3
|
+
Version: 3.0.1
|
|
4
|
+
Summary: Display progress as a pretty table in the command line.
|
|
5
|
+
Project-URL: Home, https://github.com/gahaalt/progress-table
|
|
6
|
+
Project-URL: Documentation, https://github.com/sjmikler/progress-table/blob/main/docs
|
|
7
|
+
Author-email: Szymon Mikler <sjmikler@gmail.com>
|
|
8
|
+
License: MIT
|
|
9
|
+
License-File: LICENSE.txt
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
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
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Requires-Python: >=3.7
|
|
20
|
+
Requires-Dist: colorama
|
|
21
|
+
Provides-Extra: dev
|
|
22
|
+
Requires-Dist: black; extra == 'dev'
|
|
23
|
+
Requires-Dist: build; extra == 'dev'
|
|
24
|
+
Requires-Dist: isort; extra == 'dev'
|
|
25
|
+
Requires-Dist: twine; extra == 'dev'
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
> Version 2.x.x introduces new features and new interactive modes.
|
|
29
|
+
>
|
|
30
|
+
> Version 3.x.x improves compatibility and stability.
|
|
31
|
+
>
|
|
32
|
+
> New features allow for previously impossible applications, see examples below.
|
|
33
|
+
|
|
34
|
+
# Progress Table
|
|
35
|
+
|
|
36
|
+
[](https://pypi.org/project/progress-table)
|
|
37
|
+
[](https://pypi.org/project/progress-table)
|
|
38
|
+
|
|
39
|
+
Lightweight utility to display the progress of your process as a pretty table in the command line.
|
|
40
|
+
|
|
41
|
+
* Alternative to TQDM whenever you want to track metrics produced by your process
|
|
42
|
+
* Designed to monitor ML experiments, but works for any metrics-producing process
|
|
43
|
+
* Allows you to see at a glance what's going on with your process
|
|
44
|
+
* Increases readability and simplifies your command line logging
|
|
45
|
+
|
|
46
|
+
### Change this:
|
|
47
|
+
|
|
48
|
+

|
|
49
|
+
|
|
50
|
+
### Into this:
|
|
51
|
+
|
|
52
|
+

|
|
53
|
+
|
|
54
|
+
## Examples
|
|
55
|
+
|
|
56
|
+
From `examples/` directory:
|
|
57
|
+
|
|
58
|
+
* Neural network training
|
|
59
|
+
|
|
60
|
+

|
|
61
|
+
|
|
62
|
+
* Progress of multi-threaded downloads
|
|
63
|
+
|
|
64
|
+

|
|
65
|
+
|
|
66
|
+
* Simulation and interactive display of Brownian motion
|
|
67
|
+
|
|
68
|
+

|
|
69
|
+
|
|
70
|
+
* Display of a game board
|
|
71
|
+
|
|
72
|
+

|
|
73
|
+
|
|
74
|
+
## Quick start code
|
|
75
|
+
|
|
76
|
+
```python
|
|
77
|
+
import random
|
|
78
|
+
import time
|
|
79
|
+
|
|
80
|
+
from progress_table import ProgressTable
|
|
81
|
+
|
|
82
|
+
# Create table object:
|
|
83
|
+
table = ProgressTable(num_decimal_places=1)
|
|
84
|
+
|
|
85
|
+
# You can (optionally) define the columns at the beginning
|
|
86
|
+
table.add_column("x", color="bold red")
|
|
87
|
+
|
|
88
|
+
for step in range(10):
|
|
89
|
+
x = random.randint(0, 200)
|
|
90
|
+
|
|
91
|
+
# You can add entries in a compact way
|
|
92
|
+
table["x"] = x
|
|
93
|
+
|
|
94
|
+
# Or you can use the update method
|
|
95
|
+
table.update("x", value=x, weight=1.0)
|
|
96
|
+
|
|
97
|
+
# Display the progress bar by wrapping an iterator or an integer
|
|
98
|
+
for _ in table(10): # -> Equivalent to `table(range(10))`
|
|
99
|
+
# Set and get values from the table
|
|
100
|
+
table["y"] = random.randint(0, 200)
|
|
101
|
+
table["x-y"] = table["x"] - table["y"]
|
|
102
|
+
table.update("average x-y", value=table["x-y"], weight=1.0, aggregate="mean")
|
|
103
|
+
time.sleep(0.1)
|
|
104
|
+
|
|
105
|
+
# Go to the next row when you're ready
|
|
106
|
+
table.next_row()
|
|
107
|
+
|
|
108
|
+
# Close the table when it's finished
|
|
109
|
+
table.close()
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
> Go to [integrations](docs/integrations.md)
|
|
114
|
+
> page to see examples of integration with deep learning libraries.
|
|
115
|
+
|
|
116
|
+
## Advanced usage
|
|
117
|
+
|
|
118
|
+
Go to [advanced usage](docs/advanced-usage.md) page for more information.
|
|
119
|
+
|
|
120
|
+
## Troubleshooting
|
|
121
|
+
|
|
122
|
+
### Exceesive output
|
|
123
|
+
|
|
124
|
+
Progress Table works correctly in most consoles, but there are some exceptions:
|
|
125
|
+
|
|
126
|
+
* Some cloud logging consoles (e.g. kubernetes) don't support `\r` properly. You can still use ProgressTable, but with `interactive=0` option. This mode will not display progress bars.
|
|
127
|
+
|
|
128
|
+
* Some consoles like 'PyCharm Python Console' or 'IDLE' don't support cursor movement. You can still use ProgressTable, but with `interactive=1` option. In this mode, you can display only a single progress bar.
|
|
129
|
+
|
|
130
|
+
> By default `interactive=2`. You can change the default 'interactive' with an argument when creating the table object or by setting 'PTABLE_INTERACTIVE' environment variable, e.g. `PTABLE_INTERACTIVE=1`.
|
|
131
|
+
|
|
132
|
+
### Other problems
|
|
133
|
+
|
|
134
|
+
If you encounter different messy outputs or other unexpected behavior: please create an issue!
|
|
135
|
+
|
|
136
|
+
## Installation
|
|
137
|
+
|
|
138
|
+
Install Progress Table easily with pip:
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
pip install progress-table
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Links
|
|
145
|
+
|
|
146
|
+
* [See on GitHub](https://github.com/gahaalt/progress-table)
|
|
147
|
+
* [See on PyPI](https://pypi.org/project/progress-table)
|
|
148
|
+
|
|
149
|
+
## Alternatives
|
|
150
|
+
|
|
151
|
+
* Progress bars: great for tracking progress, but they don't provide ways to display data in clear and compact way
|
|
152
|
+
* `tqdm`
|
|
153
|
+
* `rich.progress`
|
|
154
|
+
* `keras.utils.Progbar`
|
|
155
|
+
|
|
156
|
+
* Libraries displaying data: great for presenting tabular data, but they lack the progress tracking aspect
|
|
157
|
+
* `rich.table`
|
|
158
|
+
* `tabulate`
|
|
159
|
+
* `texttable`
|
|
@@ -23,10 +23,11 @@ classifiers = [
|
|
|
23
23
|
"Programming Language :: Python :: 3.12",
|
|
24
24
|
"Programming Language :: Python :: 3.13",
|
|
25
25
|
]
|
|
26
|
+
readme = "README.md"
|
|
26
27
|
|
|
27
28
|
[project.urls]
|
|
28
|
-
Home = "https://github.com/gahaalt/progress-table
|
|
29
|
-
|
|
29
|
+
Home = "https://github.com/gahaalt/progress-table"
|
|
30
|
+
Documentation = "https://github.com/sjmikler/progress-table/blob/main/docs"
|
|
30
31
|
|
|
31
32
|
[project.optional-dependencies]
|
|
32
33
|
dev = ["black", "isort", "build", "twine"]
|
progress_table-3.0.0/PKG-INFO
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: progress-table
|
|
3
|
-
Version: 3.0.0
|
|
4
|
-
Summary: Display progress as a pretty table in the command line.
|
|
5
|
-
Project-URL: Home, https://github.com/gahaalt/progress-table.git
|
|
6
|
-
Project-URL: Docs, https://github.com/sjmikler/progress-table/blob/main/docs
|
|
7
|
-
Author-email: Szymon Mikler <sjmikler@gmail.com>
|
|
8
|
-
License: MIT
|
|
9
|
-
License-File: LICENSE.txt
|
|
10
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
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
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
-
Requires-Python: >=3.7
|
|
20
|
-
Requires-Dist: colorama
|
|
21
|
-
Provides-Extra: dev
|
|
22
|
-
Requires-Dist: black; extra == 'dev'
|
|
23
|
-
Requires-Dist: build; extra == 'dev'
|
|
24
|
-
Requires-Dist: isort; extra == 'dev'
|
|
25
|
-
Requires-Dist: twine; extra == 'dev'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|