← 返回
开发者工具

OCAX Passport

Generate and manage node passports showing hardware info, reputation score, supported task types, and auto-update node data.
生成并管理节点凭证,展示硬件信息、信誉评分、支持的任务类型,并自动更新节点数据。
catcherintheroad-hub
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 460
下载
💾 10
安装
1
版本
#hardware#latest#node#ocax#passport#reputation

概述

OCAX Passport Skill

简介

OCAX Passport 技能用于生成和管理节点身份证,展示节点硬件信息、信誉评分和支持的计算任务类型。

功能

  • 获取节点硬件信息 (CPU/GPU/内存/存储/网络)
  • 计算节点信誉评分
  • 生成节点身份证 (Passport ID / Node ID)
  • 支持的任务类型检测
  • 自动更新节点信息

触发词

  • "passport" - 获取节点护照
  • "节点信息" - 查看硬件信息
  • "节点评分" - 查看信誉评分
  • "我的节点" - 查看完整节点信息

使用方法

from ocax_passport import generate_passport

# 生成节点护照
passport = generate_passport("My-Node", "User-Name")

# 获取节点信息
info = passport.to_json()

# 获取评分
scores = passport.scores

# 获取最佳任务
best_task = passport.scores.get("best_task")

# 启用自动更新
passport.enable_auto_update(86400)  # 24小时

输出示例

{
  "passport_id": "OCAX-PASSPORT-20260315-xxx",
  "node_id": "OCAX-NODE-20260315-xxx",
  "node_name": "My-PC",
  "hardware": {
    "cpu": {"cores": 16, "model": "AMD Ryzen 9"},
    "memory": "32GB",
    "gpu": "RTX 4090"
  },
  "reputation": {"score": 100, "completed_tasks": 0},
  "supported_tasks": ["image_processing", "ai_inference"]
}

依赖

  • psutil
  • python 3.8+

Version: 1.0

Author: OCAX Team

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 07:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

OpenClaw Pilot

catcherintheroad-hub
将粗糙的项目构思转化为易读的蓝图和清晰的OpenClaw执行包,以便安全、限定范围地实施和继续。
★ 1 📥 390
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 180,024
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,992