ai-agent-task 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.
@@ -0,0 +1,32 @@
1
+ Metadata-Version: 2.4
2
+ Name: ai-agent-task
3
+ Version: 0.1.0
4
+ Summary: A Python CLI tool built with ConfigArgParse
5
+ License-Expression: MIT
6
+ Project-URL: Homepage, https://github.com/your-username/ai-agent-task
7
+ Project-URL: Source, https://github.com/your-username/ai-agent-task
8
+ Project-URL: BugTracker, https://github.com/your-username/ai-agent-task/issues
9
+ Requires-Python: >=3.9
10
+ Description-Content-Type: text/markdown
11
+
12
+ # ai-agent-task
13
+
14
+ A Python CLI tool built with ConfigArgParse.
15
+
16
+ ## Installation
17
+
18
+ ```bash
19
+ pip install ai-agent-task
20
+ ```
21
+
22
+ ## Usage
23
+
24
+ ```bash
25
+ # 查看版本
26
+ ai-agent-task -v
27
+ ai-agent-task --version
28
+
29
+ # 查看帮助
30
+ ai-agent-task -h
31
+ ai-agent-task --help
32
+ ```
@@ -0,0 +1,21 @@
1
+ # ai-agent-task
2
+
3
+ A Python CLI tool built with ConfigArgParse.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install ai-agent-task
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ # 查看版本
15
+ ai-agent-task -v
16
+ ai-agent-task --version
17
+
18
+ # 查看帮助
19
+ ai-agent-task -h
20
+ ai-agent-task --help
21
+ ```
@@ -0,0 +1,22 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "ai-agent-task"
7
+ version = "0.1.0"
8
+ description = "A Python CLI tool built with ConfigArgParse"
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ requires-python = ">=3.9"
12
+
13
+ [project.urls]
14
+ Homepage = "https://github.com/your-username/ai-agent-task"
15
+ Source = "https://github.com/your-username/ai-agent-task"
16
+ BugTracker = "https://github.com/your-username/ai-agent-task/issues"
17
+
18
+ [project.scripts]
19
+ ai-agent-task = "ai_agent_task.cli:main"
20
+
21
+ [tool.setuptools.packages.find]
22
+ where = ["src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,6 @@
1
+ from importlib.metadata import version, PackageNotFoundError
2
+
3
+ try:
4
+ __version__ = version("ai-agent-task")
5
+ except PackageNotFoundError:
6
+ __version__ = "0.0.0"
@@ -0,0 +1,3 @@
1
+ from .cli import main
2
+
3
+ main()
@@ -0,0 +1,38 @@
1
+ import sys
2
+ from importlib.metadata import version, PackageNotFoundError
3
+
4
+ import configargparse
5
+
6
+
7
+ def _get_version() -> str:
8
+ try:
9
+ return version("ai-agent-task")
10
+ except PackageNotFoundError:
11
+ return "0.0.0"
12
+
13
+
14
+ def build_parser() -> configargparse.ArgumentParser:
15
+ p = configargparse.ArgParser(
16
+ prog="ai-agent-task",
17
+ description="A Python CLI tool powered by ConfigArgParse.",
18
+ default_config_files=[],
19
+ )
20
+ p.add_argument(
21
+ "-v",
22
+ "--version",
23
+ action="version",
24
+ version=f"%(prog)s {_get_version()}",
25
+ help="显示版本号并退出",
26
+ )
27
+ return p
28
+
29
+
30
+ def main(argv: list[str] | None = None) -> int:
31
+ parser = build_parser()
32
+ options = parser.parse_args(argv)
33
+ # 后续子命令将在这里扩展
34
+ return 0
35
+
36
+
37
+ if __name__ == "__main__":
38
+ sys.exit(main())
@@ -0,0 +1,32 @@
1
+ Metadata-Version: 2.4
2
+ Name: ai-agent-task
3
+ Version: 0.1.0
4
+ Summary: A Python CLI tool built with ConfigArgParse
5
+ License-Expression: MIT
6
+ Project-URL: Homepage, https://github.com/your-username/ai-agent-task
7
+ Project-URL: Source, https://github.com/your-username/ai-agent-task
8
+ Project-URL: BugTracker, https://github.com/your-username/ai-agent-task/issues
9
+ Requires-Python: >=3.9
10
+ Description-Content-Type: text/markdown
11
+
12
+ # ai-agent-task
13
+
14
+ A Python CLI tool built with ConfigArgParse.
15
+
16
+ ## Installation
17
+
18
+ ```bash
19
+ pip install ai-agent-task
20
+ ```
21
+
22
+ ## Usage
23
+
24
+ ```bash
25
+ # 查看版本
26
+ ai-agent-task -v
27
+ ai-agent-task --version
28
+
29
+ # 查看帮助
30
+ ai-agent-task -h
31
+ ai-agent-task --help
32
+ ```
@@ -0,0 +1,10 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/ai_agent_task/__init__.py
4
+ src/ai_agent_task/__main__.py
5
+ src/ai_agent_task/cli.py
6
+ src/ai_agent_task.egg-info/PKG-INFO
7
+ src/ai_agent_task.egg-info/SOURCES.txt
8
+ src/ai_agent_task.egg-info/dependency_links.txt
9
+ src/ai_agent_task.egg-info/entry_points.txt
10
+ src/ai_agent_task.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ ai-agent-task = ai_agent_task.cli:main
@@ -0,0 +1 @@
1
+ ai_agent_task