swarmauri_tool_gmail 0.6.1.dev16__tar.gz → 0.7.0.dev2__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,21 +1,19 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: swarmauri_tool_gmail
3
- Version: 0.6.1.dev16
3
+ Version: 0.7.0.dev2
4
4
  Summary: example community package
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
- Requires-Dist: google-api-python-client (>=2.157.0,<3.0.0)
15
- Requires-Dist: swarmauri_base (>=0.6.1.dev16,<0.7.0)
16
- Requires-Dist: swarmauri_core (>=0.6.1.dev16,<0.7.0)
17
- Requires-Dist: swarmauri_standard (>=0.6.1.dev3,<0.7.0)
18
- Project-URL: Repository, http://github.com/swarmauri/swarmauri-sdk
13
+ Requires-Dist: google-api-python-client (>=2.157.0)
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
  ![Swarmauri Logo](https://res.cloudinary.com/dbjmpekvl/image/upload/v1730099724/Swarmauri-logo-lockup-2048x757_hww01w.png)
@@ -0,0 +1,65 @@
1
+ [project]
2
+ name = "swarmauri_tool_gmail"
3
+ version = "0.7.0.dev2"
4
+ description = "example community package"
5
+ license = "Apache-2.0"
6
+ readme = "README.md"
7
+ repository = "http://github.com/swarmauri/swarmauri-sdk"
8
+ requires-python = ">=3.10,<3.13"
9
+ classifiers = [
10
+ "License :: OSI Approved :: Apache Software License",
11
+ "Programming Language :: Python :: 3.10",
12
+ "Programming Language :: Python :: 3.11",
13
+ "Programming Language :: Python :: 3.12",
14
+ ]
15
+ authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
16
+ dependencies = [
17
+ "google-api-python-client>=2.157.0",
18
+ "swarmauri_core",
19
+ "swarmauri_base",
20
+ "swarmauri_standard",
21
+ ]
22
+
23
+ [tool.uv.sources]
24
+ swarmauri_core = { workspace = true }
25
+ swarmauri_base = { workspace = true }
26
+ swarmauri_standard = { workspace = true }
27
+
28
+ [tool.pytest.ini_options]
29
+ norecursedirs = ["combined", "scripts"]
30
+ markers = [
31
+ "test: standard test",
32
+ "unit: Unit tests",
33
+ "i9n: Integration tests",
34
+ "r8n: Regression tests",
35
+ "timeout: mark test to timeout after X seconds",
36
+ "xpass: Expected passes",
37
+ "xfail: Expected failures",
38
+ "acceptance: Acceptance tests",
39
+ ]
40
+ timeout = 300
41
+ log_cli = true
42
+ log_cli_level = "INFO"
43
+ log_cli_format = "%(asctime)s [%(levelname)s] %(message)s"
44
+ log_cli_date_format = "%Y-%m-%d %H:%M:%S"
45
+ asyncio_default_fixture_loop_scope = "function"
46
+
47
+ [tool.project.entry-points."swarmauri.tools"]
48
+ GmailSendTool = "swarmauri_tool_gmail.GmailSendTool:GmailSendTool"
49
+ GmailReadTool = "swarmauri_tool_gmail.GmailReadTool:GmailReadTool"
50
+ [build-system]
51
+ requires = ["poetry-core>=1.0.0"]
52
+ build-backend = "poetry.core.masonry.api"
53
+
54
+ [dependency-groups]
55
+ dev = [
56
+ "pytest>=8.0",
57
+ "pytest-asyncio>=0.24.0",
58
+ "pytest-xdist>=3.6.1",
59
+ "pytest-json-report>=1.5.0",
60
+ "python-dotenv",
61
+ "requests>=2.32.3",
62
+ "flake8>=7.0",
63
+ "pytest-timeout>=2.3.1",
64
+ "ruff>=0.9.9",
65
+ ]
@@ -1,6 +1,6 @@
1
1
  from google.oauth2 import service_account
2
2
  from googleapiclient.discovery import build
3
- from swarmauri_core.ComponentBase import ComponentBase
3
+ from swarmauri_base.ComponentBase import ComponentBase
4
4
  from swarmauri_base.tools.ToolBase import ToolBase
5
5
  from swarmauri_standard.tools.Parameter import Parameter
6
6
  from typing import List, Literal, Dict, Optional
@@ -15,13 +15,13 @@ class GmailReadTool(ToolBase):
15
15
  default_factory=lambda: [
16
16
  Parameter(
17
17
  name="query",
18
- type="string",
18
+ input_type="string",
19
19
  description="""The query to filter emails. For example, "is:unread" or "from:example@gmail.com".""",
20
20
  required=True,
21
21
  ),
22
22
  Parameter(
23
23
  name="max_results",
24
- type="integer",
24
+ input_type="integer",
25
25
  description="""The maximum number of emails to return. Defaults to 10.""",
26
26
  ),
27
27
  ]
@@ -3,7 +3,7 @@ from email.mime.multipart import MIMEMultipart
3
3
  from email.mime.text import MIMEText
4
4
  from google.oauth2 import service_account
5
5
  from googleapiclient.discovery import build, Resource
6
- from swarmauri_core.ComponentBase import ComponentBase
6
+ from swarmauri_base.ComponentBase import ComponentBase
7
7
  from swarmauri_base.tools.ToolBase import ToolBase
8
8
  from swarmauri_standard.tools.Parameter import Parameter
9
9
  from typing import List, Dict, Literal
@@ -19,19 +19,19 @@ class GmailSendTool(ToolBase):
19
19
  default_factory=lambda: [
20
20
  Parameter(
21
21
  name="recipients",
22
- type="string",
22
+ input_type="string",
23
23
  description="The email addresses of the recipients, separated by commas",
24
24
  required=True,
25
25
  ),
26
26
  Parameter(
27
27
  name="subject",
28
- type="string",
28
+ input_type="string",
29
29
  description="The subject of the email",
30
30
  required=True,
31
31
  ),
32
32
  Parameter(
33
33
  name="htmlMsg",
34
- type="string",
34
+ input_type="string",
35
35
  description="The HTML message to be sent as the email body",
36
36
  required=True,
37
37
  ),
@@ -1,58 +0,0 @@
1
- [tool.poetry]
2
- name = "swarmauri_tool_gmail"
3
- version = "0.6.1.dev16"
4
- description = "example community package"
5
- authors = ["Jacob Stewart <jacob@swarmauri.com>"]
6
- license = "Apache-2.0"
7
- readme = "README.md"
8
- repository = "http://github.com/swarmauri/swarmauri-sdk"
9
- classifiers = [
10
- "License :: OSI Approved :: Apache Software License",
11
- "Programming Language :: Python :: 3.10",
12
- "Programming Language :: Python :: 3.11",
13
- "Programming Language :: Python :: 3.12"
14
- ]
15
-
16
- [tool.poetry.dependencies]
17
- python = ">=3.10,<3.13"
18
-
19
- # Swarmauri
20
- swarmauri_core = {version = "^0.6.1.dev16"}
21
- swarmauri_base = {version = "^0.6.1.dev16"}
22
- swarmauri_standard = {version = "^0.6.1.dev3"}
23
-
24
- # Dependencies
25
- google-api-python-client = "^2.157.0"
26
-
27
- [tool.poetry.group.dev.dependencies]
28
- flake8 = "^7.0"
29
- pytest = "^8.0"
30
- pytest-asyncio = ">=0.24.0"
31
- pytest-xdist = "^3.6.1"
32
- pytest-json-report = "^1.5.0"
33
- python-dotenv = "*"
34
- requests = "^2.32.3"
35
-
36
- [build-system]
37
- requires = ["poetry-core>=1.0.0"]
38
- build-backend = "poetry.core.masonry.api"
39
-
40
- [tool.pytest.ini_options]
41
- norecursedirs = ["combined", "scripts"]
42
-
43
- markers = [
44
- "test: standard test",
45
- "unit: Unit tests",
46
- "integration: Integration tests",
47
- "acceptance: Acceptance tests",
48
- "experimental: Experimental tests"
49
- ]
50
- log_cli = true
51
- log_cli_level = "INFO"
52
- log_cli_format = "%(asctime)s [%(levelname)s] %(message)s"
53
- log_cli_date_format = "%Y-%m-%d %H:%M:%S"
54
- asyncio_default_fixture_loop_scope = "function"
55
-
56
- [tool.poetry.plugins."swarmauri.tools"]
57
- GmailSendTool = "swarmauri_tool_gmail.GmailSendTool:GmailSendTool"
58
- GmailReadTool = "swarmauri_tool_gmail.GmailReadTool:GmailReadTool"