waldiez 0.2.1__tar.gz → 0.2.2__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.
Potentially problematic release.
This version of waldiez might be problematic. Click here for more details.
- {waldiez-0.2.1 → waldiez-0.2.2}/PKG-INFO +8 -8
- {waldiez-0.2.1 → waldiez-0.2.2}/README.md +4 -4
- {waldiez-0.2.1 → waldiez-0.2.2}/pyproject.toml +3 -3
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/_version.py +1 -1
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/cli_extras.py +21 -24
- {waldiez-0.2.1 → waldiez-0.2.2}/.gitignore +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/LICENSE +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/__main__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/cli.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/conflict_checker.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporter.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/agents/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/agents/agent.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/agents/agent_skills.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/agents/code_execution.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/agents/group_manager.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/agents/llm_config.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/agents/rag_user/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/agents/rag_user/chroma_utils.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/agents/rag_user/mongo_utils.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/agents/rag_user/pgvector_utils.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/agents/rag_user/qdrant_utils.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/agents/rag_user/rag_user.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/agents/rag_user/vector_db.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/agents/teachability.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/agents/termination_message.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/chats/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/chats/chats.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/chats/helpers.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/chats/nested.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/flow/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/flow/def_main.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/flow/flow.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/models/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/skills/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/utils/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/utils/comments.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/utils/importing.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/utils/logging_utils.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/utils/method_utils.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/utils/naming.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/utils/object_string.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/exporting/utils/path_check.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/agent/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/agent/agent.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/agent/agent_data.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/agent/code_execution.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/agent/linked_skill.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/agent/nested_chat.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/agent/teachability.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/agent/termination_message.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/agents.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/assistant/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/assistant/assistant.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/assistant/assistant_data.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/group_manager/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/group_manager/group_manager.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/group_manager/group_manager_data.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/group_manager/speakers.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/rag_user/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/rag_user/rag_user.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/rag_user/rag_user_data.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/rag_user/retrieve_config.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/rag_user/vector_db_config.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/user_proxy/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/user_proxy/user_proxy.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/agents/user_proxy/user_proxy_data.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/chat/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/chat/chat.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/chat/chat_data.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/chat/chat_message.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/chat/chat_nested.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/chat/chat_summary.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/common/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/common/base.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/common/method_utils.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/flow/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/flow/flow.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/flow/flow_data.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/model/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/model/model.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/model/model_data.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/skill/__init__.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/skill/skill.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/skill/skill_data.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/models/waldiez.py +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/py.typed +0 -0
- {waldiez-0.2.1 → waldiez-0.2.2}/waldiez/runner.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: waldiez
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: waldiez
|
|
5
5
|
Project-URL: homepage, https://waldiez.github.io/waldiez/python
|
|
6
6
|
Project-URL: repository, https://github.com/waldiez/python.git
|
|
@@ -53,7 +53,7 @@ Requires-Dist: pylint==3.3.3; extra == 'dev'
|
|
|
53
53
|
Requires-Dist: python-dotenv==1.0.1; extra == 'dev'
|
|
54
54
|
Requires-Dist: ruff==0.8.4; extra == 'dev'
|
|
55
55
|
Requires-Dist: toml; (python_version <= '3.10') and extra == 'dev'
|
|
56
|
-
Requires-Dist: types-pyyaml==6.0.12.
|
|
56
|
+
Requires-Dist: types-pyyaml==6.0.12.20241221; extra == 'dev'
|
|
57
57
|
Requires-Dist: types-toml==0.10.8.20240310; extra == 'dev'
|
|
58
58
|
Requires-Dist: yamllint==1.35.1; extra == 'dev'
|
|
59
59
|
Provides-Extra: docs
|
|
@@ -68,9 +68,9 @@ Requires-Dist: mkdocstrings-python==1.12.2; extra == 'docs'
|
|
|
68
68
|
Requires-Dist: mkdocstrings[crystal,python]==0.27.0; extra == 'docs'
|
|
69
69
|
Provides-Extra: jupyter
|
|
70
70
|
Requires-Dist: jupyterlab>=4.3.0; extra == 'jupyter'
|
|
71
|
-
Requires-Dist: waldiez-jupyter==0.2.
|
|
71
|
+
Requires-Dist: waldiez-jupyter==0.2.2; extra == 'jupyter'
|
|
72
72
|
Provides-Extra: studio
|
|
73
|
-
Requires-Dist: waldiez-studio==0.2.
|
|
73
|
+
Requires-Dist: waldiez-studio==0.2.2; extra == 'studio'
|
|
74
74
|
Provides-Extra: test
|
|
75
75
|
Requires-Dist: pytest-cov==6.0.0; extra == 'test'
|
|
76
76
|
Requires-Dist: pytest-html==4.1.1; extra == 'test'
|
|
@@ -120,17 +120,17 @@ The repo for the js library is [here](https://github.com/waldiez/react).
|
|
|
120
120
|
- You also can use the vscode extension:
|
|
121
121
|
- [repo](https://github.com/waldiez/vscode)
|
|
122
122
|
- [marketplace](https://marketplace.visualstudio.com/items?itemName=Waldiez.waldiez-vscode)
|
|
123
|
-
- Finally, you can use [waldiez-studio](https://github.com/waldiez/studio)
|
|
123
|
+
- Finally, you can use [waldiez-studio](https://github.com/waldiez/studio), which includes a FastAPI app to handle the conversion and running of waldiez flows.
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
The jupyterlab extension and studio also provided as extras in the main package.
|
|
125
|
+
The jupyterlab extension and waldiez studio are also provided as extras in the main package.
|
|
127
126
|
|
|
128
127
|
```shell
|
|
129
128
|
pip install waldiez[studio] # or pip install waldiez_studio
|
|
130
129
|
pip install waldiez[jupyter] # or pip install waldiez_jupyter
|
|
131
130
|
# or both
|
|
132
131
|
pip install waldiez[studio,jupyter]
|
|
133
|
-
```
|
|
132
|
+
```
|
|
133
|
+
|
|
134
134
|
### CLI
|
|
135
135
|
|
|
136
136
|
```bash
|
|
@@ -38,17 +38,17 @@ The repo for the js library is [here](https://github.com/waldiez/react).
|
|
|
38
38
|
- You also can use the vscode extension:
|
|
39
39
|
- [repo](https://github.com/waldiez/vscode)
|
|
40
40
|
- [marketplace](https://marketplace.visualstudio.com/items?itemName=Waldiez.waldiez-vscode)
|
|
41
|
-
- Finally, you can use [waldiez-studio](https://github.com/waldiez/studio)
|
|
41
|
+
- Finally, you can use [waldiez-studio](https://github.com/waldiez/studio), which includes a FastAPI app to handle the conversion and running of waldiez flows.
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
The jupyterlab extension and studio also provided as extras in the main package.
|
|
43
|
+
The jupyterlab extension and waldiez studio are also provided as extras in the main package.
|
|
45
44
|
|
|
46
45
|
```shell
|
|
47
46
|
pip install waldiez[studio] # or pip install waldiez_studio
|
|
48
47
|
pip install waldiez[jupyter] # or pip install waldiez_jupyter
|
|
49
48
|
# or both
|
|
50
49
|
pip install waldiez[studio,jupyter]
|
|
51
|
-
```
|
|
50
|
+
```
|
|
51
|
+
|
|
52
52
|
### CLI
|
|
53
53
|
|
|
54
54
|
```bash
|
|
@@ -43,10 +43,10 @@ exclude = [ "**/example.py" ]
|
|
|
43
43
|
|
|
44
44
|
[project.optional-dependencies]
|
|
45
45
|
studio = [
|
|
46
|
-
"waldiez_studio==0.2.
|
|
46
|
+
"waldiez_studio==0.2.2",
|
|
47
47
|
]
|
|
48
48
|
jupyter = [
|
|
49
|
-
"waldiez_jupyter==0.2.
|
|
49
|
+
"waldiez_jupyter==0.2.2",
|
|
50
50
|
"jupyterlab>=4.3.0",
|
|
51
51
|
]
|
|
52
52
|
dev = [
|
|
@@ -61,7 +61,7 @@ dev = [
|
|
|
61
61
|
'pylint==3.3.3',
|
|
62
62
|
'python-dotenv==1.0.1',
|
|
63
63
|
'ruff==0.8.4',
|
|
64
|
-
'types-PyYAML==6.0.12.
|
|
64
|
+
'types-PyYAML==6.0.12.20241221',
|
|
65
65
|
'yamllint==1.35.1',
|
|
66
66
|
'toml; python_version <= "3.10"',
|
|
67
67
|
'types-toml== 0.10.8.20240310',
|
|
@@ -4,13 +4,16 @@
|
|
|
4
4
|
# isort: skip_file
|
|
5
5
|
"""Extra typer commands for CLI."""
|
|
6
6
|
|
|
7
|
+
from typing import Callable
|
|
8
|
+
|
|
7
9
|
import typer
|
|
10
|
+
from typer.models import CommandInfo
|
|
8
11
|
import subprocess # nosemgrep # nosec
|
|
9
12
|
|
|
10
13
|
HAVE_STUDIO = False
|
|
11
14
|
HAVE_JUPYTER = False
|
|
12
15
|
try:
|
|
13
|
-
from waldiez_studio.cli import
|
|
16
|
+
from waldiez_studio.cli import run as studio_app
|
|
14
17
|
|
|
15
18
|
HAVE_STUDIO = True
|
|
16
19
|
except BaseException:
|
|
@@ -38,18 +41,17 @@ def add_cli_extras(app: typer.Typer) -> None:
|
|
|
38
41
|
The app with the extra commands added
|
|
39
42
|
"""
|
|
40
43
|
if HAVE_STUDIO:
|
|
41
|
-
app.
|
|
42
|
-
studio_app
|
|
43
|
-
name="studio",
|
|
44
|
-
help="Start Waldiez Studio.",
|
|
45
|
-
no_args_is_help=False,
|
|
44
|
+
app.registered_commands.append(
|
|
45
|
+
CommandInfo(name="studio", callback=studio_app)
|
|
46
46
|
)
|
|
47
47
|
if HAVE_JUPYTER:
|
|
48
48
|
jupyter_app = get_jupyter_app()
|
|
49
|
-
app.
|
|
49
|
+
app.registered_commands.append(
|
|
50
|
+
CommandInfo(name="lab", callback=jupyter_app)
|
|
51
|
+
)
|
|
50
52
|
|
|
51
53
|
|
|
52
|
-
def get_jupyter_app() ->
|
|
54
|
+
def get_jupyter_app() -> Callable[..., None]:
|
|
53
55
|
"""Get the Jupyter Typer app.
|
|
54
56
|
|
|
55
57
|
Returns
|
|
@@ -58,26 +60,22 @@ def get_jupyter_app() -> typer.Typer:
|
|
|
58
60
|
The Jupyter Typer app
|
|
59
61
|
"""
|
|
60
62
|
jupyter_app = typer.Typer(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
add_completion=False,
|
|
64
|
+
no_args_is_help=False,
|
|
65
|
+
pretty_exceptions_enable=False,
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
@jupyter_app.callback(
|
|
69
|
+
name="start",
|
|
70
|
+
help="Start JupyterLab.",
|
|
63
71
|
context_settings={
|
|
64
72
|
"help_option_names": ["-h", "--help"],
|
|
65
73
|
"allow_extra_args": True,
|
|
66
74
|
"ignore_unknown_options": True,
|
|
67
75
|
},
|
|
68
|
-
add_completion=False,
|
|
69
76
|
no_args_is_help=False,
|
|
70
77
|
invoke_without_command=True,
|
|
71
78
|
add_help_option=True,
|
|
72
|
-
pretty_exceptions_enable=False,
|
|
73
|
-
epilog=(
|
|
74
|
-
"Use `waldiez lab [COMMAND] --help` for command-specific help. "
|
|
75
|
-
),
|
|
76
|
-
)
|
|
77
|
-
|
|
78
|
-
@jupyter_app.command(
|
|
79
|
-
name="start",
|
|
80
|
-
help="Start JupyterLab.",
|
|
81
79
|
)
|
|
82
80
|
def start(
|
|
83
81
|
port: int = typer.Option(
|
|
@@ -92,8 +90,7 @@ def get_jupyter_app() -> typer.Typer:
|
|
|
92
90
|
),
|
|
93
91
|
browser: bool = typer.Option(
|
|
94
92
|
False,
|
|
95
|
-
"
|
|
96
|
-
help="Don't open the browser.",
|
|
93
|
+
help="Open the browser after starting JupyterLab.",
|
|
97
94
|
),
|
|
98
95
|
password: str = typer.Option(
|
|
99
96
|
None,
|
|
@@ -111,7 +108,7 @@ def get_jupyter_app() -> typer.Typer:
|
|
|
111
108
|
"--ServerApp.allow_origin='*'",
|
|
112
109
|
"--ServerApp.disable_check_xsrf=True",
|
|
113
110
|
]
|
|
114
|
-
if browser:
|
|
111
|
+
if not browser:
|
|
115
112
|
command.append("--no-browser")
|
|
116
113
|
if password:
|
|
117
114
|
from jupyter_server.auth import passwd
|
|
@@ -120,4 +117,4 @@ def get_jupyter_app() -> typer.Typer:
|
|
|
120
117
|
command.append(f"--ServerApp.password={hashed_password}")
|
|
121
118
|
subprocess.run(command)
|
|
122
119
|
|
|
123
|
-
return
|
|
120
|
+
return start
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|