ChatLogin 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.
@@ -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,104 @@
1
+ Metadata-Version: 2.4
2
+ Name: ChatLogin
3
+ Version: 0.0.1
4
+ Summary: ChatLogin: ChatArch Python package scaffold; login features are not implemented yet.
5
+ Author-email: ChatArch <1073853456@qq.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/ChatArch/ChatLogin
8
+ Project-URL: Repository, https://github.com/ChatArch/ChatLogin
9
+ Project-URL: Documentation, https://arch.gh.wzhecnu.cn/ChatLogin/
10
+ Keywords: chatlogin,chatarch,cli
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Operating System :: OS Independent
13
+ Requires-Python: >=3.10
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: click>=8.0
17
+ Requires-Dist: chatstyle<0.3.0,>=0.2.0
18
+ Requires-Dist: chatenv<0.3.0,>=0.2.11
19
+ Provides-Extra: dev
20
+ Requires-Dist: build; extra == "dev"
21
+ Requires-Dist: pytest; extra == "dev"
22
+ Requires-Dist: twine; extra == "dev"
23
+ Provides-Extra: docs
24
+ Requires-Dist: mkdocs<2.0,>=1.6; extra == "docs"
25
+ Requires-Dist: mkdocs-material<9.7,>=9.5; extra == "docs"
26
+ Requires-Dist: mkdocs-static-i18n<2.0,>=1.2; extra == "docs"
27
+ Requires-Dist: mike<3.0,>=2.0; extra == "docs"
28
+ Dynamic: license-file
29
+
30
+ <div align="center">
31
+ <a href="https://pypi.python.org/pypi/ChatLogin">
32
+ <img src="https://img.shields.io/pypi/v/ChatLogin.svg" alt="PyPI version" />
33
+ </a>
34
+ <a href="https://github.com/ChatArch/ChatLogin/actions/workflows/ci.yml">
35
+ <img src="https://github.com/ChatArch/ChatLogin/actions/workflows/ci.yml/badge.svg" alt="Tests" />
36
+ </a>
37
+ <a href="https://arch.gh.wzhecnu.cn/ChatLogin/">
38
+ <img src="https://img.shields.io/badge/docs-mkdocs-blue.svg" alt="Documentation" />
39
+ </a>
40
+ </div>
41
+
42
+ <div align="center">
43
+
44
+ [英文版](README.en.md) | [简体中文](README.md)
45
+ </div>
46
+
47
+ # ChatLogin
48
+
49
+ ChatLogin 是面向网站集成的 ChatArch Python 包。当前版本只提供标准包结构、命令行和配置扩展入口,尚未实现登录、用户管理或鉴权功能。
50
+
51
+
52
+ 文档入口:<https://arch.gh.wzhecnu.cn/ChatLogin/>
53
+
54
+ 按场景选择文档:
55
+
56
+ | 场景 | 文档 |
57
+ | --- | --- |
58
+ | 第一次安装、运行命令行、确认包可用 | [CLI 树](docs/cli-tree.md) |
59
+ | 校对当前包有哪些一等能力和边界 | [能力地图](docs/capability-map.md) |
60
+ | 从 Python 代码调用包能力 | [接口树](docs/interface-tree.md) |
61
+
62
+ ## 快速开始
63
+
64
+ 安装已发布的初始模板:
65
+
66
+ ```bash
67
+ pip install ChatLogin
68
+ chatlogin --version
69
+ chatlogin --tree
70
+ ```
71
+
72
+ 开发安装与测试:
73
+
74
+ ```bash
75
+ pip install -e ".[dev]"
76
+ chatlogin --help
77
+ chatlogin --version
78
+ chatlogin --tree
79
+ chatlogin --tree-brief
80
+ python -m pytest -q
81
+ python -m build
82
+ ```
83
+
84
+ ## 命令行规范
85
+
86
+ 这个模板默认依赖 `chatstyle>=0.2.0,<0.3.0` 和 `chatenv>=0.2.11,<0.3.0`,新增命令应优先使用:
87
+
88
+ - `add_tree_option()` 提供共享的 `--tree` / `--tree-brief`,`render_click_tree()` 从已注册 Click 元数据生成命令树。
89
+ - `CommandSchema` / `CommandField` 描述输入。
90
+ - `add_interactive_option()` 提供统一 `-i/-I`。
91
+ - `resolve_command_inputs()` 统一缺参补问、默认值、TTY 与校验。
92
+ - 默认生成 `config.py` 和 `chatenv.configs` 入口点,使包可被 ChatEnv 发现;只有明确不需要 ChatEnv 接入时才使用 `--without-chatenv-provider`。
93
+
94
+ ## 目录结构
95
+
96
+ - `src/`:包源码
97
+ - `tests/code-tests/`:代码测试和历史测试迁移
98
+ - `tests/cli-tests/`:真实 CLI 测试,doc-first
99
+ - `tests/mock-cli-tests/`:mock/fake CLI 测试,doc-first
100
+ - `docs/`:长期维护文档,由 mkdocs 构建
101
+
102
+ ## 开发说明
103
+
104
+ 扩展脚手架前,先阅读 `DEVELOP.md` 和 `AGENTS.md`。
@@ -0,0 +1,75 @@
1
+ <div align="center">
2
+ <a href="https://pypi.python.org/pypi/ChatLogin">
3
+ <img src="https://img.shields.io/pypi/v/ChatLogin.svg" alt="PyPI version" />
4
+ </a>
5
+ <a href="https://github.com/ChatArch/ChatLogin/actions/workflows/ci.yml">
6
+ <img src="https://github.com/ChatArch/ChatLogin/actions/workflows/ci.yml/badge.svg" alt="Tests" />
7
+ </a>
8
+ <a href="https://arch.gh.wzhecnu.cn/ChatLogin/">
9
+ <img src="https://img.shields.io/badge/docs-mkdocs-blue.svg" alt="Documentation" />
10
+ </a>
11
+ </div>
12
+
13
+ <div align="center">
14
+
15
+ [英文版](README.en.md) | [简体中文](README.md)
16
+ </div>
17
+
18
+ # ChatLogin
19
+
20
+ ChatLogin 是面向网站集成的 ChatArch Python 包。当前版本只提供标准包结构、命令行和配置扩展入口,尚未实现登录、用户管理或鉴权功能。
21
+
22
+
23
+ 文档入口:<https://arch.gh.wzhecnu.cn/ChatLogin/>
24
+
25
+ 按场景选择文档:
26
+
27
+ | 场景 | 文档 |
28
+ | --- | --- |
29
+ | 第一次安装、运行命令行、确认包可用 | [CLI 树](docs/cli-tree.md) |
30
+ | 校对当前包有哪些一等能力和边界 | [能力地图](docs/capability-map.md) |
31
+ | 从 Python 代码调用包能力 | [接口树](docs/interface-tree.md) |
32
+
33
+ ## 快速开始
34
+
35
+ 安装已发布的初始模板:
36
+
37
+ ```bash
38
+ pip install ChatLogin
39
+ chatlogin --version
40
+ chatlogin --tree
41
+ ```
42
+
43
+ 开发安装与测试:
44
+
45
+ ```bash
46
+ pip install -e ".[dev]"
47
+ chatlogin --help
48
+ chatlogin --version
49
+ chatlogin --tree
50
+ chatlogin --tree-brief
51
+ python -m pytest -q
52
+ python -m build
53
+ ```
54
+
55
+ ## 命令行规范
56
+
57
+ 这个模板默认依赖 `chatstyle>=0.2.0,<0.3.0` 和 `chatenv>=0.2.11,<0.3.0`,新增命令应优先使用:
58
+
59
+ - `add_tree_option()` 提供共享的 `--tree` / `--tree-brief`,`render_click_tree()` 从已注册 Click 元数据生成命令树。
60
+ - `CommandSchema` / `CommandField` 描述输入。
61
+ - `add_interactive_option()` 提供统一 `-i/-I`。
62
+ - `resolve_command_inputs()` 统一缺参补问、默认值、TTY 与校验。
63
+ - 默认生成 `config.py` 和 `chatenv.configs` 入口点,使包可被 ChatEnv 发现;只有明确不需要 ChatEnv 接入时才使用 `--without-chatenv-provider`。
64
+
65
+ ## 目录结构
66
+
67
+ - `src/`:包源码
68
+ - `tests/code-tests/`:代码测试和历史测试迁移
69
+ - `tests/cli-tests/`:真实 CLI 测试,doc-first
70
+ - `tests/mock-cli-tests/`:mock/fake CLI 测试,doc-first
71
+ - `docs/`:长期维护文档,由 mkdocs 构建
72
+
73
+ ## 开发说明
74
+
75
+ 扩展脚手架前,先阅读 `DEVELOP.md` 和 `AGENTS.md`。
@@ -0,0 +1,42 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "ChatLogin"
7
+ dynamic = ["version"]
8
+ description = "ChatLogin: ChatArch Python package scaffold; login features are not implemented yet."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = "MIT"
12
+ dependencies = ["click>=8.0", "chatstyle>=0.2.0,<0.3.0", "chatenv>=0.2.11,<0.3.0"]
13
+ authors = [{name = "ChatArch", email = "1073853456@qq.com"}]
14
+ keywords = ["chatlogin", "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/ChatLogin"
22
+ Repository = "https://github.com/ChatArch/ChatLogin"
23
+ Documentation = "https://arch.gh.wzhecnu.cn/ChatLogin/"
24
+
25
+ [project.scripts]
26
+ chatlogin = "chatlogin.cli:main"
27
+
28
+ [project.entry-points."chatenv.configs"]
29
+ chatlogin = "chatlogin.config"
30
+
31
+ [project.optional-dependencies]
32
+ dev = ["build", "pytest", "twine"]
33
+ docs = ["mkdocs>=1.6,<2.0", "mkdocs-material>=9.5,<9.7", "mkdocs-static-i18n>=1.2,<2.0", "mike>=2.0,<3.0"]
34
+
35
+ [tool.setuptools.dynamic]
36
+ version = {attr = "chatlogin.__version__"}
37
+
38
+ [tool.setuptools.packages.find]
39
+ where = ["src"]
40
+
41
+ [tool.setuptools]
42
+ include-package-data = true
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,104 @@
1
+ Metadata-Version: 2.4
2
+ Name: ChatLogin
3
+ Version: 0.0.1
4
+ Summary: ChatLogin: ChatArch Python package scaffold; login features are not implemented yet.
5
+ Author-email: ChatArch <1073853456@qq.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/ChatArch/ChatLogin
8
+ Project-URL: Repository, https://github.com/ChatArch/ChatLogin
9
+ Project-URL: Documentation, https://arch.gh.wzhecnu.cn/ChatLogin/
10
+ Keywords: chatlogin,chatarch,cli
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Operating System :: OS Independent
13
+ Requires-Python: >=3.10
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: click>=8.0
17
+ Requires-Dist: chatstyle<0.3.0,>=0.2.0
18
+ Requires-Dist: chatenv<0.3.0,>=0.2.11
19
+ Provides-Extra: dev
20
+ Requires-Dist: build; extra == "dev"
21
+ Requires-Dist: pytest; extra == "dev"
22
+ Requires-Dist: twine; extra == "dev"
23
+ Provides-Extra: docs
24
+ Requires-Dist: mkdocs<2.0,>=1.6; extra == "docs"
25
+ Requires-Dist: mkdocs-material<9.7,>=9.5; extra == "docs"
26
+ Requires-Dist: mkdocs-static-i18n<2.0,>=1.2; extra == "docs"
27
+ Requires-Dist: mike<3.0,>=2.0; extra == "docs"
28
+ Dynamic: license-file
29
+
30
+ <div align="center">
31
+ <a href="https://pypi.python.org/pypi/ChatLogin">
32
+ <img src="https://img.shields.io/pypi/v/ChatLogin.svg" alt="PyPI version" />
33
+ </a>
34
+ <a href="https://github.com/ChatArch/ChatLogin/actions/workflows/ci.yml">
35
+ <img src="https://github.com/ChatArch/ChatLogin/actions/workflows/ci.yml/badge.svg" alt="Tests" />
36
+ </a>
37
+ <a href="https://arch.gh.wzhecnu.cn/ChatLogin/">
38
+ <img src="https://img.shields.io/badge/docs-mkdocs-blue.svg" alt="Documentation" />
39
+ </a>
40
+ </div>
41
+
42
+ <div align="center">
43
+
44
+ [英文版](README.en.md) | [简体中文](README.md)
45
+ </div>
46
+
47
+ # ChatLogin
48
+
49
+ ChatLogin 是面向网站集成的 ChatArch Python 包。当前版本只提供标准包结构、命令行和配置扩展入口,尚未实现登录、用户管理或鉴权功能。
50
+
51
+
52
+ 文档入口:<https://arch.gh.wzhecnu.cn/ChatLogin/>
53
+
54
+ 按场景选择文档:
55
+
56
+ | 场景 | 文档 |
57
+ | --- | --- |
58
+ | 第一次安装、运行命令行、确认包可用 | [CLI 树](docs/cli-tree.md) |
59
+ | 校对当前包有哪些一等能力和边界 | [能力地图](docs/capability-map.md) |
60
+ | 从 Python 代码调用包能力 | [接口树](docs/interface-tree.md) |
61
+
62
+ ## 快速开始
63
+
64
+ 安装已发布的初始模板:
65
+
66
+ ```bash
67
+ pip install ChatLogin
68
+ chatlogin --version
69
+ chatlogin --tree
70
+ ```
71
+
72
+ 开发安装与测试:
73
+
74
+ ```bash
75
+ pip install -e ".[dev]"
76
+ chatlogin --help
77
+ chatlogin --version
78
+ chatlogin --tree
79
+ chatlogin --tree-brief
80
+ python -m pytest -q
81
+ python -m build
82
+ ```
83
+
84
+ ## 命令行规范
85
+
86
+ 这个模板默认依赖 `chatstyle>=0.2.0,<0.3.0` 和 `chatenv>=0.2.11,<0.3.0`,新增命令应优先使用:
87
+
88
+ - `add_tree_option()` 提供共享的 `--tree` / `--tree-brief`,`render_click_tree()` 从已注册 Click 元数据生成命令树。
89
+ - `CommandSchema` / `CommandField` 描述输入。
90
+ - `add_interactive_option()` 提供统一 `-i/-I`。
91
+ - `resolve_command_inputs()` 统一缺参补问、默认值、TTY 与校验。
92
+ - 默认生成 `config.py` 和 `chatenv.configs` 入口点,使包可被 ChatEnv 发现;只有明确不需要 ChatEnv 接入时才使用 `--without-chatenv-provider`。
93
+
94
+ ## 目录结构
95
+
96
+ - `src/`:包源码
97
+ - `tests/code-tests/`:代码测试和历史测试迁移
98
+ - `tests/cli-tests/`:真实 CLI 测试,doc-first
99
+ - `tests/mock-cli-tests/`:mock/fake CLI 测试,doc-first
100
+ - `docs/`:长期维护文档,由 mkdocs 构建
101
+
102
+ ## 开发说明
103
+
104
+ 扩展脚手架前,先阅读 `DEVELOP.md` 和 `AGENTS.md`。
@@ -0,0 +1,14 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/ChatLogin.egg-info/PKG-INFO
5
+ src/ChatLogin.egg-info/SOURCES.txt
6
+ src/ChatLogin.egg-info/dependency_links.txt
7
+ src/ChatLogin.egg-info/entry_points.txt
8
+ src/ChatLogin.egg-info/requires.txt
9
+ src/ChatLogin.egg-info/top_level.txt
10
+ src/chatlogin/__init__.py
11
+ src/chatlogin/cli.py
12
+ src/chatlogin/config.py
13
+ tests/test_cli.py
14
+ tests/test_version.py
@@ -0,0 +1,5 @@
1
+ [chatenv.configs]
2
+ chatlogin = chatlogin.config
3
+
4
+ [console_scripts]
5
+ chatlogin = chatlogin.cli:main
@@ -0,0 +1,14 @@
1
+ click>=8.0
2
+ chatstyle<0.3.0,>=0.2.0
3
+ chatenv<0.3.0,>=0.2.11
4
+
5
+ [dev]
6
+ build
7
+ pytest
8
+ twine
9
+
10
+ [docs]
11
+ mkdocs<2.0,>=1.6
12
+ mkdocs-material<9.7,>=9.5
13
+ mkdocs-static-i18n<2.0,>=1.2
14
+ mike<3.0,>=2.0
@@ -0,0 +1 @@
1
+ chatlogin
@@ -0,0 +1,5 @@
1
+ """ChatLogin package."""
2
+
3
+ __all__ = ["__version__"]
4
+
5
+ __version__ = "0.0.1"
@@ -0,0 +1,22 @@
1
+ """CLI entrypoint for chatlogin."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import click
6
+ from chatstyle import add_tree_option
7
+
8
+ from chatlogin import __version__
9
+
10
+
11
+ @click.group(name="chatlogin", invoke_without_command=True, no_args_is_help=True)
12
+ @click.version_option(__version__, prog_name="chatlogin")
13
+ @add_tree_option(renderer_options={"root_name": "chatlogin"})
14
+ def main() -> None:
15
+ """chatlogin command line interface."""
16
+ # Add package-specific commands here. Prefer ChatStyle helpers for
17
+ # interactive input when a command needs recoverable user input.
18
+ pass
19
+
20
+
21
+ if __name__ == "__main__":
22
+ main()
@@ -0,0 +1,19 @@
1
+ """ChatEnv extension point for ChatLogin; no login configuration yet."""
2
+
3
+ from chatenv import BaseEnvConfig
4
+
5
+
6
+ class ChatLoginConfig(BaseEnvConfig):
7
+ """Namespace reserved for future, explicitly defined login settings."""
8
+
9
+ _title = "ChatLogin Configuration"
10
+ _aliases = ["chatlogin"]
11
+ _storage_dir = "ChatLogin"
12
+
13
+ @classmethod
14
+ def test(cls) -> None:
15
+ """Validate schema registration without network or storage writes."""
16
+ print("ChatLogin schema loaded; login features are not implemented yet.")
17
+
18
+
19
+ __all__ = ["ChatLoginConfig"]
@@ -0,0 +1,39 @@
1
+ from click.testing import CliRunner
2
+
3
+ from chatlogin import __version__
4
+ from chatlogin.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"chatlogin, version {__version__}" in result.output
12
+
13
+
14
+ def test_help_lists_shared_tree_options():
15
+ result = CliRunner().invoke(main, ["--help"])
16
+
17
+ assert result.exit_code == 0
18
+ assert "--tree" in result.output
19
+ assert "--tree-brief" in result.output
20
+
21
+
22
+ def test_tree_option_prints_registered_cli_tree():
23
+ result = CliRunner().invoke(main, ["--tree"])
24
+
25
+ assert result.exit_code == 0, result.output
26
+ assert result.output.startswith("chatlogin\n")
27
+ assert "├── --help" in result.output
28
+ assert "├── --version" in result.output
29
+ assert "├── --tree" in result.output
30
+ assert "└── --tree-brief" in result.output
31
+
32
+
33
+ def test_tree_brief_option_prints_registered_cli_tree():
34
+ result = CliRunner().invoke(main, ["--tree-brief"])
35
+
36
+ assert result.exit_code == 0, result.output
37
+ assert result.output.startswith("chatlogin\n")
38
+ assert "├── --tree" in result.output
39
+ assert "└── --tree-brief" in result.output
@@ -0,0 +1,5 @@
1
+ from chatlogin import __version__
2
+
3
+
4
+ def test_version_present():
5
+ assert __version__ == "0.0.1"