inquirer-textual 0.2.0__py3-none-any.whl → 0.4.0__py3-none-any.whl

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: inquirer-textual
3
- Version: 0.2.0
3
+ Version: 0.4.0
4
4
  Summary: Inquirer based on Textual
5
5
  Project-URL: Changelog, https://github.com/robvanderleek/inquirer-textual/blob/master/CHANGELOG.md
6
6
  Project-URL: Documentation, https://robvanderleek.github.io/inquirer-textual/
@@ -9,7 +9,9 @@ Author-email: Rob van der Leek <robvanderleek@gmail.com>
9
9
  License-Expression: GPL-3.0-or-later
10
10
  License-File: LICENSE
11
11
  Requires-Python: <3.15,>=3.9
12
- Requires-Dist: textual>=6.7.1
12
+ Requires-Dist: textual>=7.1.0
13
+ Provides-Extra: examples
14
+ Requires-Dist: textual-slider>=0.2.0; extra == 'examples'
13
15
  Description-Content-Type: text/markdown
14
16
 
15
17
  # Inquirer-Textual
@@ -36,11 +38,20 @@ Description-Content-Type: text/markdown
36
38
 
37
39
  All terminal programs start small. Some stay small, and some become incredibly
38
40
  big. The goal of this Python library is to make user input simple for small
39
- programs, but also support a smooth transition to a comprehensive UI library as
41
+ programs, while enabling a smooth transition to a comprehensive UI library as
40
42
  your program grows.
41
43
 
