swarmauri_toolkit_github 0.6.1.dev6__tar.gz → 0.6.1.dev16__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,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: swarmauri_toolkit_github
3
- Version: 0.6.1.dev6
3
+ Version: 0.6.1.dev16
4
4
  Summary: Github Toolkit
5
5
  License: Apache-2.0
6
6
  Author: Jacob Stewart
@@ -12,9 +12,9 @@ Classifier: Programming Language :: Python :: 3.10
12
12
  Classifier: Programming Language :: Python :: 3.11
13
13
  Classifier: Programming Language :: Python :: 3.12
14
14
  Requires-Dist: pygithub (>=2.4.0,<3.0.0)
15
- Requires-Dist: swarmauri_base (>=0.6.1.dev6,<0.7.0)
16
- Requires-Dist: swarmauri_core (>=0.6.1.dev6,<0.7.0)
17
- Requires-Dist: swarmauri_standard (>=0.6.1.dev6,<0.7.0)
15
+ Requires-Dist: swarmauri_base (>=0.6.1.dev14,<0.7.0)
16
+ Requires-Dist: swarmauri_core (>=0.6.1.dev14,<0.7.0)
17
+ Requires-Dist: swarmauri_standard (>=0.6.1.dev1,<0.7.0)
18
18
  Project-URL: Repository, http://github.com/swarmauri/swarmauri-sdk
19
19
  Description-Content-Type: text/markdown
20
20
 
@@ -22,10 +22,10 @@ Description-Content-Type: text/markdown
22
22
 
23
23
  <div align="center">
24
24
 
