Skip to main content

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:管理对象存储资源、上传目录、查看详情、生成公开或私有 URL
  • cdn / 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.mdAGENTS.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

chatqiniu-0.2.0.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

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

chatqiniu-0.2.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

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

Hashes for chatqiniu-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8a966fb02c8db4cd2d4d34adee6f8c92f68c8211f7ec6aa98ff78e66ff4b5c8d
MD5 264ecc8b9a595be8f67be8c61befce84
BLAKE2b-256 9801bc40db8d8f86edc2803b6e6629d6e20be5c3e4848a471e48d1f9f52306bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatqiniu-0.2.0.tar.gz:

Publisher: publish.yml on ChatArch/Chatqiniu

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

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

Hashes for chatqiniu-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e814405af52301ad6a7754e9d224232aeee7fa624adbe426a46cbc4496e1f103
MD5 8be7dd7bdc7c1fe1079a6ff5100e1bfa
BLAKE2b-256 4f76fb5d1467ed33179d15e163c731a0d9514550a167888547ea5a672d941a97

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatqiniu-0.2.0-py3-none-any.whl:

Publisher: publish.yml on ChatArch/Chatqiniu

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