Files
FacereDataset/data/raw/oshwhub/b77840665e2e48148c1b04ce84b5f7e7/source/545b9d2223308f71.epro2
Knowit 3282a028c4 Add EasyEDA Pro EPRO2 source ingestion (3/5 batch test)
打通 oshwhub origin=pro 现代 Pro 3.x 工程的 EPRO2 源抓取链路。3/5
modern Pro 项目完整解出(共 8423 docs / 542 MB plain):

- X86 主板        7374 docs / 481 MB plain (chain=85, editor=3.2.15)
- 220V 桌面电源     771 docs /  26 MB plain (chain=28, editor=3.2.69)
- ESP-VoCat       278 docs / 7.5 MB plain (chain=12, editor=3.2.91)

剩余 2/5 是 legacy Pro 2.x(立创泰山派 RK3566、梁山派),项目 meta
返回 branch_uuid=null + editorVersion="2.1.40",没有 git-style chain
模型,文档直接挂在 boards[].sch/pcb 字段上,访问端点暂未挖通;元
数据落库 metadata.json,source/ 留空。

实现要点:
- fetch_pro_source(): 4 步流程(project → branch HEAD → structures
  → /branches/<B>/histories/<HEAD> 即返完整 chain,无需 ?limit 批量
  端点)+ 逐 history 走 AES-128-GCM 解密(16 字节 IV,pycryptodome
  原生支持)+ gunzip + 按 DOCHEAD 切 per-doc EPRO2 流
- EPRO2 解析坑:行末单 `|` 是行终止符不是字段分隔符,必须先
  rstrip("|") 再 split("||"),否则 payload JSON 解析失败 silently
  swallow 导致 cur_doc 不设 → 第一轮 X86 板 7374 docs 抽出来只剩 2 个
- docType 实测远不止 BOARD/PCB/SCH/SCH_PAGE,还含 SYMBOL /
  FOOTPRINT / DEVICE / BLOB / FONT / CONFIG —— Pro 把组件库快照也
  随项目存到 history,下游做 EPRO2→KiCad 转换时必须先把这些 lib
  doc 加载进 symbol cache
- Pro 2.x vs 3.x 是不同存储模型 —— 3.x 走 branch 模型(已打通),
  2.x 走 boards[] 直链(未打通);判别条件:project meta 的
  branch_uuid 是否为 null

CLI 新增 --with-pro-source / --backfill-pro-source / --pro-cookie /
--origin(按 origin 字段服务端过滤 listing API),crawl_one() 按
origin=pro 自动 dispatch 到 Pro fetcher。

schema:docType 类型从 integer 放宽到 [integer, string, null]
(兼容 Std 的 1/3 + Pro 的 BOARD/SCH 等),新增 message_count 字段。

License 注意:本批 5 个项目全是 NC-SA / GPL,未达 Pro source doc
§4.2 Forge 白名单(MIT/BSD/Apache/CC0/CC-BY/CERN-OHL-P/Unlicense)。
按 CLAUDE.md "研究用、不再分发" 原则 raw 入库无碍;Forge 投影时
另过白名单。

详细技术细节见 docs/sources/easyeda_pro_source.md rev 3 + log.md。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 21:45:52 +08:00

57 lines
15 KiB
Plaintext

