aiagenthub-cli 0.1.0__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.
Files changed (27) hide show
  1. aiagenthub_cli-0.1.0/LICENSE +21 -0
  2. aiagenthub_cli-0.1.0/PKG-INFO +173 -0
  3. aiagenthub_cli-0.1.0/README.md +125 -0
  4. aiagenthub_cli-0.1.0/aiagent/__init__.py +5 -0
  5. aiagenthub_cli-0.1.0/aiagent/cli.py +1414 -0
  6. aiagenthub_cli-0.1.0/aiagent/context/__init__.py +3 -0
  7. aiagenthub_cli-0.1.0/aiagent/registry_client.py +363 -0
  8. aiagenthub_cli-0.1.0/aiagent/runtimes/__init__.py +3 -0
  9. aiagenthub_cli-0.1.0/aiagent/runtimes/base.py +66 -0
  10. aiagenthub_cli-0.1.0/aiagent/runtimes/python_runtime.py +213 -0
  11. aiagenthub_cli-0.1.0/aiagent/secure_credentials.py +200 -0
  12. aiagenthub_cli-0.1.0/aiagent/spec_loader.py +75 -0
  13. aiagenthub_cli-0.1.0/aiagent/tools/__init__.py +3 -0
  14. aiagenthub_cli-0.1.0/aiagent/tools/base.py +67 -0
  15. aiagenthub_cli-0.1.0/aiagent/tools/builtin/__init__.py +3 -0
  16. aiagenthub_cli-0.1.0/aiagent/tools/builtin/file_operations.py +86 -0
  17. aiagenthub_cli-0.1.0/aiagent/tools/builtin/http_request.py +68 -0
  18. aiagenthub_cli-0.1.0/aiagent/tools/builtin/text_processing.py +95 -0
  19. aiagenthub_cli-0.1.0/aiagent/tools/registry.py +155 -0
  20. aiagenthub_cli-0.1.0/aiagenthub_cli.egg-info/PKG-INFO +173 -0
  21. aiagenthub_cli-0.1.0/aiagenthub_cli.egg-info/SOURCES.txt +25 -0
  22. aiagenthub_cli-0.1.0/aiagenthub_cli.egg-info/dependency_links.txt +1 -0
  23. aiagenthub_cli-0.1.0/aiagenthub_cli.egg-info/entry_points.txt +2 -0
  24. aiagenthub_cli-0.1.0/aiagenthub_cli.egg-info/requires.txt +9 -0
  25. aiagenthub_cli-0.1.0/aiagenthub_cli.egg-info/top_level.txt +1 -0
  26. aiagenthub_cli-0.1.0/setup.cfg +4 -0
  27. aiagenthub_cli-0.1.0/setup.py +54 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 AI Agent Hub Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,173 @@