25
- ![PyPI - Downloads](https://img.shields.io/pypi/dm/swarmauri_tool_github)
26
- ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/swarmauri-tool-github)
27
- ![PyPI - License](https://img.shields.io/pypi/l/swarmauri_tool_github)
28
- ![PyPI - Version](https://img.shields.io/pypi/v/swarmauri-tool-github?label=swarmauri_tool_github&color=green)
25
+ ![PyPI - Downloads](https://img.shields.io/pypi/dm/swarmauri_toolkit_github)
26
+ ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/swarmauri-toolkit-github)
27
+ ![PyPI - License](https://img.shields.io/pypi/l/swarmauri_toolkit_github)
28
+ ![PyPI - Version](https://img.shields.io/pypi/v/swarmauri-toolkit-github?label=swarmauri_tool_github&color=green)
29
29
 
30
30
  </div>
31
31
 
@@ -38,7 +38,7 @@ A collection of GitHub tools for repository, issue, pull request, branch, and co
38
38
  ## Installation
39
39
 
40
40
  ```bash
41
- pip install swarmauri_tool_github
41
+ pip install swarmauri_toolkit_github
42
42
  ```
43
43
 
44
44
  ## Usage
@@ -46,7 +46,7 @@ pip install swarmauri_tool_github
46
46
  Here's a basic example using the GitHub toolkit:
47
47
 
48
48
  ```python
49
- from swarmauri.tools.GithubToolkit import GithubToolkit
49
+ from swarmauri.toolkits.GithubToolkit import GithubToolkit
50
50
 
51
51
  # Initialize the toolkit with your GitHub token
52
52
  toolkit = GithubToolkit(token="your_github_token")
@@ -2,10 +2,10 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- ![PyPI - Downloads](https://img.shields.io/pypi/dm/swarmauri_tool_github)
6
- ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/swarmauri-tool-github)
7
- ![PyPI - License](https://img.shields.io/pypi/l/swarmauri_tool_github)
8
- ![PyPI - Version](https://img.shields.io/pypi/v/swarmauri-tool-github?label=swarmauri_tool_github&color=green)
5
+ ![PyPI - Downloads](https://img.shields.io/pypi/dm/swarmauri_toolkit_github)
6
+ ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/swarmauri-toolkit-github)
7
+ ![PyPI - License](https://img.shields.io/pypi/l/swarmauri_toolkit_github)
8
+ ![PyPI - Version](https://img.shields.io/pypi/v/swarmauri-toolkit-github?label=swarmauri_tool_github&color=green)
9
9
 
10
10
  </div>
11
11
 
@@ -18,7 +18,7 @@ A collection of GitHub tools for repository, issue, pull request, branch, and co
18
18
  ## Installation
19
19
 
20
20
  ```bash
21
- pip install swarmauri_tool_github
21
+ pip install swarmauri_toolkit_github
22
22
  ```
23
23
 
24
24
  ## Usage
@@ -26,7 +26,7 @@ pip install swarmauri_tool_github
26
26
  Here's a basic example using the GitHub toolkit:
27
27
 
28
28
  ```python
29
- from swarmauri.tools.GithubToolkit import GithubToolkit
29
+ from swarmauri.toolkits.GithubToolkit import GithubToolkit
30
30
 
31
31
  # Initialize the toolkit with your GitHub token
32
32
  toolkit = GithubToolkit(token="your_github_token")
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "swarmauri_toolkit_github"
3
- version = "0.6.1.dev6"
3
+ version = "0.6.1.dev16"
4
4
  description = "Github Toolkit"
5
5
  authors = ["Jacob Stewart <jacob@swarmauri.com>"]
6
6
  license = "Apache-2.0"
@@ -17,9 +17,9 @@ classifiers = [
17
17
  python = ">=3.10,<3.13"
18
18
 
19
19
  # Swarmauri
20
- swarmauri_core = {version = "^0.6.1.dev6"}
21
- swarmauri_base = {version = "^0.6.1.dev6"}
22
- swarmauri_standard = {version = "^0.6.1.dev6"}
20
+ swarmauri_core = {version = "^0.6.1.dev14"}
21
+ swarmauri_base = {version = "^0.6.1.dev14"}
22
+ swarmauri_standard = {version = "^0.6.1.dev1"}
23
23
 
24
24
  # Dependencies
25
25
  pygithub = "^2.4.0"
@@ -42,7 +42,7 @@ class GithubBranchTool(ToolBase):
42
42
  name: str = "GithubBranchTool"
43
43
  description: str = "Interacts with GitHub branches using PyGithub."
44
44
  type: Literal["GithubBranchTool"] = "GithubBranchTool"
45
- token: str
45
+ api_token: str
46
46
  model_config = ConfigDict(arbitrary_types_allowed=True)
47
47
 
48
48
  def __call__(self, action: str, **kwargs) -> Dict[str, Any]:
@@ -64,7 +64,7 @@ class GithubBranchTool(ToolBase):
64
64
  }
65
65
 
66
66
  if action in action_map:
67
- self._github = Github(self.token)
67
+ self._github = Github(self.api_token)
68
68
  return {action: action_map[action](**kwargs)}
69
69
 
70
70
  raise ValueError(f"Action '{action}' is not supported.")
@@ -72,7 +72,7 @@ class GithubCommitTool(ToolBase):
72
72
  "Interacts with GitHub repositories using PyGithub to submit commits."
73
73
  )
74
74
  type: Literal["GithubCommitTool"] = "GithubCommitTool"
75
- token: str
75
+ api_token: str
76
76
  model_config = ConfigDict(arbitrary_types_allowed=True)
77
77
 
78
78
  def __call__(self, action: str, **kwargs) -> Dict[str, Any]:
@@ -94,7 +94,7 @@ class GithubCommitTool(ToolBase):
94
94
  }
95
95
 
96
96
  if action in action_map:
97
- self._github = Github(self.token)
97
+ self._github = Github(self.api_token)
98
98
  return {action: action_map[action](**kwargs)}
99
99
 
100
100
  raise ValueError(f"Action '{action}' is not supported.")
@@ -46,7 +46,7 @@ class GithubIssueTool(ToolBase):
46
46
  name: str = "GithubIssueTool"
47
47
  description: str = "Interacts with GitHub repositories using PyGithub."
48
48
  type: Literal["GithubIssueTool"] = "GithubIssueTool"
49
- token: str
49
+ api_token: str
50
50
  model_config = ConfigDict(arbitrary_types_allowed=True)
51
51
 
52
52
  def __call__(self, action: str, **kwargs) -> Dict[str, Any]:
@@ -69,7 +69,7 @@ class GithubIssueTool(ToolBase):
69
69
  }
70
70
 
71
71
  if action in action_map:
72
- self._github = Github(self.token)
72
+ self._github = Github(self.api_token)
73
73
  return {action: action_map[action](**kwargs)}
74
74
 
75
75
  raise ValueError(f"Action '{action}' is not supported.")
@@ -58,7 +58,7 @@ class GithubPRTool(ToolBase):
58
58
  name: str = "GithubPRTool"
59
59
  description: str = "Interacts with GitHub repositories using PyGithub."
60
60
  type: Literal["GithubPRTool"] = "GithubPRTool"
61
- token: str
61
+ api_token: str
62
62
  model_config = ConfigDict(arbitrary_types_allowed=True)
63
63
 
64
64
  def __call__(self, action: str, **kwargs) -> Dict[str, Any]:
@@ -81,7 +81,7 @@ class GithubPRTool(ToolBase):
81
81
  }