{"type":"DOCHEAD","ticket":9095}||{"docType":"SYMBOL","client":"d65f147c8efe27cb","uuid":"545b9d2223308f71","updateTime":1759497311254,"version":"1721585837"}|
{"type":"META","ticket":9096,"id":"META"}||{"title":"TPS5430DDAR","description":"","tags":[],"docType":2,"source":"1c4fe9daeff24863bc636b45033b569a|0819f05c4eef4c71ace90d822a990e87"}|
{"type":"DOCHEAD"}||{"docType":"SYMBOL","client":"29e1973763a838ad","uuid":"545b9d2223308f71","updateTime":1759497306101,"version":"1721585837"}|
{"type":"CANVAS","ticket":1,"id":"CANVAS"}||{"originX":0,"originY":0}|
{"type":"PART","ticket":2,"id":"TPS5430DDAR.1"}||{"BBOX":[-40,-35,40,35],"title":"TPS5430DDAR.1"}|
{"type":"ATTR","ticket":3,"id":"e1"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":1,"parentId":"","key":"Symbol","value":"TPS5430DDAR","keyVisible":false,"valueVisible":false,"x":null,"y":null,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"LEFT_BOTTOM"}|
{"type":"ATTR","ticket":4,"id":"e2"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":2,"parentId":"","key":"Designator","value":"U?","keyVisible":false,"valueVisible":false,"x":null,"y":null,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"LEFT_BOTTOM"}|
{"type":"ELE_PLACEHOLDER","ticket":5,"id":"4ca97acaf4a1d128"}||{"dataType":"PIN","max":2}|
{"type":"PIN","ticket":6,"id":"e3"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":3,"display":true,"x":-60,"y":-15,"length":20,"rotation":0,"color":null,"pinShape":"NONE"}|
{"type":"ATTR","ticket":7,"id":"e4"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":4,"parentId":"e3","key":"Pin Name","value":"BOOT","keyVisible":false,"valueVisible":true,"x":-38,"y":-10.08502,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"LEFT_BOTTOM"}|
{"type":"ATTR","ticket":8,"id":"e5"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":5,"parentId":"e3","key":"Pin Number","value":"1","keyVisible":false,"valueVisible":true,"x":-45,"y":-14.08502,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"RIGHT_BOTTOM"}|
{"type":"ATTR","ticket":9,"id":"e6"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":6,"parentId":"e3","key":"Pin Type","value":"Undefined","keyVisible":false,"valueVisible":false,"x":-60,"y":-15,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":null,"underline":null,"italic":null,"fontWeight":null,"align":null}|
{"type":"ELE_PLACEHOLDER","ticket":10,"id":"9802a7253f702f50"}||{"dataType":"PIN","max":3}|
{"type":"PIN","ticket":11,"id":"e7"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":7,"display":true,"x":-60,"y":-5,"length":20,"rotation":0,"color":null,"pinShape":"NONE"}|
{"type":"ATTR","ticket":12,"id":"e8"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":8,"parentId":"e7","key":"Pin Name","value":"NC","keyVisible":false,"valueVisible":true,"x":-38,"y":-0.08502,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"LEFT_BOTTOM"}|
{"type":"ATTR","ticket":13,"id":"e9"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":9,"parentId":"e7","key":"Pin Number","value":"2","keyVisible":false,"valueVisible":true,"x":-45,"y":-4.08502,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"RIGHT_BOTTOM"}|
{"type":"ATTR","ticket":14,"id":"e10"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":10,"parentId":"e7","key":"Pin Type","value":"Undefined","keyVisible":false,"valueVisible":false,"x":-60,"y":-5,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":null,"underline":null,"italic":null,"fontWeight":null,"align":null}|
{"type":"ELE_PLACEHOLDER","ticket":15,"id":"cbac46fe465eb222"}||{"dataType":"PIN","max":3}|
{"type":"PIN","ticket":16,"id":"e11"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":11,"display":true,"x":-60,"y":5,"length":20,"rotation":0,"color":null,"pinShape":"NONE"}|
{"type":"ATTR","ticket":17,"id":"e12"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":12,"parentId":"e11","key":"Pin Name","value":"NC","keyVisible":false,"valueVisible":true,"x":-38,"y":9.91498,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"LEFT_BOTTOM"}|
{"type":"ATTR","ticket":18,"id":"e13"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":13,"parentId":"e11","key":"Pin Number","value":"3","keyVisible":false,"valueVisible":true,"x":-45,"y":5.91498,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"RIGHT_BOTTOM"}|
{"type":"ATTR","ticket":19,"id":"e14"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":14,"parentId":"e11","key":"Pin Type","value":"Undefined","keyVisible":false,"valueVisible":false,"x":-60,"y":5,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":null,"underline":null,"italic":null,"fontWeight":null,"align":null}|
{"type":"ELE_PLACEHOLDER","ticket":20,"id":"ae8d4d03c73f0416"}||{"dataType":"PIN","max":3}|
{"type":"PIN","ticket":21,"id":"e15"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":15,"display":true,"x":-60,"y":15,"length":20,"rotation":0,"color":null,"pinShape":"NONE"}|
{"type":"ATTR","ticket":22,"id":"e16"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":16,"parentId":"e15","key":"Pin Name","value":"VSENSE","keyVisible":false,"valueVisible":true,"x":-38,"y":19.91498,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"LEFT_BOTTOM"}|
{"type":"ATTR","ticket":23,"id":"e17"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":17,"parentId":"e15","key":"Pin Number","value":"4","keyVisible":false,"valueVisible":true,"x":-45,"y":15.91498,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"RIGHT_BOTTOM"}|
{"type":"ATTR","ticket":24,"id":"e18"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":18,"parentId":"e15","key":"Pin Type","value":"Undefined","keyVisible":false,"valueVisible":false,"x":-60,"y":15,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":null,"underline":null,"italic":null,"fontWeight":null,"align":null}|
{"type":"ELE_PLACEHOLDER","ticket":25,"id":"b3a9c2ea37e1e885"}||{"dataType":"PIN","max":3}|
{"type":"PIN","ticket":26,"id":"e19"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":19,"display":true,"x":60,"y":25,"length":20,"rotation":180,"color":null,"pinShape":"NONE"}|
{"type":"ATTR","ticket":27,"id":"e20"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":20,"parentId":"e19","key":"Pin Name","value":"ENA","keyVisible":false,"valueVisible":true,"x":38,"y":29.91498,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"RIGHT_BOTTOM"}|
{"type":"ATTR","ticket":28,"id":"e21"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":21,"parentId":"e19","key":"Pin Number","value":"5","keyVisible":false,"valueVisible":true,"x":45,"y":25.91498,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"LEFT_BOTTOM"}|
{"type":"ATTR","ticket":29,"id":"e22"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":22,"parentId":"e19","key":"Pin Type","value":"Undefined","keyVisible":false,"valueVisible":false,"x":60,"y":25,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":null,"underline":null,"italic":null,"fontWeight":null,"align":null}|
{"type":"ELE_PLACEHOLDER","ticket":30,"id":"b037e8e5830e112e"}||{"dataType":"PIN","max":3}|
{"type":"PIN","ticket":31,"id":"e23"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":23,"display":true,"x":60,"y":15,"length":20,"rotation":180,"color":null,"pinShape":"NONE"}|
{"type":"ATTR","ticket":32,"id":"e24"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":24,"parentId":"e23","key":"Pin Name","value":"GND","keyVisible":false,"valueVisible":true,"x":38,"y":19.91498,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"RIGHT_BOTTOM"}|
{"type":"ATTR","ticket":33,"id":"e25"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":25,"parentId":"e23","key":"Pin Number","value":"6","keyVisible":false,"valueVisible":true,"x":45,"y":15.91498,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"LEFT_BOTTOM"}|
{"type":"ATTR","ticket":34,"id":"e26"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":26,"parentId":"e23","key":"Pin Type","value":"Undefined","keyVisible":false,"valueVisible":false,"x":60,"y":15,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":null,"underline":null,"italic":null,"fontWeight":null,"align":null}|
{"type":"ELE_PLACEHOLDER","ticket":35,"id":"34bd471a0900320b"}||{"dataType":"PIN","max":3}|
{"type":"PIN","ticket":36,"id":"e27"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":27,"display":true,"x":60,"y":5,"length":20,"rotation":180,"color":null,"pinShape":"NONE"}|
{"type":"ATTR","ticket":37,"id":"e28"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":28,"parentId":"e27","key":"Pin Name","value":"VIN","keyVisible":false,"valueVisible":true,"x":38,"y":9.91498,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"RIGHT_BOTTOM"}|
{"type":"ATTR","ticket":38,"id":"e29"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":29,"parentId":"e27","key":"Pin Number","value":"7","keyVisible":false,"valueVisible":true,"x":45,"y":5.91498,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"LEFT_BOTTOM"}|
{"type":"ATTR","ticket":39,"id":"e30"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":30,"parentId":"e27","key":"Pin Type","value":"Undefined","keyVisible":false,"valueVisible":false,"x":60,"y":5,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":null,"underline":null,"italic":null,"fontWeight":null,"align":null}|
{"type":"ELE_PLACEHOLDER","ticket":40,"id":"4101c8017066fcb9"}||{"dataType":"PIN","max":3}|
{"type":"PIN","ticket":41,"id":"e31"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":31,"display":true,"x":60,"y":-5,"length":20,"rotation":180,"color":null,"pinShape":"NONE"}|
{"type":"ATTR","ticket":42,"id":"e32"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":32,"parentId":"e31","key":"Pin Name","value":"PH","keyVisible":false,"valueVisible":true,"x":38,"y":-0.08502,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"RIGHT_BOTTOM"}|
{"type":"ATTR","ticket":43,"id":"e33"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":33,"parentId":"e31","key":"Pin Number","value":"8","keyVisible":false,"valueVisible":true,"x":45,"y":-4.08502,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"LEFT_BOTTOM"}|
{"type":"ATTR","ticket":44,"id":"e34"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":34,"parentId":"e31","key":"Pin Type","value":"Undefined","keyVisible":false,"valueVisible":false,"x":60,"y":-5,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":null,"underline":null,"italic":null,"fontWeight":null,"align":null}|
{"type":"ELE_PLACEHOLDER","ticket":45,"id":"5b72bc8e862ea2fb"}||{"dataType":"PIN","max":4}|
{"type":"PIN","ticket":46,"id":"e36"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":36,"display":true,"x":60,"y":-25,"length":20,"rotation":180,"color":null,"pinShape":"NONE"}|
{"type":"ATTR","ticket":47,"id":"e37"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":37,"parentId":"e36","key":"Pin Name","value":"PowerPAD","keyVisible":false,"valueVisible":true,"x":38,"y":-20.08502,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"RIGHT_BOTTOM"}|
{"type":"ATTR","ticket":48,"id":"e38"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":38,"parentId":"e36","key":"Pin Number","value":"9","keyVisible":false,"valueVisible":true,"x":45,"y":-24.08502,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":false,"underline":false,"italic":false,"fontWeight":false,"align":"LEFT_BOTTOM"}|
{"type":"ATTR","ticket":49,"id":"e39"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":39,"parentId":"e36","key":"Pin Type","value":"Undefined","keyVisible":false,"valueVisible":false,"x":60,"y":-25,"rotation":0,"color":null,"fillColor":null,"fontFamily":null,"fontSize":null,"strikeout":null,"underline":null,"italic":null,"fontWeight":null,"align":null}|
{"type":"ELE_PLACEHOLDER","ticket":50,"id":"cb1998ca1766b997"}||{"dataType":"RECT","max":34}|
{"type":"RECT","ticket":51,"id":"e35"}||{"partId":"TPS5430DDAR.1","groupId":"","locked":false,"zIndex":35,"dotX1":-40,"dotY1":35,"dotX2":40,"dotY2":-35,"radiusX":0,"radiusY":0,"rotation":0,"strokeColor":null,"strokeStyle":null,"fillColor":null,"strokeWidth":null,"fillStyle":null}|
{"type":"DOCHEAD","ticket":9095}||{"docType":"SYMBOL","client":"0fb97aaaf7dbe284","uuid":"545b9d2223308f71","updateTime":1759992873615,"version":"1721585837","user":{"uuid":"215caa123bec401fba5bbdb222b0e772","nickname":"一只不爱吃鱼的猫","username":"liuxiaotao","avatar":"//image.lceda.cn/avatars/2022/8/W4GUor1tCl7FLtACkLdILGxmVP32cSSHlLXizbhS.png"}}|
{"type":"DOCHEAD","ticket":9095}||{"docType":"SYMBOL","client":"0d178074b27f50a0","uuid":"545b9d2223308f71","updateTime":1759993193068,"version":"1721585837","user":{"uuid":"215caa123bec401fba5bbdb222b0e772","nickname":"一只不爱吃鱼的猫","username":"liuxiaotao","avatar":"//image.lceda.cn/avatars/2022/8/W4GUor1tCl7FLtACkLdILGxmVP32cSSHlLXizbhS.png"}}|