swarmauri_tool_matplotlib 0.6.1.dev15__py3-none-any.whl → 0.7.0.dev2__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.
- swarmauri_tool_matplotlib/MatplotlibCsvTool.py +5 -5
- swarmauri_tool_matplotlib/MatplotlibTool.py +8 -8
- {swarmauri_tool_matplotlib-0.6.1.dev15.dist-info → swarmauri_tool_matplotlib-0.7.0.dev2.dist-info}/METADATA +4 -6
- swarmauri_tool_matplotlib-0.7.0.dev2.dist-info/RECORD +7 -0
- swarmauri_tool_matplotlib-0.6.1.dev15.dist-info/RECORD +0 -8
- swarmauri_tool_matplotlib-0.6.1.dev15.dist-info/entry_points.txt +0 -4
- {swarmauri_tool_matplotlib-0.6.1.dev15.dist-info → swarmauri_tool_matplotlib-0.7.0.dev2.dist-info}/LICENSE +0 -0
- {swarmauri_tool_matplotlib-0.6.1.dev15.dist-info → swarmauri_tool_matplotlib-0.7.0.dev2.dist-info}/WHEEL +0 -0
|
@@ -5,7 +5,7 @@ from typing import List, Literal, Dict
|
|
|
5
5
|
from pydantic import Field
|
|
6
6
|
from swarmauri_standard.tools.Parameter import Parameter
|
|
7
7
|
from swarmauri_base.tools.ToolBase import ToolBase
|
|
8
|
-
from
|
|
8
|
+
from swarmauri_base.ComponentBase import ComponentBase
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
@ComponentBase.register_type(ToolBase, "MatplotlibCsvTool")
|
|
@@ -24,25 +24,25 @@ class MatplotlibCsvTool(ToolBase):
|
|
|
24
24
|
default_factory=lambda: [
|
|
25
25
|
Parameter(
|
|
26
26
|
name="csv_file",
|
|
27
|
-
|
|
27
|
+
input_type="string",
|
|
28
28
|
description="The path to the CSV file containing the data.",
|
|
29
29
|
required=True,
|
|
30
30
|
),
|
|
31
31
|
Parameter(
|
|
32
32
|
name="x_column",
|
|
33
|
-
|
|
33
|
+
input_type="string",
|
|
34
34
|
description="The name of the column to use for the x-axis.",
|
|
35
35
|
required=True,
|
|
36
36
|
),
|
|
37
37
|
Parameter(
|
|
38
38
|
name="y_column",
|
|
39
|
-
|
|
39
|
+
input_type="string",
|
|
40
40
|
description="The name of the column to use for the y-axis.",
|
|
41
41
|
required=True,
|
|
42
42
|
),
|
|
43
43
|
Parameter(
|
|
44
44
|
name="output_file",
|
|
45
|
-
|
|
45
|
+
input_type="string",
|
|
46
46
|
description="The filename where the plot will be saved.",
|
|
47
47
|
required=True,
|
|
48
48
|
),
|
|
@@ -4,7 +4,7 @@ from typing import List, Literal
|
|
|
4
4
|
from pydantic import Field
|
|
5
5
|
from swarmauri_base.tools.ToolBase import ToolBase
|
|
6
6
|
from swarmauri_standard.tools.Parameter import Parameter
|
|
7
|
-
from
|
|
7
|
+
from swarmauri_base.ComponentBase import ComponentBase
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
@ComponentBase.register_type(ToolBase, "MatplotlibTool")
|
|
@@ -20,47 +20,47 @@ class MatplotlibTool(ToolBase):
|
|
|
20
20
|
default_factory=lambda: [
|
|
21
21
|
Parameter(
|
|
22
22
|
name="plot_type",
|
|
23
|
-
|
|
23
|
+
input_type="string",
|
|
24
24
|
description="Type of plot to generate (e.g., 'line', 'bar', 'scatter').",
|
|
25
25
|
required=True,
|
|
26
26
|
enum=["line", "bar", "scatter"],
|
|
27
27
|
),
|
|
28
28
|
Parameter(
|
|
29
29
|
name="x_data",
|
|
30
|
-
|
|
30
|
+
input_type="list<float>",
|
|
31
31
|
description="X-axis data for the plot.",
|
|
32
32
|
required=True,
|
|
33
33
|
),
|
|
34
34
|
Parameter(
|
|
35
35
|
name="y_data",
|
|
36
|
-
|
|
36
|
+
input_type="list<float>",
|
|
37
37
|
description="Y-axis data for the plot.",
|
|
38
38
|
required=True,
|
|
39
39
|
),
|
|
40
40
|
Parameter(
|
|
41
41
|
name="title",
|
|
42
|
-
|
|
42
|
+
input_type="string",
|
|
43
43
|
description="Title of the plot.",
|
|
44
44
|
required=False,
|
|
45
45
|
default="",
|
|
46
46
|
),
|
|
47
47
|
Parameter(
|
|
48
48
|
name="x_label",
|
|
49
|
-
|
|
49
|
+
input_type="string",
|
|
50
50
|
description="Label for the X-axis.",
|
|
51
51
|
required=False,
|
|
52
52
|
default="",
|
|
53
53
|
),
|
|
54
54
|
Parameter(
|
|
55
55
|
name="y_label",
|
|
56
|
-
|
|
56
|
+
input_type="string",
|
|
57
57
|
description="Label for the Y-axis.",
|
|
58
58
|
required=False,
|
|
59
59
|
default="",
|
|
60
60
|
),
|
|
61
61
|
Parameter(
|
|
62
62
|
name="save_path",
|
|
63
|
-
|
|
63
|
+
input_type="string",
|
|
64
64
|
description="Path to save the generated plot image.",
|
|
65
65
|
required=False,
|
|
66
66
|
default="plot.png",
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: swarmauri_tool_matplotlib
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0.dev2
|
|
4
4
|
Summary: Matplotlib tool for Swarmauri.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: Jacob Stewart
|
|
7
7
|
Author-email: jacob@swarmauri.com
|
|
8
8
|
Requires-Python: >=3.10,<3.13
|
|
9
9
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
10
|
Classifier: Programming Language :: Python :: 3.10
|
|
12
11
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
12
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
13
|
Requires-Dist: matplotlib (>=3.9.2)
|
|
15
|
-
Requires-Dist: swarmauri_base
|
|
16
|
-
Requires-Dist: swarmauri_core
|
|
17
|
-
Requires-Dist: swarmauri_standard
|
|
18
|
-
Project-URL: Repository, http://github.com/swarmauri/swarmauri-sdk
|
|
14
|
+
Requires-Dist: swarmauri_base
|
|
15
|
+
Requires-Dist: swarmauri_core
|
|
16
|
+
Requires-Dist: swarmauri_standard
|
|
19
17
|
Description-Content-Type: text/markdown
|
|
20
18
|
|
|
21
19
|

|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
swarmauri_tool_matplotlib/MatplotlibCsvTool.py,sha256=XmcfGwdWLOH9Oo1SCaQ7RCOHdXtEStAGiJpGMDMdb8k,2785
|
|
2
|
+
swarmauri_tool_matplotlib/MatplotlibTool.py,sha256=ZelF6NIQHIcfG5isgJZAupS4HzxO5fgPXyQ0KiBc0RA,3834
|
|
3
|
+
swarmauri_tool_matplotlib/__init__.py,sha256=l3l2zmsVTcKNkGOv8MXYOF_qzDhyIk3dTayb9zFvhns,568
|
|
4
|
+
swarmauri_tool_matplotlib-0.7.0.dev2.dist-info/LICENSE,sha256=djUXOlCxLVszShEpZXshZ7v33G-2qIC_j9KXpWKZSzQ,11359
|
|
5
|
+
swarmauri_tool_matplotlib-0.7.0.dev2.dist-info/METADATA,sha256=1wcVtlPbn71VNtYpJJ8JzKR7FA9JM31aqLYqL3gBYoo,2248
|
|
6
|
+
swarmauri_tool_matplotlib-0.7.0.dev2.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
|
7
|
+
swarmauri_tool_matplotlib-0.7.0.dev2.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
swarmauri_tool_matplotlib/MatplotlibCsvTool.py,sha256=u0i7woTmPJpiyZexxVMsUP8Cb6yGmj3WRoX-DZ2fkz4,2761
|
|
2
|
-
swarmauri_tool_matplotlib/MatplotlibTool.py,sha256=plW580W1UE6VKp3Wed7Hub_VN23-SQpCoGdJDSMOsLg,3792
|
|
3
|
-
swarmauri_tool_matplotlib/__init__.py,sha256=l3l2zmsVTcKNkGOv8MXYOF_qzDhyIk3dTayb9zFvhns,568
|
|
4
|
-
swarmauri_tool_matplotlib-0.6.1.dev15.dist-info/LICENSE,sha256=djUXOlCxLVszShEpZXshZ7v33G-2qIC_j9KXpWKZSzQ,11359
|
|
5
|
-
swarmauri_tool_matplotlib-0.6.1.dev15.dist-info/METADATA,sha256=siB_3lonox9xhT04EknfgThHhKSrCY8zbaSbNAGVTC4,2432
|
|
6
|
-
swarmauri_tool_matplotlib-0.6.1.dev15.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
|
7
|
-
swarmauri_tool_matplotlib-0.6.1.dev15.dist-info/entry_points.txt,sha256=tmpuKPgEx3MrpElcuhj5RAC42feLuh9TzDRC7Vz1ftQ,137
|
|
8
|
-
swarmauri_tool_matplotlib-0.6.1.dev15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|