aphub 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.
- aphub-0.1.0/PKG-INFO +152 -0
- aphub-0.1.0/README.md +128 -0
- aphub-0.1.0/pyproject.toml +49 -0
- aphub-0.1.0/setup.cfg +4 -0
- aphub-0.1.0/src/aphub/__init__.py +11 -0
- aphub-0.1.0/src/aphub/cli.py +686 -0
- aphub-0.1.0/src/aphub/config.py +113 -0
- aphub-0.1.0/src/aphub/progress.py +33 -0
- aphub-0.1.0/src/aphub/py.typed +0 -0
- aphub-0.1.0/src/aphub.egg-info/PKG-INFO +152 -0
- aphub-0.1.0/src/aphub.egg-info/SOURCES.txt +15 -0
- aphub-0.1.0/src/aphub.egg-info/dependency_links.txt +1 -0
- aphub-0.1.0/src/aphub.egg-info/entry_points.txt +2 -0
- aphub-0.1.0/src/aphub.egg-info/requires.txt +16 -0
- aphub-0.1.0/src/aphub.egg-info/top_level.txt +1 -0
- aphub-0.1.0/tests/test_cli.py +99 -0
- aphub-0.1.0/tests/test_integration.py +22 -0
aphub-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aphub
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: AI Agent Hub CLI
|
|
5
|
+
Author-email: aipartnerup <tercel.yi@gmail.com>
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Requires-Python: >=3.12
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Requires-Dist: aphub-sdk>=0.1.0
|
|
10
|
+
Requires-Dist: typer>=0.9.0
|
|
11
|
+
Requires-Dist: rich>=13.7.0
|
|
12
|
+
Requires-Dist: pyyaml>=6.0.1
|
|
13
|
+
Requires-Dist: appdirs>=1.4.4
|
|
14
|
+
Requires-Dist: httpx>=0.25.0
|
|
15
|
+
Provides-Extra: dev
|
|
16
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
17
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
|
|
18
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
19
|
+
Requires-Dist: black>=23.0.0; extra == "dev"
|
|
20
|
+
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
21
|
+
Requires-Dist: twine>=4.0.0; extra == "dev"
|
|
22
|
+
Requires-Dist: pre-commit>=3.0.0; extra == "dev"
|
|
23
|
+
Requires-Dist: apdev[dev]>=0.1.6; extra == "dev"
|
|
24
|
+
|
|
25
|
+
# aphub
|
|
26
|
+
|
|
27
|
+
Command-line tool for aphub - The Docker Hub for AI Agents
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip install aphub
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Quick Start
|
|
36
|
+
|
|
37
|
+
### Login
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
aphub login
|
|
41
|
+
# or
|
|
42
|
+
aphub login --username myuser --password mypass
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Push Agent
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
aphub push ./agent.yaml --tag latest --files ./agent-files/
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Pull Agent
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
aphub pull customer-service-agent
|
|
55
|
+
aphub pull customer-service-agent --tag 1.0.0 --output ./agents/
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Search Agents
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
aphub search "customer service"
|
|
62
|
+
aphub search chatbot --framework aipartnerupflow --limit 50
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Get Agent Info
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
aphub info customer-service-agent
|
|
69
|
+
aphub info myorg/my-agent
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### List Tags
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
aphub tags customer-service-agent
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Get Manifest
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
aphub manifest customer-service-agent --tag 1.0.0
|
|
82
|
+
aphub manifest customer-service-agent --tag 1.0.0 --output manifest.yaml
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Commands
|
|
86
|
+
|
|
87
|
+
| Command | Description |
|
|
88
|
+
|---------|-------------|
|
|
89
|
+
| `aphub login` | Login to hub.aipartnerup.com |
|
|
90
|
+
| `aphub logout` | Logout and clear saved credentials |
|
|
91
|
+
| `aphub push <manifest>` | Push an Agent to the registry |
|
|
92
|
+
| `aphub pull <name>` | Pull an Agent from the registry |
|
|
93
|
+
| `aphub search <query>` | Search for Agents |
|
|
94
|
+
| `aphub info <name>` | Get detailed agent information |
|
|
95
|
+
| `aphub tags <name>` | List all tags for an agent |
|
|
96
|
+
| `aphub manifest <name>` | Get agent manifest |
|
|
97
|
+
| `aphub version` | Show version information |
|
|
98
|
+
|
|
99
|
+
## Features
|
|
100
|
+
|
|
101
|
+
### Progress Bars
|
|
102
|
+
Upload and download progress is automatically displayed for large files:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
aphub pull my-agent # Shows progress bar
|
|
106
|
+
aphub pull my-agent --no-progress # Disable progress bar
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Token Auto-Refresh
|
|
110
|
+
Tokens are automatically refreshed when expired. No manual intervention needed!
|
|
111
|
+
|
|
112
|
+
### Configuration
|
|
113
|
+
|
|
114
|
+
#### Environment Variables
|
|
115
|
+
|
|
116
|
+
| Variable | Description | Default |
|
|
117
|
+
|----------|-------------|---------|
|
|
118
|
+
| `APHUB_URL` | Hub API URL | `https://hub.aipartnerup.com` |
|
|
119
|
+
| `APHUB_API_KEY` | API key for authentication | - |
|
|
120
|
+
|
|
121
|
+
#### Config File
|
|
122
|
+
Configuration is stored in:
|
|
123
|
+
- macOS/Linux: `~/.config/aphub/config.json`
|
|
124
|
+
- Windows: `%APPDATA%/aphub/config.json`
|
|
125
|
+
|
|
126
|
+
## Examples
|
|
127
|
+
|
|
128
|
+
### Complete Workflow
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
# 1. Login
|
|
132
|
+
aphub login
|
|
133
|
+
|
|
134
|
+
# 2. Push your agent
|
|
135
|
+
aphub push ./my-agent/agent.yaml --tag 1.0.0 --files ./my-agent/
|
|
136
|
+
|
|
137
|
+
# 3. Search for agents
|
|
138
|
+
aphub search "customer service" --framework aipartnerupflow
|
|
139
|
+
|
|
140
|
+
# 4. Pull an agent
|
|
141
|
+
aphub pull customer-service-agent --tag latest --output ./agents/
|
|
142
|
+
|
|
143
|
+
# 5. Get agent details
|
|
144
|
+
aphub info customer-service-agent
|
|
145
|
+
|
|
146
|
+
# 6. List all versions
|
|
147
|
+
aphub tags customer-service-agent
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## License
|
|
151
|
+
|
|
152
|
+
Apache-2.0
|
aphub-0.1.0/README.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# aphub
|
|
2
|
+
|
|
3
|
+
Command-line tool for aphub - The Docker Hub for AI Agents
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install aphub
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
### Login
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
aphub login
|
|
17
|
+
# or
|
|
18
|
+
aphub login --username myuser --password mypass
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Push Agent
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
aphub push ./agent.yaml --tag latest --files ./agent-files/
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Pull Agent
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
aphub pull customer-service-agent
|
|
31
|
+
aphub pull customer-service-agent --tag 1.0.0 --output ./agents/
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Search Agents
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
aphub search "customer service"
|
|
38
|
+
aphub search chatbot --framework aipartnerupflow --limit 50
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Get Agent Info
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
aphub info customer-service-agent
|
|
45
|
+
aphub info myorg/my-agent
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### List Tags
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
aphub tags customer-service-agent
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Get Manifest
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
aphub manifest customer-service-agent --tag 1.0.0
|
|
58
|
+
aphub manifest customer-service-agent --tag 1.0.0 --output manifest.yaml
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Commands
|
|
62
|
+
|
|
63
|
+
| Command | Description |
|
|
64
|
+
|---------|-------------|
|
|
65
|
+
| `aphub login` | Login to hub.aipartnerup.com |
|
|
66
|
+
| `aphub logout` | Logout and clear saved credentials |
|
|
67
|
+
| `aphub push <manifest>` | Push an Agent to the registry |
|
|
68
|
+
| `aphub pull <name>` | Pull an Agent from the registry |
|
|
69
|
+
| `aphub search <query>` | Search for Agents |
|
|
70
|
+
| `aphub info <name>` | Get detailed agent information |
|
|
71
|
+
| `aphub tags <name>` | List all tags for an agent |
|
|
72
|
+
| `aphub manifest <name>` | Get agent manifest |
|
|
73
|
+
| `aphub version` | Show version information |
|
|
74
|
+
|
|
75
|
+
## Features
|
|
76
|
+
|
|
77
|
+
### Progress Bars
|
|
78
|
+
Upload and download progress is automatically displayed for large files:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
aphub pull my-agent # Shows progress bar
|
|
82
|
+
aphub pull my-agent --no-progress # Disable progress bar
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Token Auto-Refresh
|
|
86
|
+
Tokens are automatically refreshed when expired. No manual intervention needed!
|
|
87
|
+
|
|
88
|
+
### Configuration
|
|
89
|
+
|
|
90
|
+
#### Environment Variables
|
|
91
|
+
|
|
92
|
+
| Variable | Description | Default |
|
|
93
|
+
|----------|-------------|---------|
|
|
94
|
+
| `APHUB_URL` | Hub API URL | `https://hub.aipartnerup.com` |
|
|
95
|
+
| `APHUB_API_KEY` | API key for authentication | - |
|
|
96
|
+
|
|
97
|
+
#### Config File
|
|
98
|
+
Configuration is stored in:
|
|
99
|
+
- macOS/Linux: `~/.config/aphub/config.json`
|
|
100
|
+
- Windows: `%APPDATA%/aphub/config.json`
|
|
101
|
+
|
|
102
|
+
## Examples
|
|
103
|
+
|
|
104
|
+
### Complete Workflow
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
# 1. Login
|
|
108
|
+
aphub login
|
|
109
|
+
|
|
110
|
+
# 2. Push your agent
|
|
111
|
+
aphub push ./my-agent/agent.yaml --tag 1.0.0 --files ./my-agent/
|
|
112
|
+
|
|
113
|
+
# 3. Search for agents
|
|
114
|
+
aphub search "customer service" --framework aipartnerupflow
|
|
115
|
+
|
|
116
|
+
# 4. Pull an agent
|
|
117
|
+
aphub pull customer-service-agent --tag latest --output ./agents/
|
|
118
|
+
|
|
119
|
+
# 5. Get agent details
|
|
120
|
+
aphub info customer-service-agent
|
|
121
|
+
|
|
122
|
+
# 6. List all versions
|
|
123
|
+
aphub tags customer-service-agent
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## License
|
|
127
|
+
|
|
128
|
+
Apache-2.0
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "aphub"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "AI Agent Hub CLI"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.12"
|
|
11
|
+
authors = [
|
|
12
|
+
{name = "aipartnerup", email = "tercel.yi@gmail.com"}
|
|
13
|
+
]
|
|
14
|
+
license = {text = "Apache-2.0"}
|
|
15
|
+
|
|
16
|
+
dependencies = [
|
|
17
|
+
"aphub-sdk>=0.1.0",
|
|
18
|
+
"typer>=0.9.0",
|
|
19
|
+
"rich>=13.7.0",
|
|
20
|
+
"pyyaml>=6.0.1",
|
|
21
|
+
"appdirs>=1.4.4",
|
|
22
|
+
"httpx>=0.25.0",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
[project.optional-dependencies]
|
|
26
|
+
# Development dependencies
|
|
27
|
+
dev = [
|
|
28
|
+
"pytest>=7.0.0",
|
|
29
|
+
"pytest-asyncio>=0.21.0",
|
|
30
|
+
"pytest-cov>=4.0.0",
|
|
31
|
+
"black>=23.0.0",
|
|
32
|
+
"ruff>=0.1.0",
|
|
33
|
+
"twine>=4.0.0",
|
|
34
|
+
"pre-commit>=3.0.0",
|
|
35
|
+
"apdev[dev]>=0.1.6",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[project.scripts]
|
|
39
|
+
aphub = "aphub.cli:app"
|
|
40
|
+
|
|
41
|
+
[tool.setuptools.packages.find]
|
|
42
|
+
where = ["src"]
|
|
43
|
+
|
|
44
|
+
[tool.setuptools.package-data]
|
|
45
|
+
aphub = ["py.typed"]
|
|
46
|
+
|
|
47
|
+
[tool.apdev]
|
|
48
|
+
base_package = "aphub"
|
|
49
|
+
src_dir = "src"
|
aphub-0.1.0/setup.cfg
ADDED