Skip to main content

jishu-hub

安全传输 CLI:在已授权设备上上传/下载数据集、标注数据,以及拉取评测报告。


在其他机器上的使用流程

每台新机器都要由根超管批准一次。密钥在本机生成,不能把旧机器的 ~/.jishu 整包拷过去当「换机」。

0. 目标机取机器码 → 根超管录入

无一次性注册码。设备准入由超管按「用户 + 机器码」批准。

  1. 在目标机器安装 CLI 后执行:
jishu device-code

将 64 位机器码发给管理员(工单 / 消息)。

  1. 根超管在 后台管理 → 用户列表 点「录入机器」:粘贴机器码、选填备注 → 批准。
  2. 管理员告知 Hub 网关地址(侧信道,勿写入公开文档)。

设备与批准吊销在 后台管理 → 设备/Hub。

1. 目标机器:环境

  • Python ≥ 3.10
  • 能访问 Hub 网关(HTTPS;生产环境通常要求客户端证书 / mTLS,由网关终止)
  • 安装 CLI(尚未上架公网 PyPI,pip install jishu-hub 会失败):
# 从本仓库开发安装(当前推荐)
cd /path/to/data_management
pip install -e ./cli

# 或安装已构建的 wheel(内网制品库 / 构建机产出)
# pip install /path/to/jishu_hub-0.1.0-py3-none-any.whl
# pip install jishu-hub --index-url https://<私有索引>

可选:固定网关环境变量:

export JISHU_API_URL="https://<hub-host>"   # Linux/macOS
# Windows PowerShell: $env:JISHU_API_URL="https://<hub-host>"

2. 登录(首次自动激活本机)

管理员已录入本机机器码后:

jishu login --gateway https://<hub-host> --username <平台用户名>
# 会提示密码;首次会自动 claim 设备证书,之后只需 login

成功后本机会生成:

位置 内容
~/.jishu/(或 JISHU_HOME) 网关、device_id、证书指纹等
本机密钥材料 私钥 + 设备证书(私钥不出机)

验证:

jishu whoami

3. 常用命令

jishu dataset upload <本地目录> --dataset-id <id> --version <ver>
jishu dataset download --dataset-id <id> --version <ver> --out <目录>
jishu label upload <标注目录> --project-id <id>
jishu eval reports list

上传/下载权限由平台账号 ACL 决定,与网页一致。

4. 换机 / 吊销

  • 换机:新机 device-code → 超管重新录入 → 新机 login
  • 吊销:超管在 设备/Hub 吊销批准或设备后,该机无法再 login / 传输

Metadata

Release files for jishu-hub 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jishu-hub 0.1.2
File Size Uploaded Provenance Actions
jishu_hub-0.1.2.tar.gz 15.3 kB Without provenance Details for jishu_hub-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jishu-hub 0.1.2
File Interpreter ABI Platform Actions
jishu_hub-0.1.2-py3-none-any.whl Python 3 none any Details for jishu_hub-0.1.2-py3-none-any.whl

Total release size: 32.4 kB

Release files / jishu_hub-0.1.2.tar.gz

Download URL jishu_hub-0.1.2.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5bafd531e69eec141bed6e1ee6bd8931dd772679143c7dd3099f444043871403
BLAKE2b-256 checksum
How to use checksums
d9520a1270a9cf8b2ef00478ade60eaa98482dc1d883cab58bf5d84f58eb0712
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / jishu_hub-0.1.2-py3-none-any.whl

Download URL jishu_hub-0.1.2-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f18daf08657117e8151515d46d77c38361f7b90b97bf99e9023823d180ca4dd
BLAKE2b-256 checksum
How to use checksums
142f93d2f4182e01a011d91e48b78602dab10aebc235904988064c080ee67096
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Security for jishu-hub 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page