agent-starter 0.1.0__py3-none-any.whl

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.
@@ -0,0 +1,4 @@
1
+ """agent-starter: Scaffold AI agent projects with best-practice templates."""
2
+ from agent_starter.cli import main
3
+
4
+ __version__ = "0.1.0"
agent_starter/cli.py ADDED
@@ -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,7 @@
1
+ agent_starter/__init__.py,sha256=H_fLmjII28cJMoNKPEQhpxmvViKaHBGFNdPAAsxrZZo,136
2
+ agent_starter/cli.py,sha256=qORlfdIWpPBAb0S9GmZO2OSQ-4AL7tM0xDJ2xC4J7F0,2168
3
+ agent_starter-0.1.0.dist-info/METADATA,sha256=xEuPqn7pU_VrSleWKeb1wGptuAzDw-k8jrMgTvgq424,407
4
+ agent_starter-0.1.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
5
+ agent_starter-0.1.0.dist-info/entry_points.txt,sha256=JDR5p-f9wfZtaQ9TdB7P2HpARIhuge2-pJ343Z77NN0,57
6
+ agent_starter-0.1.0.dist-info/top_level.txt,sha256=DlWM-vNoXbGqYVwCqasQtQRtU0w2Z56VT1aSNzTEAYY,14
7
+ agent_starter-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.42.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ agent-starter = agent_starter.cli:main
@@ -0,0 +1 @@
1
+ agent_starter