42
44
  Read the [documentation here](https://robvanderleek.github.io/inquirer-textual/)
43
45
 
46
+ ## Installation
47
+
48
+ Create and activate a virtual environment (for example with
49
+ [uv](https://docs.astral.sh/uv/)), and then install this package:
50
+
51
+ ```shell
52
+ pip install inquirer-textual
53
+ ```
54
+
44
55
  ## Development
45
56
 
46
57
  Add this library as an editable local dependency to another project using `uv`:
@@ -48,3 +59,31 @@ Add this library as an editable local dependency to another project using `uv`:
48
59
  ```shell
49
60
  uv add --editable <path-to-inquirer-textual>
50
61
  ```
62
+
63
+ ### Textual console
64
+
65
+ 1. Open the Textual Development Console:
66
+
67
+ ```shell
68
+ uv run textual console
69
+ ```
70
+
71
+ 2. Run application in development mode:
72
+
73
+ ```shell
74
+ uv run textual run --dev examples/prompt_pattern.py
75
+ ```
76
+
77
+ ### Static documentation
78
+
79
+ Generating the static documentation:
80
+
81
+ ```shell
82
+ uv run mkdocs build
83
+ ```
84
+
85
+ Viewing the static documentation:
86
+
87
+ ```shell
88
+ uv run mkdocs serve
89
+ ```
@@ -0,0 +1,30 @@
1
+ inquirer_textual/InquirerApp.py,sha256=oOkEX0D_b5yOf67FXM7Bo7Y_ngbXy502r1YYl1ZCsdA,5863
2
+ inquirer_textual/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ inquirer_textual/prompts.py,sha256=QyePg_l3dF2StKANB2oz1H8z5AN3v_CqA7WhxyhONd8,4229
4
+ inquirer_textual/version.py,sha256=yhiWOz0HoJGRRI9-JQ2eh_0AbByy-6psK08-kpTSHJw,18
5
+ inquirer_textual/common/Answer.py,sha256=4d08uTd1MYxjBwIuWexAe0UOKStwxBqniPGuXc7VOJY,537
6
+ inquirer_textual/common/Choice.py,sha256=_0EGDbl6NGGiuOqCmfOkkmRX9IP09KQbRRmAdjPxwYs,203
7
+ inquirer_textual/common/ChoiceCheckboxLabel.py,sha256=BZg5vLe6_qc0ipYUaonNfygSOnHyJuEVrB8mmM6tOjw,675
8
+ inquirer_textual/common/ChoiceLabel.py,sha256=uJoHzMFCRE3cXCZlBLeMjADbHYHA81N03PyAfCf2y28,1009
9
+ inquirer_textual/common/InquirerHeader.py,sha256=txl-TRe3DKsOPcmDKy1fhfTa-YAURsjTYePDDHzcPH8,802
10
+ inquirer_textual/common/InquirerResult.py,sha256=2inNdfc2xUTCUFqAGazKJJv6YUQjjFzn-f3NTDxm1-M,481
11
+ inquirer_textual/common/Prompt.py,sha256=yv9RKFZwYkNOD_VMMhwEyPOZwmuEMIoJ85p25fyyn8Q,827
12
+ inquirer_textual/common/Shortcut.py,sha256=9mzLVnphImnehNo1HHU_gPMv-vFi5nXsb1G2CAbpuEY,297
13
+ inquirer_textual/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
+ inquirer_textual/common/defaults.py,sha256=JE59yeKgCi0q_Q64PreieGbwlZVFPd7hOm4e4Ks1HZ8,673
15
+ inquirer_textual/widgets/InquirerCheckbox.py,sha256=nlPLoEeLqhJ8gCLUFLdZsCW1A1zxu72ehDpU--XkBdY,3482
16
+ inquirer_textual/widgets/InquirerConfirm.py,sha256=bpub1HiXIPrdNkk9FQbm8i_U6_CguN1LS2Hje_Vgzsc,3026
17
+ inquirer_textual/widgets/InquirerEditor.py,sha256=f9H5iCevPOzJCYVIplAvedOgkmf-YVoBFwLiXn4u_58,1978
18
+ inquirer_textual/widgets/InquirerMulti.py,sha256=5xwkDA9T9wZB3OOh6w7ZUiW689-bASndpCXIowfOPU0,1616
19
+ inquirer_textual/widgets/InquirerNumber.py,sha256=6fH5V9tBj1G5BvTLWVpECLfGYRGbWCGMUHHK8g3BVVA,2083
20
+ inquirer_textual/widgets/InquirerPath.py,sha256=K862dhAc_F36w7cJgv3HxGdvOq44bbsISjPq-xw5NJQ,3158
21
+ inquirer_textual/widgets/InquirerPattern.py,sha256=z9EnwN6AawU0IH_e86Fpf-arkpyTl8nLMjsj1G5nBOc,6713
22
+ inquirer_textual/widgets/InquirerSecret.py,sha256=Auysoj98l6Km__fUAsTOMtq4EN_LJyYuye8cf04UXN8,1629
23
+ inquirer_textual/widgets/InquirerSelect.py,sha256=jLzww7O0ezf9OCBevAyeCih9KjUJHWZ7N-Uw2sGfa4E,3541
24
+ inquirer_textual/widgets/InquirerText.py,sha256=69xnsrmgcE1xKb_lmtQVWSFLlomvd0Fttk48kLF6_os,2279
25
+ inquirer_textual/widgets/InquirerWidget.py,sha256=TUU68Bef4A-S1bomgR0uFiVcQbfudrH-Vp9_h3WJgDg,1060
26
+ inquirer_textual/widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
+ inquirer_textual-0.4.0.dist-info/METADATA,sha256=tsJd4eF71LuYH7XXIZL8_sr3M5UuP4Kmt3XzGYmfYQ4,2410
28
+ inquirer_textual-0.4.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
29
+ inquirer_textual-0.4.0.dist-info/licenses/LICENSE,sha256=fJuRou64yfkof3ZFdeHcgk7K8pqxis6SBr-vtUEgBuA,1073
30
+ inquirer_textual-0.4.0.dist-info/RECORD,,
@@ -1,15 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from dataclasses import dataclass
4
- from typing import TypeVar, Generic
5
-
6
- T = TypeVar('T')
7
-
8
-
9
- @dataclass
10
- class Result(Generic[T]):
11
- command: str | None
12
- value: T
13
-
14
- def __str__(self):
15
- return str(self.value)
@@ -1,25 +0,0 @@
1
- inquirer_textual/InquirerApp.py,sha256=2lDgzimH0EXeRnPDlre97q24TPsgIE9mI-cJfhQ8hIk,5377
2
- inquirer_textual/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- inquirer_textual/prompts.py,sha256=NvaU1hgLe962iSHH3EtmLkbB0K5Vlav38mcHSiYXrOg,3186
4
- inquirer_textual/version.py,sha256=XQVhijSHeIVMVzY2S4fY9BKxV2XHSTr9VVHsYltGPvQ,18
5
- inquirer_textual/common/Choice.py,sha256=ZRggsayRKcNMDLRh12Zblol_pusE2keVEXlHkaw5RsE,147
6
- inquirer_textual/common/ChoiceCheckboxLabel.py,sha256=BZg5vLe6_qc0ipYUaonNfygSOnHyJuEVrB8mmM6tOjw,675
7
- inquirer_textual/common/ChoiceLabel.py,sha256=Wxt5IZUSHJsVEza1Uj19HZP7oD1uNvclY1UDbaNiOOM,504
8
- inquirer_textual/common/InquirerHeader.py,sha256=txl-TRe3DKsOPcmDKy1fhfTa-YAURsjTYePDDHzcPH8,802
9
- inquirer_textual/common/PromptMessage.py,sha256=MCXdsE9j0XlqVKjWUhXB-9qZ24Lk7dA5QWRgUWTdF8o,831
10
- inquirer_textual/common/Result.py,sha256=mC79hFPITwyXFrrxlHxiumdywKhqGpBM32KhxzJvm-E,255
11
- inquirer_textual/common/Shortcut.py,sha256=9mzLVnphImnehNo1HHU_gPMv-vFi5nXsb1G2CAbpuEY,297
12
- inquirer_textual/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- inquirer_textual/widgets/InquirerCheckbox.py,sha256=ytWNqRbJ46iItJxbKfFTHGVapFnJjF9DwG3XtKfRW0E,3008
14
- inquirer_textual/widgets/InquirerConfirm.py,sha256=RFxSnxj1NS_kqirWWu_VLm0C2Bf4h-3zewDJ_IAtgYs,2293
15
- inquirer_textual/widgets/InquirerMulti.py,sha256=WhjhEq2j9IL4PIT2kgvClXorazeii4Lxv1TdUDyC60c,1637
16
- inquirer_textual/widgets/InquirerNumber.py,sha256=05ZEXHVeZ-jzvn7Ts0sJkpkP6oTlgBAWcZGEyrDG0H8,1550
17
- inquirer_textual/widgets/InquirerSecret.py,sha256=XnMP77O8XWeHvqmttb7xj94a3pgX95a9pEgLvIehmBg,1586
18
- inquirer_textual/widgets/InquirerSelect.py,sha256=P0_7B3945I-O2HXzXpGO5HDIqD7poR6aa0yOX6a9CGM,3259
19
- inquirer_textual/widgets/InquirerText.py,sha256=6sQxS87pAooCOdZBcZbxWfUXxqQZA5VYv1ebLv7-3J8,2154
20
- inquirer_textual/widgets/InquirerWidget.py,sha256=56rcnnK5vqD66WKfmv8V_kZ4YG63Vkxz3pYUq18OJKo,802
21
- inquirer_textual/widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
- inquirer_textual-0.2.0.dist-info/METADATA,sha256=etLlsW92h4EEQbgExg2JUV0ZNBPEsyBKpdgl4A4o8sE,1768
23
- inquirer_textual-0.2.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
24
- inquirer_textual-0.2.0.dist-info/licenses/LICENSE,sha256=fJuRou64yfkof3ZFdeHcgk7K8pqxis6SBr-vtUEgBuA,1073
25
- inquirer_textual-0.2.0.dist-info/RECORD,,