Skip to main content

ChatTea: ChatArch Python package

Project description

ChatTea

ChatTea 是 ChatArch 的 Gitea 管理 CLI/API 包,第一版聚焦本地 Gitea 的安装、初始化、启动、token 配置和基础仓库操作。

快速开始

pip install -e ".[dev]"
chattea --help
python -m pytest -q

常用流程

安装并初始化 Gitea

chattea server install --version 1.26.4 --prefix ~/.local/share/chattea/gitea
chattea server init --work-path ~/gitea --http-port 3000
chattea server serve --work-path ~/gitea --config ~/gitea/custom/conf/app.ini

使用 user systemd 管理服务

chattea server start --work-path ~/gitea --config ~/gitea/custom/conf/app.ini
chattea server status
chattea server logs --lines 100
chattea server stop

配置 API token

chattea set-token --url http://127.0.0.1:3000 --token "$GITEA_TOKEN"
chattea server health

仓库操作

chattea repo list
chattea repo view gitea_admin/demo
chattea repo create --owner gitea_admin --name demo
chattea repo clone gitea_admin/demo
chattea repo migrate --clone-url https://github.com/ChatArch/ChatTea.git --owner gitea_admin --name ChatTea

CLI 结构

chattea
├── set-token
├── server
│   ├── install
│   ├── init
│   ├── serve
│   ├── start
│   ├── stop
│   ├── restart
│   ├── status
│   ├── logs
│   ├── version
│   └── health
└── repo
    ├── list
    ├── view
    ├── create
    ├── clone
    └── migrate

目录结构

  • src/:包源码
  • tests/code-tests/:代码测试和历史测试迁移
  • tests/cli-tests/:真实 CLI 测试,doc-first
  • tests/mock-cli-tests/:mock/fake CLI 测试,doc-first
  • docs/:长期维护文档,由 mkdocs 构建

开发说明

扩展脚手架前,先阅读 DEVELOP.mdAGENTS.md。接口树见 docs/interface-tree.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chattea-0.1.1.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

chattea-0.1.1-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file chattea-0.1.1.tar.gz.

File metadata

  • Download URL: chattea-0.1.1.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chattea-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c3f598207199e5b7188bf77b1c3f52686d102ddebf238a0cb73cd0d6d828843f
MD5 7c680e4097c0c683b0035bf3f51c1dfb
BLAKE2b-256 6e8cb23cbbe649a33db74727955ab33486d160ca47e6d0b93f804542dcc1a11c

See more details on using hashes here.

Provenance

The following attestation bundles were made for chattea-0.1.1.tar.gz:

Publisher: publish.yml on ChatArch/ChatTea

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

File details

Details for the file chattea-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: chattea-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chattea-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6cd3ef651aefe249acba813a3aa1b22d0cf6826df87d464030f95d6610926623
MD5 f9d0955bb6127bd0d9232694f4904663
BLAKE2b-256 ab61de684ef3ce32f00b855d7e6512cce81da98f2f143c4b87d18255ed72296c

See more details on using hashes here.

Provenance

The following attestation bundles were made for chattea-0.1.1-py3-none-any.whl:

Publisher: publish.yml on ChatArch/ChatTea

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

Supported by

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