zrb 1.15.15__py3-none-any.whl → 1.15.17__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.
zrb/input/base_input.py CHANGED
@@ -95,12 +95,20 @@ class BaseInput(AnyInput):
95
95
  default_str = self.get_default_str(shared_ctx)
96
96
  if default_str != "":
97
97
  prompt_message = f"{prompt_message} [{default_str}]"
98
- print(f"{prompt_message}: ", end="")
99
- value = input()
98
+ value = self._read_line(shared_ctx, prompt_message)
100
99
  if value.strip() == "":
101
100
  value = default_str
102
101
  return value
103
102
 
103
+ def _read_line(self, shared_ctx: AnySharedContext, prompt_message: str) -> str:
104
+ if not shared_ctx.is_tty:
105
+ print(f"{prompt_message}: ", end="")
106
+ return input()
107
+ from prompt_toolkit import PromptSession
108
+
109
+ reader = PromptSession()
110
+ return reader.prompt(f"{prompt_message}: ")
111
+
104
112
  def get_default_str(self, shared_ctx: AnySharedContext) -> str:
105
113
  """Get default value as str"""
106
114
  default_value = get_attr(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: zrb
3
- Version: 1.15.15
3
+ Version: 1.15.17
4
4
  Summary: Your Automation Powerhouse
5
5
  License: AGPL-3.0-or-later
6
6
  Keywords: Automation,Task Runner,Code Generator,Monorepo,Low Code
@@ -23,14 +23,18 @@ Requires-Dist: fastapi[standard] (>=0.116.1,<0.117.0)
23
23
  Requires-Dist: isort (>=6.0.1,<7.0.0)
24
24
  Requires-Dist: libcst (>=1.8.2,<2.0.0)
25
25
  Requires-Dist: markdownify (>=1.2.0,<2.0.0)
26
+ Requires-Dist: mcp (>1.12.3)
27
+ Requires-Dist: openai (>=1.99.9)
26
28
  Requires-Dist: pdfplumber (>=0.11.7,<0.12.0)
27
29
  Requires-Dist: playwright (>=1.54.0,<2.0.0) ; extra == "playwright" or extra == "all"
30
+ Requires-Dist: prompt-toolkit (>=3)
28
31
  Requires-Dist: psutil (>=7.0.0,<8.0.0)
29
- Requires-Dist: pydantic-ai-slim[anthropic,bedrock,cli,cohere,google,groq,huggingface,mcp,mistral,openai,vertexai] (>=0.8.0,<0.9.0)
32
+ Requires-Dist: pydantic-ai-slim[anthropic,bedrock,cohere,google,groq,huggingface,mistral,openai,vertexai] (>=0.8.1,<0.9.0)
30
33
  Requires-Dist: pyjwt (>=2.10.1,<3.0.0)
31
34
  Requires-Dist: python-dotenv (>=1.1.1,<2.0.0)
32
35
  Requires-Dist: python-jose[cryptography] (>=3.5.0,<4.0.0)
33
- Requires-Dist: requests (>=2.32.4,<3.0.0)
36
+ Requires-Dist: requests (>=2.32.2,<3.0.0)
37
+ Requires-Dist: rich (>=13)
34
38
  Requires-Dist: tiktoken (>=0.8.0,<0.9.0)
35
39
  Requires-Dist: ulid-py (>=1.1.0,<2.0.0)
36
40
  Project-URL: Documentation, https://github.com/state-alchemists/zrb
@@ -250,7 +250,7 @@ zrb/group/any_group.py,sha256=sdUk82YRuJBMwDhD_b-vJ3v-Yxz8K7LFW52TM19k3HI,1242
250
250
  zrb/group/group.py,sha256=t5JnXlrLfthFfqmkVdRLKCIyms4JqsthcTODVncSmPk,4312
251
251
  zrb/input/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
252
252
  zrb/input/any_input.py,sha256=3EQgg2Qk_2t2Ege_4pHV2G95tV3XAIThLLuFZ6uV6oM,1051
253
- zrb/input/base_input.py,sha256=Rb2m9xLJgGDph2D8L9HnLFPtQZqmPAPKrSP2K4pK97A,3848
253
+ zrb/input/base_input.py,sha256=HCTxBZwnK-gP-F7XQGDbyyZHvwYR0fwNICzqVUw5Cg8,4169
254
254
  zrb/input/bool_input.py,sha256=9ir8aTm8zaufrJ84_EerC5vOjyn4hHZ3BiLzFqPgPFM,1839
255
255
  zrb/input/float_input.py,sha256=8G9lJKLlb_Upk9m5pBF9JwqlAAiYJLrbIItLnyzPxpg,1475
256
256
  zrb/input/int_input.py,sha256=UhxCFYlZdJcgUSGGEkz301zOgRVpK0KDG_IxxWpQfMU,1457
@@ -409,7 +409,7 @@ zrb/util/todo_model.py,sha256=hhzAX-uFl5rsg7iVX1ULlJOfBtblwQ_ieNUxBWfc-Os,1670
409
409
  zrb/util/truncate.py,sha256=eSzmjBpc1Qod3lM3M73snNbDOcARHukW_tq36dWdPvc,921
410
410
  zrb/xcom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
411
411
  zrb/xcom/xcom.py,sha256=o79rxR9wphnShrcIushA0Qt71d_p3ZTxjNf7x9hJB78,1571
412
- zrb-1.15.15.dist-info/METADATA,sha256=VWZ52YsfHRjEU0_qygR3DMqufPQWd_rWaNqFabU7EDo,9775
413
- zrb-1.15.15.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
414
- zrb-1.15.15.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
415
- zrb-1.15.15.dist-info/RECORD,,
412
+ zrb-1.15.17.dist-info/METADATA,sha256=BU4mNVepzuJpdZZhgOGUbXmXqyUIoqK8IJgCAxF92_Q,9892
413
+ zrb-1.15.17.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
414
+ zrb-1.15.17.dist-info/entry_points.txt,sha256=-Pg3ElWPfnaSM-XvXqCxEAa-wfVI6BEgcs386s8C8v8,46
415
+ zrb-1.15.17.dist-info/RECORD,,
File without changes