Skip to main content

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.

文档

开发说明

扩展 CLI 前,先阅读 DEVELOP.md 和 AGENTS.md。新增命令时应同步测试、chatdata --tree / chatdata --tree-brief、文档和 changelog。

Metadata

Release files for ChatData 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ChatData 0.1.4
File Size Uploaded
chatdata-0.1.4.tar.gz 31.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ChatData 0.1.4
File Interpreter ABI Platform
chatdata-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 43.7 kB

Release files / chatdata-0.1.4.tar.gz

Download URL chatdata-0.1.4.tar.gz
Size 31.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1e8cc9e8e94d36dffad852355b6659b638104a239009ab03bc1e13079590fdb3
BLAKE2b-256 checksum
How to use checksums
c97c64916ab102c687265e3a1e704efc1d8c5569d9bd94f38388d462250bf6a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.

Transparency log

Release files / chatdata-0.1.4-py3-none-any.whl

Download URL chatdata-0.1.4-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47b8d39b264be7cc3c3ac6843b6656922406d79d0022775bf1f9fc0c99b0e2ee
BLAKE2b-256 checksum
How to use checksums
6bf967cbe8894fcd1f6bd4592270ee0d82024de8c02cf36f5b21223e0f33a70d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page