ChatData
ChatArch 数据库与数据管理工具。当前实现聚焦用户级 MySQL runtime:安装 MySQL 二进制、初始化实例、管理用户级 service、执行 ping/query/import,并创建数据库。
快速开始
pip install ChatData
chatdata --version
chatdata --tree
chatdata --tree-brief
chatdata mysql --help
开发本仓库时:
pip install -e ".[dev,docs]"
python -m pytest -q
python -m build
mkdocs build --strict
CLI 入口
当前命令树由 ChatStyle 从真实 Click registry 渲染。chatdata --tree 包含参数签名,chatdata --tree-brief 保留相同命令面但省略签名;文档站也提供 CLI 树 页面。
chatdata
├── --help # Show this message and exit.
├── --version # Show the version and exit.
├── --tree # Print the registered CLI tree and exit.
├── --tree-brief # Print the registered CLI tree without parameter signatures and exit.
└── mysql # Manage user-level MySQL runtimes and instances.
├── client # Run MySQL client checks and SQL.
│ ├── import [--name NAME] [--version VERSION] [--home HOME] [--database DATABASE] [--file SQL-FILE] [--json-output] # Import a SQL file through the instance socket.
│ ├── ping [--name NAME] [--version VERSION] [--home HOME] [--json-output] # Run mysqladmin ping through the instance socket.
│ └── query [--name NAME] [--version VERSION] [--home HOME] [--database DATABASE] [--sql SQL] # Execute one SQL statement through the instance socket.
├── database # Manage databases on a MySQL instance.
│ └── create <DATABASE> [--name NAME] [--version VERSION] [--home HOME] # Create a utf8mb4 database if it does not exist.
├── doctor [--port PORT] [--bind-address BIND-ADDRESS] [--json-output] # Check host compatibility for the user-level MySQL runtime.
├── install [--version VERSION] [--home HOME] [--force] [--json-output] # Download, verify, and install a MySQL binary tarball under ChatData home.
├── instance # Manage MySQL instance directories and config.
│ ├── init [--name NAME] [--version VERSION] [--home HOME] [--port PORT] [--bind-address BIND-ADDRESS] [--initialize] [--force] [--json-output] # Create a user-level MySQL instance and initialize its data directory.
│ └── show [--name NAME] [--version VERSION] [--home HOME] [--json-output] # Show MySQL instance layout paths.
├── runtime # Inspect installed MySQL runtime paths.
│ └── path [--version VERSION] [--home HOME] [--json-output] # Show MySQL runtime and instance layout paths.
└── service # Manage user-level MySQL systemd services.
├── install [--name NAME] [--version VERSION] [--home HOME] [--json-output] # Install a systemd user service for a MySQL instance.
├── logs [--name NAME] [--lines LINES] # Show MySQL user service journal logs.
├── restart [--name NAME] # Restart a MySQL user service.
├── start [--name NAME] # Start a MySQL user service.
├── status [--name NAME] [--json-output] # Show MySQL user service active state.
└── stop [--name NAME] # Stop a MySQL user service.
文档
- 中文文档:https://arch.gh.wzhecnu.cn/ChatData/
- CLI 树:https://arch.gh.wzhecnu.cn/ChatData/cli-tree/
- English documentation: https://arch.gh.wzhecnu.cn/ChatData/en/
开发说明
扩展 CLI 前,先阅读 DEVELOP.md 和 AGENTS.md。新增命令时应同步测试、chatdata --tree / chatdata --tree-brief、文档和 changelog。
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chatdata-0.1.4.tar.gz.
File metadata
- Download URL: chatdata-0.1.4.tar.gz
- Upload date:
- Size: 31.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e8cc9e8e94d36dffad852355b6659b638104a239009ab03bc1e13079590fdb3
|
|
| MD5 |
fe02cde787cae11746cea396af379fa8
|
|
| BLAKE2b-256 |
c97c64916ab102c687265e3a1e704efc1d8c5569d9bd94f38388d462250bf6a3
|
Provenance
The following attestation bundles were made for chatdata-0.1.4.tar.gz:
Publisher:
publish.yml on ChatArch/ChatData
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chatdata-0.1.4.tar.gz -
Subject digest:
1e8cc9e8e94d36dffad852355b6659b638104a239009ab03bc1e13079590fdb3 - Sigstore transparency entry: 2550571682
- Sigstore integration time:
-
Permalink:
ChatArch/ChatData@685ecaf698bacfc1bb422925006c50deb6d13d59 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/ChatArch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@685ecaf698bacfc1bb422925006c50deb6d13d59 -
Trigger Event:
push
-
Statement type:
File details
Details for the file chatdata-0.1.4-py3-none-any.whl.
File metadata
- Download URL: chatdata-0.1.4-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47b8d39b264be7cc3c3ac6843b6656922406d79d0022775bf1f9fc0c99b0e2ee
|
|
| MD5 |
54d7afbae61afd5978d3cd38af2c8bd1
|
|
| BLAKE2b-256 |
6bf967cbe8894fcd1f6bd4592270ee0d82024de8c02cf36f5b21223e0f33a70d
|
Provenance
The following attestation bundles were made for chatdata-0.1.4-py3-none-any.whl:
Publisher:
publish.yml on ChatArch/ChatData
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chatdata-0.1.4-py3-none-any.whl -
Subject digest:
47b8d39b264be7cc3c3ac6843b6656922406d79d0022775bf1f9fc0c99b0e2ee - Sigstore transparency entry: 2550571729
- Sigstore integration time:
-
Permalink:
ChatArch/ChatData@685ecaf698bacfc1bb422925006c50deb6d13d59 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/ChatArch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@685ecaf698bacfc1bb422925006c50deb6d13d59 -
Trigger Event:
push
-
Statement type: