progress-table 1.0.0__tar.gz → 1.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-1.0.0 → progress-table-1.0.1}/PKG-INFO +6 -5
- {progress-table-1.0.0 → progress-table-1.0.1}/README.md +5 -4
- {progress-table-1.0.0 → progress-table-1.0.1}/progress_table/devel2.py +3 -3
- {progress-table-1.0.0 → progress-table-1.0.1}/progress_table.egg-info/PKG-INFO +6 -5
- {progress-table-1.0.0 → progress-table-1.0.1}/setup.py +1 -1
- {progress-table-1.0.0 → progress-table-1.0.1}/LICENSE.txt +0 -0
- {progress-table-1.0.0 → progress-table-1.0.1}/progress_table/__init__.py +0 -0
- {progress-table-1.0.0 → progress-table-1.0.1}/progress_table/devel.py +0 -0
- {progress-table-1.0.0 → progress-table-1.0.1}/progress_table/test_docs_automated.py +0 -0
- {progress-table-1.0.0 → progress-table-1.0.1}/progress_table.egg-info/SOURCES.txt +0 -0
- {progress-table-1.0.0 → progress-table-1.0.1}/progress_table.egg-info/dependency_links.txt +0 -0
- {progress-table-1.0.0 → progress-table-1.0.1}/progress_table.egg-info/requires.txt +0 -0
- {progress-table-1.0.0 → progress-table-1.0.1}/progress_table.egg-info/top_level.txt +0 -0
- {progress-table-1.0.0 → progress-table-1.0.1}/pyproject.toml +0 -0
- {progress-table-1.0.0 → progress-table-1.0.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: progress-table
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.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
|
|
@@ -32,7 +32,8 @@ Allows you to quickly see what is going on.
|
|
|
32
32
|
Increases readability and cuteness of your command line logging.
|
|
33
33
|
|
|
34
34
|
> Note: version 1.0 introduced new features and changes of default behaviour.
|
|
35
|
-
>
|
|
35
|
+
>
|
|
36
|
+
> The old version is still available as `progress_table.ProgressTableV0`.
|
|
36
37
|
|
|
37
38
|
## Features
|
|
38
39
|
|
|
@@ -61,13 +62,13 @@ import random
|
|
|
61
62
|
import sys
|
|
62
63
|
import time
|
|
63
64
|
|
|
64
|
-
from progress_table import
|
|
65
|
+
from progress_table import ProgressTable
|
|
65
66
|
|
|
66
67
|
# Create table object:
|
|
67
|
-
table =
|
|
68
|
+
table = ProgressTable()
|
|
68
69
|
|
|
69
70
|
# Or customize its settings:
|
|
70
|
-
table =
|
|
71
|
+
table = ProgressTable(
|
|
71
72
|
columns=["step"],
|
|
72
73
|
refresh_rate=10,
|
|
73
74
|
num_decimal_places=4,
|
|
@@ -12,7 +12,8 @@ Allows you to quickly see what is going on.
|
|
|
12
12
|
Increases readability and cuteness of your command line logging.
|
|
13
13
|
|
|
14
14
|
> Note: version 1.0 introduced new features and changes of default behaviour.
|
|
15
|
-
>
|
|
15
|
+
>
|
|
16
|
+
> The old version is still available as `progress_table.ProgressTableV0`.
|
|
16
17
|
|
|
17
18
|
## Features
|
|
18
19
|
|
|
@@ -41,13 +42,13 @@ import random
|
|
|
41
42
|
import sys
|
|
42
43
|
import time
|
|
43
44
|
|
|
44
|
-
from progress_table import
|
|
45
|
+
from progress_table import ProgressTable
|
|
45
46
|
|
|
46
47
|
# Create table object:
|
|
47
|
-
table =
|
|
48
|
+
table = ProgressTable()
|
|
48
49
|
|
|
49
50
|
# Or customize its settings:
|
|
50
|
-
table =
|
|
51
|
+
table = ProgressTable(
|
|
51
52
|
columns=["step"],
|
|
52
53
|
refresh_rate=10,
|
|
53
54
|
num_decimal_places=4,
|
|
@@ -32,7 +32,7 @@ table.add_column("x", width=3)
|
|
|
32
32
|
table.add_column("x root", color="red")
|
|
33
33
|
table.add_column("random average", color=["bright", "red"], aggregate="mean")
|
|
34
34
|
|
|
35
|
-
for step in range(
|
|
35
|
+
for step in table(iter(range(100))):
|
|
36
36
|
x = random.randint(0, 200)
|
|
37
37
|
|
|
38
38
|
# There are two ways to add new values:
|
|
@@ -43,10 +43,10 @@ for step in range(10):
|
|
|
43
43
|
table.update("x squared", x**2)
|
|
44
44
|
|
|
45
45
|
# Display the progress bar by wrapping the iterator
|
|
46
|
-
for _ in
|
|
46
|
+
for _ in range(10): # -> Equivalent to `table(range(10))`
|
|
47
47
|
# You can use weights for aggregated values
|
|
48
48
|
table.update("random average", random.random(), weight=1)
|
|
49
|
-
time.sleep(0.
|
|
49
|
+
time.sleep(0.02)
|
|
50
50
|
|
|
51
51
|
# Go to the next row when you're ready
|
|
52
52
|
table.next_row()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: progress-table
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.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
|
|
@@ -32,7 +32,8 @@ Allows you to quickly see what is going on.
|
|
|
32
32
|
Increases readability and cuteness of your command line logging.
|
|
33
33
|
|
|
34
34
|
> Note: version 1.0 introduced new features and changes of default behaviour.
|
|
35
|
-
>
|
|
35
|
+
>
|
|
36
|
+
> The old version is still available as `progress_table.ProgressTableV0`.
|
|
36
37
|
|
|
37
38
|
## Features
|
|
38
39
|
|
|
@@ -61,13 +62,13 @@ import random
|
|
|
61
62
|
import sys
|
|
62
63
|
import time
|
|
63
64
|
|
|
64
|
-
from progress_table import
|
|
65
|
+
from progress_table import ProgressTable
|
|
65
66
|
|
|
66
67
|
# Create table object:
|
|
67
|
-
table =
|
|
68
|
+
table = ProgressTable()
|
|
68
69
|
|
|
69
70
|
# Or customize its settings:
|
|
70
|
-
table =
|
|
71
|
+
table = ProgressTable(
|
|
71
72
|
columns=["step"],
|
|
72
73
|
refresh_rate=10,
|
|
73
74
|
num_decimal_places=4,
|
|
@@ -9,7 +9,7 @@ long_description = (this_directory / "README.md").read_text(encoding="UTF-8")
|
|
|
9
9
|
|
|
10
10
|
setup(
|
|
11
11
|
name="progress-table",
|
|
12
|
-
version="1.0.
|
|
12
|
+
version="1.0.1",
|
|
13
13
|
url="https://github.com/gahaalt/progress-table.git",
|
|
14
14
|
author="Szymon Mikler",
|
|
15
15
|
author_email="sjmikler@gmail.com",
|
|
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
|