82
82
 
83
83
  if action in action_map:
84
- self._github = Github(self.token)
84
+ self._github = Github(self.api_token)
85
85
  return {action: action_map[action](**kwargs)}
86
86
 
87
87
  raise ValueError(f"Action '{action}' is not supported.")
@@ -34,7 +34,7 @@ class GithubRepoTool(ToolBase):
34
34
  name: str = "GithubRepoTool"
35
35
  description: str = "Interacts with GitHub repositories using PyGithub."
36
36
  type: Literal["GithubRepoTool"] = "GithubRepoTool"
37
- token: str
37
+ api_token: str
38
38
  model_config = ConfigDict(arbitrary_types_allowed=True)
39
39
 
40
40
  def __call__(self, action: str, **kwargs) -> Dict[str, Any]:
@@ -57,7 +57,7 @@ class GithubRepoTool(ToolBase):
57
57
  }
58
58
 
59
59
  if action in action_map:
60
- self._github = Github(self.token)
60
+ self._github = Github(self.api_token)
61
61
  return {action: action_map[action](**kwargs)}
62
62
 
63
63
  raise ValueError(f"Action '{action}' is not supported.")
@@ -29,15 +29,15 @@ class GithubToolkit(ToolkitBase):
29
29
  super().__init__(**kwargs)
30
30
 
31
31
  if not api_token:
32
- raise ValueError("Invalid Token or Missing token")
32
+ raise ValueError("Invalid Token or Missing api_token")
33
33
 
34
34
  self.api_token = api_token
35
35
 
36
- self.github_repo_tool = GithubRepoTool(token=self.api_token)
37
- self.github_issue_tool = GithubIssueTool(token=self.api_token)
38
- self.github_pr_tool = GithubPRTool(token=self.token)
39
- self.github_branch_tool = GithubBranchTool(token=self.api_token)
40
- self.github_commit_tool = GithubCommitTool(token=self.api_token)
36
+ self.github_repo_tool = GithubRepoTool(api_token=self.api_token)
37
+ self.github_issue_tool = GithubIssueTool(api_token=self.api_token)
38
+ self.github_pr_tool = GithubPRTool(api_token=self.token)
39
+ self.github_branch_tool = GithubBranchTool(api_token=self.api_token)
40
+ self.github_commit_tool = GithubCommitTool(api_token=self.api_token)
41
41
 
42
42
  self.add_tool(self.github_repo_tool)
43
43
  self.add_tool(self.github_issue_tool)