Skip to main content

ChatData

ChatArch 数据库与数据管理工具。当前实现聚焦用户级 MySQL runtime:安装 MySQL 二进制、初始化实例、管理用户级 service、执行 ping/query/import,并创建数据库。

快速开始

pip install ChatData
chatdata --version
chatdata --tree
chatdata mysql --help

开发本仓库时:

pip install -e ".[dev,docs]"
python -m pytest -q
python -m build
mkdocs build --strict

CLI 入口

当前命令树来自真实 Click registry,可通过 chatdata --tree 回读;文档站也提供 CLI 树 页面。

chatdata  # ChatArch database and data management toolkit.
├── --help  # Show this help message.
├── --version  # Show the installed package version.
├── --tree  # Print the registered command tree.
└── mysql  # Manage user-level MySQL runtimes and instances.
    ├── 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.
    ├── runtime  # Inspect installed MySQL runtime paths.
    │   └── path [--version <VERSION>] [--home <HOME>] [--json-output]  # Show MySQL runtime and instance layout paths.
    ├── instance  # Manage MySQL instance directories and config.
    │   ├── init [--name <NAME>] [--version <VERSION>] [--home <HOME>] [--port <PORT>] [--bind-address <BIND-ADDRESS>] [--initialize/--no-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.
    ├── 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.
    │   ├── start [--name <NAME>]  # Start a MySQL user service.
    │   ├── stop [--name <NAME>]  # Stop a MySQL user service.
    │   ├── restart [--name <NAME>]  # Restart a MySQL user service.
    │   ├── status [--name <NAME>] [--json-output]  # Show MySQL user service active state.
    │   └── logs [--name <NAME>] [--lines <LINES>]  # Show MySQL user service journal logs.
    ├── client  # Run MySQL client checks and SQL.
    │   ├── 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.
    │   └── import [--name <NAME>] [--version <VERSION>] [--home <HOME>] [--database <DATABASE>] [--file <SQL-FILE>] [--json-output]  # Import a SQL file 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.

文档

开发说明

扩展 CLI 前,先阅读 DEVELOP.mdAGENTS.md。新增命令时应同步测试、chatdata --tree、文档和 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.3.tar.gz (32.1 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.3-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file chatdata-0.1.3.tar.gz.

File metadata

  • Download URL: chatdata-0.1.3.tar.gz
  • Upload date:
  • Size: 32.1 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.3.tar.gz
Algorithm Hash digest
SHA256 1af742c89653af662a3dc8c81b4ce1a04e6f1818ffe59bf06c61b213bb6df82d
MD5 361cf7096a7d2e5af56d695e93bd9403
BLAKE2b-256 31146a4f5c2e68b4d3de403de8559757c8308a9bb0d1d256199e521d06ed26a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatdata-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: chatdata-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 72818794be3578347297484cebc1124fb0a9d059aee08e6f1f1ed07885307a50
MD5 24abafd5a9e3db8b56fd3363930813f1
BLAKE2b-256 695fe532e63b702bf48b861387a28089e6ffa59a23f1150a0995940d7687ce53

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatdata-0.1.3-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

0.1.4

2 files

This release

0.1.3 This release

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