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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: py-wait-until
3
- Version: 0.0.5
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
  [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/billwallis/py-wait-until/main.svg)](https://results.pre-commit.ci/latest/github/billwallis/py-wait-until/main)
18
18
  [![GitHub last commit](https://img.shields.io/github/last-commit/billwallis/py-wait-until)](https://shields.io/badges/git-hub-last-commit)
19
+ [![PyPI Downloads](https://img.shields.io/pypi/dm/py-wait-until)](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
  [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/billwallis/py-wait-until/main.svg)](https://results.pre-commit.ci/latest/github/billwallis/py-wait-until/main)
9
9
  [![GitHub last commit](https://img.shields.io/github/last-commit/billwallis/py-wait-until)](https://shields.io/badges/git-hub-last-commit)
10
+ [![PyPI Downloads](https://img.shields.io/pypi/dm/py-wait-until)](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.
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "py-wait-until"
7
- version = "0.0.5"
7
+ version = "0.0.6"
8
8
  description = "Print a loading spinner while another command is running."
9
9
  readme = "README.md"
10
10
  license-files = ["LICENSE"]
@@ -5,7 +5,7 @@ build-backend = "uv_build"
5
5
 
6
6
  [project]
7
7
  name = "py-wait-until"
8
- version = "0.0.5"
8
+ version = "0.0.6"
9
9
  description = "Print a loading spinner while another command is running."
10
10
  authors = [{name = "billwallis"}]
11
11
  readme = "README.md"
@@ -0,0 +1,15 @@
1
+ https://en.wikipedia.org/wiki/Braille_ASCII#Braille_ASCII_values
2
+
3
+ |⠁|⠂|⠄|⠠|⠐|⠈| |
4
+
5
+ |⠃|⠆|⠘|⠰|⠉|⠒|⠤|
6
+ |⠅|⠡|⠑|⠨|⠌|⠊|⠢|⠔|
7
+
8
+ |⠇|⠸|⠋|⠙|⠦|⠴|
9
+ |⠩|⠍|⠥|⠬|⠕|⠪|
10
+ |⠓|⠚|⠲|⠖|⠱|⠎|⠣|⠜|
11
+
12
+ |⠏|⠧|⠼|⠹|⠶|⠛|⠭|
13
+ |⠗|⠺|⠞|⠳|⠫|⠝|⠵|⠮|
14
+
15
+ |⠾|⠽|⠻|⠟|⠯|⠷|⠿|
@@ -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