1
+ Metadata-Version: 2.4
2
+ Name: aiagenthub-cli
3
+ Version: 0.1.0
4
+ Summary: CLI tool for running and managing AI Agents
5
+ Home-page: https://github.com/aymanazzam/aiagent-hub
6
+ Author: AI Agent Hub Team
7
+ Author-email: aymanazzam63@gmail.com
8
+ License: MIT
9
+ Project-URL: Bug Tracker, https://github.com/aymanazzam/aiagent-hub/issues
10
+ Project-URL: Documentation, https://github.com/aymanazzam/aiagent-hub
11
+ Project-URL: Source Code, https://github.com/aymanazzam/aiagent-hub
12
+ Keywords: ai agents cli registry docker-hub automation
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.9
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Operating System :: OS Independent
23
+ Requires-Python: >=3.9
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ Requires-Dist: click>=8.1.0
27
+ Requires-Dist: pyyaml>=6.0
28
+ Requires-Dist: jsonschema>=4.0.0
29
+ Requires-Dist: requests>=2.31.0
30
+ Requires-Dist: psutil>=5.9.0
31
+ Requires-Dist: keyring>=24.0.0
32
+ Requires-Dist: cryptography>=41.0.0
33
+ Requires-Dist: rich>=13.0.0
34
+ Requires-Dist: questionary>=2.0.0
35
+ Dynamic: author
36
+ Dynamic: author-email
37
+ Dynamic: classifier
38
+ Dynamic: description
39
+ Dynamic: description-content-type
40
+ Dynamic: home-page
41
+ Dynamic: keywords
42
+ Dynamic: license
43
+ Dynamic: license-file
44
+ Dynamic: project-url
45
+ Dynamic: requires-dist
46
+ Dynamic: requires-python
47
+ Dynamic: summary
48
+
49
+ # AI Agent Hub CLI
50
+
51
+ Command-line interface for managing and running AI Agents from the AI Agent Hub registry.
52
+
53
+ ## Features
54
+
55
+ - 🚀 **Pull & Run**: Download and execute agents from the registry
56
+ - 📦 **Push**: Publish your agents to the registry
57
+ - 🏷️ **Version Management**: Tag and manage agent versions
58
+ - 🔑 **Authentication**: Secure API key-based authentication
59
+ - 🔄 **Background Execution**: Run agents as background processes
60
+ - ✅ **Validation**: Verify agent specifications before deployment
61
+
62
+ ## Installation
63
+
64
+ ```bash
65
+ pip install aiagent
66
+ ```
67
+
68
+ ## Quick Start
69
+
70
+ ### 1. Login to Registry
71
+
72
+ First, create an API key in your AI Agent Hub profile, then login:
73
+
74
+ ```bash
75
+ aiagent login YOUR_API_KEY
76
+ ```
77
+
78
+ ### 2. Pull an Agent
79
+
80
+ Download an agent from the registry:
81
+
82
+ ```bash
83
+ aiagent pull username/agent-name
84
+ aiagent pull username/agent-name:1.0.0
85
+ ```
86
+
87
+ ### 3. Run an Agent
88
+
89
+ Execute an agent locally:
90
+
91
+ ```bash
92
+ aiagent run ./agent-name
93
+ aiagent run -d ./agent-name # Run in background
94
+ ```
95
+
96
+ ### 4. Push Your Agent
97
+
98
+ Publish your agent to the registry:
99
+
100
+ ```bash
101
+ aiagent push ./my-agent
102
+ aiagent push ./my-agent -t latest
103
+ ```
104
+
105
+ ## Commands
106
+
107
+ ### Authentication
108
+ - `aiagent login <api-key>` - Login to the registry
109
+ - `aiagent logout` - Logout from the registry
110
+ - `aiagent whoami` - Show current logged-in user
111
+ - `aiagent register` - Create a new account
112
+
113
+ ### Agent Management
114
+ - `aiagent pull <name>` - Download an agent
115
+ - `aiagent push <path>` - Upload an agent
116
+ - `aiagent run <path>` - Execute an agent
117
+ - `aiagent validate <path>` - Verify agent specification
118
+ - `aiagent list` - Browse available agents
119
+ - `aiagent versions <name>` - Show all versions of an agent
120
+
121
+ ### Version Control
122
+ - `aiagent tag <name:version> <tag>` - Tag a version
123
+
124
+ ### Process Management
125
+ - `aiagent ps` - List running agents
126
+ - `aiagent stop <id>` - Stop a running agent
127
+ - `aiagent logs <id>` - View agent logs
128
+
129
+ ### API Keys
130
+ - `aiagent key create <name>` - Create a new API key
131
+ - `aiagent key list` - List your API keys
132
+ - `aiagent key revoke <id>` - Revoke an API key
133
+
134
+ ## Examples
135
+
136
+ ### Publishing an Agent
137
+
138
+ ```bash
139
+ # Validate your agent
140
+ aiagent validate ./my-agent
141
+
142
+ # Create agent in registry (first time)
143
+ aiagent push ./my-agent --create --description "My awesome agent"
144
+
145
+ # Tag as latest
146
+ aiagent tag my-agent:1.0.0 latest
147
+ ```
148
+
149
+ ### Running Agents in Background
150
+
151
+ ```bash
152
+ # Start agent in background
153
+ aiagent run -d ./my-agent
154
+
155
+ # Check running agents
156
+ aiagent ps
157
+
158
+ # Stop an agent
159
+ aiagent stop <agent-id>
160
+ ```
161
+
162
+ ## Requirements
163
+
164
+ - Python 3.9 or higher
165
+
166
+ ## License
167
+
168
+ MIT
169
+
170
+ ## Links
171
+
172
+ - Documentation: https://github.com/yourusername/aiagent-hub
173
+ - Issue Tracker: https://github.com/yourusername/aiagent-hub/issues
@@ -0,0 +1,125 @@
1
+ # AI Agent Hub CLI
2
+
3
+ Command-line interface for managing and running AI Agents from the AI Agent Hub registry.
4
+
5
+ ## Features
6
+
7
+ - 🚀 **Pull & Run**: Download and execute agents from the registry
8
+ - 📦 **Push**: Publish your agents to the registry
9
+ - 🏷️ **Version Management**: Tag and manage agent versions
10
+ - 🔑 **Authentication**: Secure API key-based authentication
11
+ - 🔄 **Background Execution**: Run agents as background processes
12
+ - ✅ **Validation**: Verify agent specifications before deployment
13
+
14
+ ## Installation
15
+
16
+ ```bash
17
+ pip install aiagent
18
+ ```
19
+
20
+ ## Quick Start
21
+
22
+ ### 1. Login to Registry
23
+
24
+ First, create an API key in your AI Agent Hub profile, then login:
25
+
26
+ ```bash
27
+ aiagent login YOUR_API_KEY
28
+ ```
29
+
30
+ ### 2. Pull an Agent
31
+
32
+ Download an agent from the registry:
33
+
34
+ ```bash
35
+ aiagent pull username/agent-name
36
+ aiagent pull username/agent-name:1.0.0
37
+ ```
38
+
39
+ ### 3. Run an Agent
40
+
41
+ Execute an agent locally:
42
+
43
+ ```bash
44
+ aiagent run ./agent-name
45
+ aiagent run -d ./agent-name # Run in background
46
+ ```
47
+
48
+ ### 4. Push Your Agent
49
+
50
+ Publish your agent to the registry:
51
+
52
+ ```bash
53
+ aiagent push ./my-agent
54
+ aiagent push ./my-agent -t latest
55
+ ```
56
+
57
+ ## Commands
58
+
59
+ ### Authentication
60
+ - `aiagent login <api-key>` - Login to the registry
61
+ - `aiagent logout` - Logout from the registry
62
+ - `aiagent whoami` - Show current logged-in user
63
+ - `aiagent register` - Create a new account
64
+
65
+ ### Agent Management
66
+ - `aiagent pull <name>` - Download an agent
67
+ - `aiagent push <path>` - Upload an agent
68
+ - `aiagent run <path>` - Execute an agent
69
+ - `aiagent validate <path>` - Verify agent specification
70
+ - `aiagent list` - Browse available agents
71
+ - `aiagent versions <name>` - Show all versions of an agent
72
+
73
+ ### Version Control
74
+ - `aiagent tag <name:version> <tag>` - Tag a version
75
+
76
+ ### Process Management
77
+ - `aiagent ps` - List running agents
78
+ - `aiagent stop <id>` - Stop a running agent
79
+ - `aiagent logs <id>` - View agent logs
80
+
81
+ ### API Keys
82
+ - `aiagent key create <name>` - Create a new API key
83
+ - `aiagent key list` - List your API keys
84
+ - `aiagent key revoke <id>` - Revoke an API key
85
+
86
+ ## Examples
87
+
88
+ ### Publishing an Agent
89
+
90
+ ```bash
91
+ # Validate your agent
92
+ aiagent validate ./my-agent
93
+
94
+ # Create agent in registry (first time)
95
+ aiagent push ./my-agent --create --description "My awesome agent"
96
+
97
+ # Tag as latest
98
+ aiagent tag my-agent:1.0.0 latest
99
+ ```
100
+
101
+ ### Running Agents in Background
102
+
103
+ ```bash
104
+ # Start agent in background
105
+ aiagent run -d ./my-agent
106
+
107
+ # Check running agents
108
+ aiagent ps
109
+
110
+ # Stop an agent
111
+ aiagent stop <agent-id>
112
+ ```
113
+
114
+ ## Requirements
115
+
116
+ - Python 3.9 or higher
117
+
118
+ ## License
119
+
120
+ MIT
121
+
122
+ ## Links
123
+
124
+ - Documentation: https://github.com/yourusername/aiagent-hub
125
+ - Issue Tracker: https://github.com/yourusername/aiagent-hub/issues
@@ -0,0 +1,5 @@
1
+ """
2
+ AI Agent Runner - CLI tool for managing and running AI Agents
3
+ """
4
+
5
+ __version__ = "0.1.0"