py-wait-until 0.0.5__tar.gz → 0.0.6__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.
- {py_wait_until-0.0.5 → py_wait_until-0.0.6}/PKG-INFO +12 -1
- {py_wait_until-0.0.5 → py_wait_until-0.0.6}/README.md +11 -0
- {py_wait_until-0.0.5 → py_wait_until-0.0.6}/pyproject.toml +1 -1
- {py_wait_until-0.0.5 → py_wait_until-0.0.6}/pyproject.toml.orig +1 -1
- py_wait_until-0.0.6/src/py_wait_until/braille-chars.txt +15 -0
- {py_wait_until-0.0.5 → py_wait_until-0.0.6}/src/py_wait_until/main.py +20 -0
- {py_wait_until-0.0.5 → py_wait_until-0.0.6}/LICENSE +0 -0
- {py_wait_until-0.0.5 → py_wait_until-0.0.6}/src/py_wait_until/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: py-wait-until
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.6
|
|
4
4
|
Summary: Print a loading spinner while another command is running.
|
|
5
5
|
Author: billwallis
|
|
6
6
|
License-File: LICENSE
|
|
@@ -16,6 +16,7 @@ Description-Content-Type: text/markdown
|
|
|
16
16
|
|
|
17
17
|
[](https://results.pre-commit.ci/latest/github/billwallis/py-wait-until/main)
|
|
18
18
|
[](https://shields.io/badges/git-hub-last-commit)
|
|
19
|
+
[](https://shields.io/badges/py-pi-downloads)
|
|
19
20
|
|
|
20
21
|
</span>
|
|
21
22
|
|
|
@@ -61,3 +62,13 @@ Install [uv](https://docs.astral.sh/uv/getting-started/installation/) and then i
|
|
|
61
62
|
```shell
|
|
62
63
|
uvx --from poethepoet poe install
|
|
63
64
|
```
|
|
65
|
+
|
|
66
|
+
### Choose a spinner
|
|
67
|
+
|
|
68
|
+
There are a selection of spinner animations available which can be specified with the `--spinner` argument; check the CLI help for the latest set of options:
|
|
69
|
+
|
|
70
|
+
```shell
|
|
71
|
+
py-wait-until --help
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
By default, a spinner will be chosen randomly.
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
[](https://results.pre-commit.ci/latest/github/billwallis/py-wait-until/main)
|
|
9
9
|
[](https://shields.io/badges/git-hub-last-commit)
|
|
10
|
+
[](https://shields.io/badges/py-pi-downloads)
|
|
10
11
|
|
|
11
12
|
</span>
|
|
12
13
|
|
|
@@ -52,3 +53,13 @@ Install [uv](https://docs.astral.sh/uv/getting-started/installation/) and then i
|
|
|
52
53
|
```shell
|
|
53
54
|
uvx --from poethepoet poe install
|
|
54
55
|
```
|
|
56
|
+
|
|
57
|
+
### Choose a spinner
|
|
58
|
+
|
|
59
|
+
There are a selection of spinner animations available which can be specified with the `--spinner` argument; check the CLI help for the latest set of options:
|
|
60
|
+
|
|
61
|
+
```shell
|
|
62
|
+
py-wait-until --help
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
By default, a spinner will be chosen randomly.
|
|
@@ -18,11 +18,16 @@ class Spinner(enum.StrEnum):
|
|
|
18
18
|
LINE = "line"
|
|
19
19
|
DOTS = "dots"
|
|
20
20
|
SAND = "sand"
|
|
21
|
+
CLIMB = "climb"
|
|
22
|
+
EIGHT_WIDTH_2 = "eight-2"
|
|
23
|
+
EIGHT_WIDTH_3 = "eight-3"
|
|
24
|
+
EIGHT_WIDTH_4 = "eight-4"
|
|
21
25
|
|
|
22
26
|
def chars(self) -> Sequence[str]:
|
|
23
27
|
return {
|
|
24
28
|
# Basic/simple option
|
|
25
29
|
self.LINE: ["|", "/", "-", "\\"],
|
|
30
|
+
# https://en.wikipedia.org/wiki/Braille_ASCII#Braille_ASCII_values
|
|
26
31
|
# Inspired by Docker and dbt Fusion's loading indicator
|
|
27
32
|
self.DOTS: [
|
|
28
33
|
*["⠄", "⠆", "⠖", "⠶", "⠲", "⠰"],
|
|
@@ -30,6 +35,21 @@ class Spinner(enum.StrEnum):
|
|
|
30
35
|
*["⠐", "⠰", "⠴", "⠶", "⠦", "⠆"],
|
|
31
36
|
*["⠂", "⠒", "⠲", "⠶", "⠴", "⠤"],
|
|
32
37
|
],
|
|
38
|
+
self.CLIMB: [
|
|
39
|
+
*["⠄", "⠤", "⠴", "⠶", "⠷", "⠿"],
|
|
40
|
+
*["⠾", "⠶", "⠦", "⠤", "⠠", " "],
|
|
41
|
+
],
|
|
42
|
+
self.EIGHT_WIDTH_2: [
|
|
43
|
+
*["⠤", "⠰", "⠒", "⠃"],
|
|
44
|
+
*["⠉", "⠘", "⠒", "⠆"],
|
|
45
|
+
],
|
|
46
|
+
self.EIGHT_WIDTH_3: [
|
|
47
|
+
*["⠦", "⠴", "⠲", "⠓", "⠋", "⠙", "⠚", "⠖"],
|
|
48
|
+
],
|
|
49
|
+
self.EIGHT_WIDTH_4: [
|
|
50
|
+
*["⠛", "⠏", "⠭", "⠼"],
|
|
51
|
+
*["⠶", "⠧", "⠭", "⠹"],
|
|
52
|
+
],
|
|
33
53
|
# https://stackoverflow.com/a/12305221/8213085
|
|
34
54
|
# https://raw.githubusercontent.com/sindresorhus/cli-spinners/master/spinners.json
|
|
35
55
|
self.SAND: [
|
|
File without changes
|
|
File without changes
|