agent-starter 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.
- agent-starter-0.1.0/PKG-INFO +28 -0
- agent-starter-0.1.0/README.md +19 -0
- agent-starter-0.1.0/agent_starter/__init__.py +4 -0
- agent-starter-0.1.0/agent_starter/cli.py +75 -0
- agent-starter-0.1.0/agent_starter.egg-info/PKG-INFO +28 -0
- agent-starter-0.1.0/agent_starter.egg-info/SOURCES.txt +10 -0
- agent-starter-0.1.0/agent_starter.egg-info/dependency_links.txt +1 -0
- agent-starter-0.1.0/agent_starter.egg-info/entry_points.txt +2 -0
- agent-starter-0.1.0/agent_starter.egg-info/top_level.txt +1 -0
- agent-starter-0.1.0/pyproject.toml +18 -0
- agent-starter-0.1.0/setup.cfg +4 -0
- agent-starter-0.1.0/tests/test_agent_starter.py +19 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: agent-starter
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Scaffold AI agent projects with best-practice templates
|
|
5
|
+
Author: Revenue Worker
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# agent-starter
|
|
11
|
+
|
|
12
|
+
Scaffold AI agent projects with best-practice templates.
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pip install agent-starter
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
agent-starter
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## License
|
|
27
|
+
|
|
28
|
+
MIT
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"""agent-starter: Scaffold AI agent projects with best-practice templates."""
|
|
2
|
+
|
|
3
|
+
import argparse
|
|
4
|
+
import sys
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
TEMPLATES = {
|
|
8
|
+
"basic": "A minimal AI agent project with CLI entry point",
|
|
9
|
+
"fastapi": "AI agent with FastAPI HTTP server",
|
|
10
|
+
"cli-tool": "CLI agent with rich argument parsing",
|
|
11
|
+
"library": "Standalone library with tests",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def main(argv=None):
|
|
16
|
+
parser = argparse.ArgumentParser(
|
|
17
|
+
prog="agent-starter",
|
|
18
|
+
description="Scaffold AI agent projects with best-practice templates.",
|
|
19
|
+
)
|
|
20
|
+
parser.add_argument(
|
|
21
|
+
"template",
|
|
22
|
+
nargs="?",
|
|
23
|
+
choices=list(TEMPLATES),
|
|
24
|
+
help="Template to scaffold",
|
|
25
|
+
)
|
|
26
|
+
parser.add_argument(
|
|
27
|
+
"project_name",
|
|
28
|
+
nargs="?",
|
|
29
|
+
default="my-agent",
|
|
30
|
+
help="Output project name (default: my-agent)",
|
|
31
|
+
)
|
|
32
|
+
parser.add_argument(
|
|
33
|
+
"--list-templates",
|
|
34
|
+
action="store_true",
|
|
35
|
+
help="List available templates and exit",
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
args = parser.parse_args(argv)
|
|
39
|
+
|
|
40
|
+
if args.list_templates:
|
|
41
|
+
for name, desc in TEMPLATES.items():
|
|
42
|
+
print(f" {name:<15} {desc}")
|
|
43
|
+
return 0
|
|
44
|
+
|
|
45
|
+
if args.template is None:
|
|
46
|
+
template = "basic"
|
|
47
|
+
else:
|
|
48
|
+
template = args.template
|
|
49
|
+
|
|
50
|
+
project_name = args.project_name
|
|
51
|
+
out_dir = Path(project_name)
|
|
52
|
+
|
|
53
|
+
if out_dir.exists():
|
|
54
|
+
print(f"Error: '{project_name}' already exists.", file=sys.stderr)
|
|
55
|
+
return 1
|
|
56
|
+
|
|
57
|
+
# Scaffold a basic template
|
|
58
|
+
out_dir.mkdir()
|
|
59
|
+
(out_dir / "src" / "agent_starter" / "__init__.py").touch()
|
|
60
|
+
(out_dir / "src" / "agent_starter" / "cli.py").write_text(
|
|
61
|
+
"Scaffolded AI agent: " + project_name
|
|
62
|
+
)
|
|
63
|
+
(out_dir / "README.md").write_text(
|
|
64
|
+
f"# {project_name}\n\nA scaffolded AI agent project.\n"
|
|
65
|
+
)
|
|
66
|
+
(out_dir / "pyproject.toml").write_text(
|
|
67
|
+
f'[build-system]\nrequires = ["setuptools>=68.0"]\n\n[project]\nname = "{project_name}"\nversion = "0.1.0"\ndescription = "Scaffolded AI agent project."\nrequires-python = ">=3.10"\n'
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
print(f"Scaffolded '{project_name}' with template '{template}'.")
|
|
71
|
+
return 0
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
if __name__ == "__main__":
|
|
75
|
+
raise SystemExit(main())
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: agent-starter
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Scaffold AI agent projects with best-practice templates
|
|
5
|
+
Author: Revenue Worker
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# agent-starter
|
|
11
|
+
|
|
12
|
+
Scaffold AI agent projects with best-practice templates.
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pip install agent-starter
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
agent-starter
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## License
|
|
27
|
+
|
|
28
|
+
MIT
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
agent_starter/__init__.py
|
|
4
|
+
agent_starter/cli.py
|
|
5
|
+
agent_starter.egg-info/PKG-INFO
|
|
6
|
+
agent_starter.egg-info/SOURCES.txt
|
|
7
|
+
agent_starter.egg-info/dependency_links.txt
|
|
8
|
+
agent_starter.egg-info/entry_points.txt
|
|
9
|
+
agent_starter.egg-info/top_level.txt
|
|
10
|
+
tests/test_agent_starter.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
agent_starter
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "agent-starter"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Scaffold AI agent projects with best-practice templates"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = {text = "MIT"}
|
|
12
|
+
authors = [{name = "Revenue Worker"}]
|
|
13
|
+
|
|
14
|
+
[project.scripts]
|
|
15
|
+
agent-starter = "agent_starter.cli:main"
|
|
16
|
+
|
|
17
|
+
[tool.setuptools]
|
|
18
|
+
packages = ["agent_starter"]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Tests for agent-starter package."""
|
|
2
|
+
|
|
3
|
+
import subprocess
|
|
4
|
+
import sys
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def test_version():
|
|
8
|
+
from agent_starter import __version__
|
|
9
|
+
assert __version__ == "0.1.0"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def test_cli_help():
|
|
13
|
+
result = subprocess.run(
|
|
14
|
+
[sys.executable, "-m", "agent_starter.cli", "--help"],
|
|
15
|
+
capture_output=True,
|
|
16
|
+
text=True,
|
|
17
|
+
)
|
|
18
|
+
assert result.returncode == 0
|
|
19
|
+
assert "Scaffold AI agent projects" in result.stdout
|