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.mdAGENTS.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

chatdata-0.1.4.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chatdata-0.1.4-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

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

Hashes for chatdata-0.1.4.tar.gz
Algorithm Hash digest
SHA256 1e8cc9e8e94d36dffad852355b6659b638104a239009ab03bc1e13079590fdb3
MD5 fe02cde787cae11746cea396af379fa8
BLAKE2b-256 c97c64916ab102c687265e3a1e704efc1d8c5569d9bd94f38388d462250bf6a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatdata-0.1.4.tar.gz:

Publisher: publish.yml on ChatArch/ChatData

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for chatdata-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 47b8d39b264be7cc3c3ac6843b6656922406d79d0022775bf1f9fc0c99b0e2ee
MD5 54d7afbae61afd5978d3cd38af2c8bd1
BLAKE2b-256 6bf967cbe8894fcd1f6bd4592270ee0d82024de8c02cf36f5b21223e0f33a70d

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatdata-0.1.4-py3-none-any.whl:

Publisher: publish.yml on ChatArch/ChatData

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page