ChatLean 0.0.1__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.
chatlean-0.0.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ChatArch
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,67 @@
1
+ Metadata-Version: 2.4
2
+ Name: ChatLean
3
+ Version: 0.0.1
4
+ Summary: ChatLean: lightweight ChatArch package scaffold.
5
+ Author-email: ChatArch <1073853456@qq.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/ChatArch/ChatLean
8
+ Project-URL: Repository, https://github.com/ChatArch/ChatLean
9
+ Keywords: chatlean,chatarch,cli
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: click>=8.0
16
+ Requires-Dist: chatstyle<0.2.0,>=0.1.0
17
+ Requires-Dist: chatenv<0.3.0,>=0.2.0
18
+ Provides-Extra: dev
19
+ Requires-Dist: build; extra == "dev"
20
+ Requires-Dist: pytest; extra == "dev"
21
+ Requires-Dist: twine; extra == "dev"
22
+ Dynamic: license-file
23
+
24
+ <div align="center">
25
+ <a href="https://pypi.python.org/pypi/ChatLean">
26
+ <img src="https://img.shields.io/pypi/v/ChatLean.svg" alt="PyPI version" />
27
+ </a>
28
+ </div>
29
+
30
+ <div align="center">
31
+
32
+ [English](README.en.md) | [简体中文](README.md)
33
+ </div>
34
+
35
+ # ChatLean
36
+
37
+ ChatLean: lightweight ChatArch package scaffold.
38
+
39
+ ## 快速开始
40
+
41
+ ```bash
42
+ pip install -e ".[dev]"
43
+ chatlean --help
44
+ chatlean --version
45
+ python -m pytest -q
46
+ python -m build
47
+ ```
48
+
49
+ ## CLI 规范
50
+
51
+ 这个模板默认依赖 `chatstyle>=0.1.0,<0.2.0` 和 `chatenv>=0.2.0,<0.3.0`,新的命令应优先使用:
52
+
53
+ - `CommandSchema` / `CommandField` 描述输入。
54
+ - `add_interactive_option()` 提供统一 `-i/-I`。
55
+ - `resolve_command_inputs()` 统一缺参补问、默认值、TTY 与校验。
56
+ - 默认生成 `config.py` 和 `chatenv.configs` entry point,使包可被 ChatEnv 发现;只有明确不需要 ChatEnv 接入时才使用 `--without-chatenv-provider`。
57
+
58
+ ## 目录结构
59
+
60
+ - `src/`:包源码
61
+ - `tests/code-tests/`:代码测试和历史测试迁移
62
+ - `tests/cli-tests/`:真实 CLI 测试,doc-first
63
+ - `tests/mock-cli-tests/`:mock/fake CLI 测试,doc-first
64
+
65
+ ## 开发说明
66
+
67
+ 扩展脚手架前,先阅读 `DEVELOP.md` 和 `AGENTS.md`。
@@ -0,0 +1,44 @@
1
+ <div align="center">
2
+ <a href="https://pypi.python.org/pypi/ChatLean">
3
+ <img src="https://img.shields.io/pypi/v/ChatLean.svg" alt="PyPI version" />
4
+ </a>
5
+ </div>
6
+
7
+ <div align="center">
8
+
9
+ [English](README.en.md) | [简体中文](README.md)
10
+ </div>
11
+
12
+ # ChatLean
13
+
14
+ ChatLean: lightweight ChatArch package scaffold.
15
+
16
+ ## 快速开始
17
+
18
+ ```bash
19
+ pip install -e ".[dev]"
20
+ chatlean --help
21
+ chatlean --version
22
+ python -m pytest -q
23
+ python -m build
24
+ ```
25
+
26
+ ## CLI 规范
27
+
28
+ 这个模板默认依赖 `chatstyle>=0.1.0,<0.2.0` 和 `chatenv>=0.2.0,<0.3.0`,新的命令应优先使用:
29
+
30
+ - `CommandSchema` / `CommandField` 描述输入。
31
+ - `add_interactive_option()` 提供统一 `-i/-I`。
32
+ - `resolve_command_inputs()` 统一缺参补问、默认值、TTY 与校验。
33
+ - 默认生成 `config.py` 和 `chatenv.configs` entry point,使包可被 ChatEnv 发现;只有明确不需要 ChatEnv 接入时才使用 `--without-chatenv-provider`。
34
+
35
+ ## 目录结构
36
+
37
+ - `src/`:包源码
38
+ - `tests/code-tests/`:代码测试和历史测试迁移
39
+ - `tests/cli-tests/`:真实 CLI 测试,doc-first
40
+ - `tests/mock-cli-tests/`:mock/fake CLI 测试,doc-first
41
+
42
+ ## 开发说明
43
+
44
+ 扩展脚手架前,先阅读 `DEVELOP.md` 和 `AGENTS.md`。
@@ -0,0 +1,37 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "ChatLean"
7
+ dynamic = ["version"]
8
+ description = "ChatLean: lightweight ChatArch package scaffold."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = "MIT"
12
+ dependencies = ["click>=8.0", "chatstyle>=0.1.0,<0.2.0", "chatenv>=0.2.0,<0.3.0"]
13
+ authors = [{name = "ChatArch", email = "1073853456@qq.com"}]
14
+ keywords = ["chatlean", "chatarch", "cli"]
15
+ classifiers = [
16
+ "Programming Language :: Python :: 3",
17
+ "Operating System :: OS Independent",
18
+ ]
19
+
20
+ [project.urls]
21
+ Homepage = "https://github.com/ChatArch/ChatLean"
22
+ Repository = "https://github.com/ChatArch/ChatLean"
23
+
24
+ [project.scripts]
25
+ chatlean = "chatlean.cli:main"
26
+
27
+ [project.optional-dependencies]
28
+ dev = ["build", "pytest", "twine"]
29
+
30
+ [tool.setuptools.dynamic]
31
+ version = {attr = "chatlean.__version__"}
32
+
33
+ [tool.setuptools.packages.find]
34
+ where = ["src"]
35
+
36
+ [tool.setuptools]
37
+ include-package-data = true
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,67 @@
1
+ Metadata-Version: 2.4
2
+ Name: ChatLean
3
+ Version: 0.0.1
4
+ Summary: ChatLean: lightweight ChatArch package scaffold.
5
+ Author-email: ChatArch <1073853456@qq.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/ChatArch/ChatLean
8
+ Project-URL: Repository, https://github.com/ChatArch/ChatLean
9
+ Keywords: chatlean,chatarch,cli
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: click>=8.0
16
+ Requires-Dist: chatstyle<0.2.0,>=0.1.0
17
+ Requires-Dist: chatenv<0.3.0,>=0.2.0
18
+ Provides-Extra: dev
19
+ Requires-Dist: build; extra == "dev"
20
+ Requires-Dist: pytest; extra == "dev"
21
+ Requires-Dist: twine; extra == "dev"
22
+ Dynamic: license-file
23
+
24
+ <div align="center">
25
+ <a href="https://pypi.python.org/pypi/ChatLean">
26
+ <img src="https://img.shields.io/pypi/v/ChatLean.svg" alt="PyPI version" />
27
+ </a>
28
+ </div>
29
+
30
+ <div align="center">
31
+
32
+ [English](README.en.md) | [简体中文](README.md)
33
+ </div>
34
+
35
+ # ChatLean
36
+
37
+ ChatLean: lightweight ChatArch package scaffold.
38
+
39
+ ## 快速开始
40
+
41
+ ```bash
42
+ pip install -e ".[dev]"
43
+ chatlean --help
44
+ chatlean --version
45
+ python -m pytest -q
46
+ python -m build
47
+ ```
48
+
49
+ ## CLI 规范
50
+
51
+ 这个模板默认依赖 `chatstyle>=0.1.0,<0.2.0` 和 `chatenv>=0.2.0,<0.3.0`,新的命令应优先使用:
52
+
53
+ - `CommandSchema` / `CommandField` 描述输入。
54
+ - `add_interactive_option()` 提供统一 `-i/-I`。
55
+ - `resolve_command_inputs()` 统一缺参补问、默认值、TTY 与校验。
56
+ - 默认生成 `config.py` 和 `chatenv.configs` entry point,使包可被 ChatEnv 发现;只有明确不需要 ChatEnv 接入时才使用 `--without-chatenv-provider`。
57
+
58
+ ## 目录结构
59
+
60
+ - `src/`:包源码
61
+ - `tests/code-tests/`:代码测试和历史测试迁移
62
+ - `tests/cli-tests/`:真实 CLI 测试,doc-first
63
+ - `tests/mock-cli-tests/`:mock/fake CLI 测试,doc-first
64
+
65
+ ## 开发说明
66
+
67
+ 扩展脚手架前,先阅读 `DEVELOP.md` 和 `AGENTS.md`。
@@ -0,0 +1,13 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/ChatLean.egg-info/PKG-INFO
5
+ src/ChatLean.egg-info/SOURCES.txt
6
+ src/ChatLean.egg-info/dependency_links.txt
7
+ src/ChatLean.egg-info/entry_points.txt
8
+ src/ChatLean.egg-info/requires.txt
9
+ src/ChatLean.egg-info/top_level.txt
10
+ src/chatlean/__init__.py
11
+ src/chatlean/cli.py
12
+ tests/test_cli.py
13
+ tests/test_version.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ chatlean = chatlean.cli:main
@@ -0,0 +1,8 @@
1
+ click>=8.0
2
+ chatstyle<0.2.0,>=0.1.0
3
+ chatenv<0.3.0,>=0.2.0
4
+
5
+ [dev]
6
+ build
7
+ pytest
8
+ twine
@@ -0,0 +1 @@
1
+ chatlean
@@ -0,0 +1,5 @@
1
+ """ChatLean package."""
2
+
3
+ __all__ = ["__version__"]
4
+
5
+ __version__ = "0.0.1"
@@ -0,0 +1,17 @@
1
+ """CLI entrypoint for chatlean."""
2
+
3
+ import click
4
+
5
+ from chatlean import __version__
6
+
7
+
8
+ @click.group()
9
+ @click.version_option(__version__, prog_name="chatlean")
10
+ def main() -> None:
11
+ """chatlean command line interface."""
12
+ # Add package-specific commands here. Prefer ChatStyle helpers for
13
+ # interactive input when a command needs recoverable user input.
14
+
15
+
16
+ if __name__ == "__main__":
17
+ main()
@@ -0,0 +1,11 @@
1
+ from click.testing import CliRunner
2
+
3
+ from chatlean import __version__
4
+ from chatlean.cli import main
5
+
6
+
7
+ def test_version_option_reports_package_version():
8
+ result = CliRunner().invoke(main, ["--version"])
9
+
10
+ assert result.exit_code == 0
11
+ assert f"chatlean, version {__version__}" in result.output
@@ -0,0 +1,5 @@
1
+ from chatlean import __version__
2
+
3
+
4
+ def test_version_present():
5
+ assert __version__ == "0.0.1"