Skip to main content

Claude Code 状态栏功能模块

Project description

cc-status

CI License Python Code style: black

Claude Code 状态栏功能模块 - 为 Claude Code 提供高效的状态栏显示和管理功能。

✨ 功能特性

🚧 项目处于早期开发阶段

计划功能:

  • 🎯 状态管理:高效的状态获取和更新机制
  • 🎨 格式化输出:美观的状态栏显示格式
  • ⚙️ 配置管理:灵活的配置加载和管理
  • 🖥️ CLI 接口:完整的命令行工具支持

📦 安装

方法 1: 一键安装(推荐)

使用 uvx 快速安装并配置:

# 一键安装到 Claude Code
uvx cc-status install

# 重启 Claude Code 即可看到状态栏
claude

方法 2: 从 PyPI 安装(尚未发布)

# 安装包
pip install cc-status

# 安装到 Claude Code
cc-status install

# 重启 Claude Code
claude

方法 3: 从源码安装(开发版本)

# 克隆仓库
git clone https://github.com/michaelche/cc-status.git
cd cc-status

# 安装 uv(如未安装)
curl -LsSf https://astral.sh/uv/install.sh | sh

# 创建虚拟环境并安装依赖
uv venv
source .venv/bin/activate  # macOS/Linux
uv pip install -e ".[dev]"

# 安装到 Claude Code
python -m cc_status install

# 重启 Claude Code
claude

🚀 快速开始

一键安装方式

# 安装并自动配置
uvx cc-status install

# 自定义主题和刷新间隔
uvx cc-status install --theme modern --interval 5000

# 验证配置
uvx cc-status verify

# 卸载
uvx cc-status uninstall

命令行用法

# 运行 CLI
python -m cc_status

# 或使用安装的命令
cc-status

开发示例

import cc_status

# 查看版本信息
print(cc_status.__version__)

更多示例请查看 examples/ 目录。

🛠️ 开发指南

快速设置开发环境

# 1. 克隆并进入项目
git clone https://github.com/michaelche/cc-status.git
cd cc-status

# 2. 安装 uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# 3. 设置环境
uv venv
source .venv/bin/activate
uv pip install -e ".[dev]"

# 4. 验证设置
./scripts/verify_setup.sh

运行测试

# 运行所有测试
pytest

# 带覆盖率报告
pytest --cov=cc_status

代码质量检查

# 格式化代码
black src/ tests/

# 代码检查
ruff check src/ tests/

# 类型检查
mypy src/

详细的开发指南请参考 CLAUDE.md

📚 文档

🤝 贡献指南

欢迎贡献!请遵循以下步骤:

  1. Fork 本仓库
  2. 创建特性分支 (git checkout -b feature/amazing-feature)
  3. 提交更改 (git commit -m '新增: 添加某个很棒的功能')
    • 提交信息请使用中文
    • 遵循提交规范(见 CLAUDE.md
  4. 推送到分支 (git push origin feature/amazing-feature)
  5. 打开 Pull Request

开发规范

  • 使用中文编写所有文档和提交信息
  • 遵循 Python PEP 8 编码规范
  • 保持测试覆盖率 > 80%
  • 确保所有质量检查通过(black、ruff、mypy)
  • 为新功能添加对应的测试

📄 许可证

本项目采用 Apache License 2.0 许可证。

🙏 致谢

  • 感谢 Claude AI 提供强大的 AI 辅助开发能力
  • 感谢所有开源项目的贡献者

📮 联系方式


注意: 本项目处于活跃开发中,API 可能会有变动。建议关注 CHANGELOG.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

cc_status-0.0.2.tar.gz (319.2 kB view details)

Uploaded Source

Built Distribution

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

cc_status-0.0.2-py3-none-any.whl (58.7 kB view details)

Uploaded Python 3

File details

Details for the file cc_status-0.0.2.tar.gz.

File metadata

  • Download URL: cc_status-0.0.2.tar.gz
  • Upload date:
  • Size: 319.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for cc_status-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d5e57592ad6918815ef6e64c8006dc1b838c66c2a53f61bb9a8c71dab0538dc7
MD5 ab4235b549bcef8b389df907bec7d87a
BLAKE2b-256 7d7f080d913381f8483707c06af2b11be2e8fd9f77f35fbd7c2a77764175023a

See more details on using hashes here.

File details

Details for the file cc_status-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: cc_status-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 58.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for cc_status-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 19b1a174f09c26d4582e69d2c770c7cfa606ce130c6479419a855ec9d2d1d349
MD5 8fc6ab4befb652fa76fa39fa655dee6e
BLAKE2b-256 021749b7fb940844247c67000a8d116d58eb561ea6cb9d926e8874e9c414e276

See more details on using hashes here.

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