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-firsttests/mock-cli-tests/:mock/fake CLI 测试,doc-firstdocs/:长期维护文档,由 mkdocs 构建
开发说明
扩展脚手架前,先阅读 DEVELOP.md 和 AGENTS.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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3f598207199e5b7188bf77b1c3f52686d102ddebf238a0cb73cd0d6d828843f
|
|
| MD5 |
7c680e4097c0c683b0035bf3f51c1dfb
|
|
| BLAKE2b-256 |
6e8cb23cbbe649a33db74727955ab33486d160ca47e6d0b93f804542dcc1a11c
|
Provenance
The following attestation bundles were made for chattea-0.1.1.tar.gz:
Publisher:
publish.yml on ChatArch/ChatTea
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chattea-0.1.1.tar.gz -
Subject digest:
c3f598207199e5b7188bf77b1c3f52686d102ddebf238a0cb73cd0d6d828843f - Sigstore transparency entry: 2047221085
- Sigstore integration time:
-
Permalink:
ChatArch/ChatTea@47aadf63f630345f09e25dc6914890cf2b76a73c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ChatArch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@47aadf63f630345f09e25dc6914890cf2b76a73c -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cd3ef651aefe249acba813a3aa1b22d0cf6826df87d464030f95d6610926623
|
|
| MD5 |
f9d0955bb6127bd0d9232694f4904663
|
|
| BLAKE2b-256 |
ab61de684ef3ce32f00b855d7e6512cce81da98f2f143c4b87d18255ed72296c
|
Provenance
The following attestation bundles were made for chattea-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on ChatArch/ChatTea
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chattea-0.1.1-py3-none-any.whl -
Subject digest:
6cd3ef651aefe249acba813a3aa1b22d0cf6826df87d464030f95d6610926623 - Sigstore transparency entry: 2047221189
- Sigstore integration time:
-
Permalink:
ChatArch/ChatTea@47aadf63f630345f09e25dc6914890cf2b76a73c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ChatArch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@47aadf63f630345f09e25dc6914890cf2b76a73c -
Trigger Event:
push
-
Statement type: