Chatqiniu: ChatArch Python package for Qiniu workflows
Project description
Chatqiniu
Chatqiniu 是一个面向七牛云的 ChatArch CLI,统一封装 Kodo 对象存储、CDN、SSL 证书和域名 HTTPS 常见操作。
快速开始
pip install -e ".[dev]"
chatqiniu auth whoami
chatqiniu bucket list
python -m pytest -q
功能概览
auth:通过 ChatEnv 管理七牛凭证,并做只读身份校验profile/config:管理多环境 profile、默认 bucket、URL 前缀和 CDN 域名bucket/object/url:管理对象存储资源、上传目录、查看详情、生成公开或私有 URLcdn/cert/domain:管理 CDN 刷新预取、证书列表/上传、域名 HTTPS 配置doctor/docs:本地诊断、官方文档链接和命令示例
常用命令
chatqiniu auth login
chatqiniu auth whoami
chatqiniu config set bucket my-bucket
chatqiniu config set url-prefix https://cdn.example.com
chatqiniu object list --prefix assets/
chatqiniu cert list
chatqiniu domain show cdn.example.com
配置规范
Chatqiniu 遵循当前 ChatArch 约束:
- 凭证和默认配置走
chatenv>=0.1.1 - 参数交互走
chatstyle>=0.1.0 - 敏感字段必须 masked,不能把真实密钥写进日志、报告或测试快照
默认 Qiniu typed env 路径是:
~/.chatarch/envs/Qiniu/.env
安全说明
- 删除、证书删除、域名 HTTPS 切换、CDN 刷新/预取等写操作优先支持 dry-run
- 真实执行危险操作时需要显式确认
- 本项目优先实现接口支持,但日常使用尽量先走只读检查和 dry-run
目录结构
src/:包源码tests/code-tests/:代码测试tests/cli-tests/:真实 CLI 测试tests/mock-cli-tests/:mock/fake CLI 测试docs/:长期维护文档,由 mkdocs 构建
开发说明
扩展脚手架前,先阅读 DEVELOP.md 和 AGENTS.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 chatqiniu-0.2.0.tar.gz.
File metadata
- Download URL: chatqiniu-0.2.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a966fb02c8db4cd2d4d34adee6f8c92f68c8211f7ec6aa98ff78e66ff4b5c8d
|
|
| MD5 |
264ecc8b9a595be8f67be8c61befce84
|
|
| BLAKE2b-256 |
9801bc40db8d8f86edc2803b6e6629d6e20be5c3e4848a471e48d1f9f52306bd
|
Provenance
The following attestation bundles were made for chatqiniu-0.2.0.tar.gz:
Publisher:
publish.yml on ChatArch/Chatqiniu
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chatqiniu-0.2.0.tar.gz -
Subject digest:
8a966fb02c8db4cd2d4d34adee6f8c92f68c8211f7ec6aa98ff78e66ff4b5c8d - Sigstore transparency entry: 1950598445
- Sigstore integration time:
-
Permalink:
ChatArch/Chatqiniu@60d8a9eada309ee678945db96a717402923a96ed -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/ChatArch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@60d8a9eada309ee678945db96a717402923a96ed -
Trigger Event:
push
-
Statement type:
File details
Details for the file chatqiniu-0.2.0-py3-none-any.whl.
File metadata
- Download URL: chatqiniu-0.2.0-py3-none-any.whl
- Upload date:
- Size: 16.8 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 |
e814405af52301ad6a7754e9d224232aeee7fa624adbe426a46cbc4496e1f103
|
|
| MD5 |
8be7dd7bdc7c1fe1079a6ff5100e1bfa
|
|
| BLAKE2b-256 |
4f76fb5d1467ed33179d15e163c731a0d9514550a167888547ea5a672d941a97
|
Provenance
The following attestation bundles were made for chatqiniu-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on ChatArch/Chatqiniu
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chatqiniu-0.2.0-py3-none-any.whl -
Subject digest:
e814405af52301ad6a7754e9d224232aeee7fa624adbe426a46cbc4496e1f103 - Sigstore transparency entry: 1950598557
- Sigstore integration time:
-
Permalink:
ChatArch/Chatqiniu@60d8a9eada309ee678945db96a717402923a96ed -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/ChatArch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@60d8a9eada309ee678945db96a717402923a96ed -
Trigger Event:
push
-
Statement type: