Skip to main content

deepKernel

deepKernel 是一个 Deepline 的二次开发 Python 接口包,提供 PCB/EDA 制造辅助设计的 SDK 能力。

当前版本:0.0.51

依赖清单 (Dependencies)

本包目前无任何第三方依赖,您可以直接安装使用。

更新日志 (Changelog)

本项目所有的显著变更都将记录在此文件中。

[0.0.51] - 2026-09-22 (正式第三十一版)

Added (新增)

  • 在 GUI 模块中新增无参 getToken 和 getServiceIp 接口,分别获取 Token 和服务 IP,原样返回底层响应字符串。

  • 在 PCBA 模块中新增 runCheckList(checklist_name) 接口,用于执行指定名称的 Checklist。

  • 在 Action.Information 模块中新增 getOriginPoint(job, step),返回工作单元的 x_origin、y_origin 坐标。

Changed (变更)

  • Mask.autoZeroDatumProfileCenter 设置原点后重新读取实际 origin 坐标并同步 datum,修正 Y 坐标误取 X 坐标的问题;读取 origin 失败时抛出业务异常。

[0.0.50] - 2026-09-02 (正式第三十版)

Added (新增)

  • 在 Action.Information 模块中新增 getAllFeaturesReport 接口,支持获取指定图层的全部feature,并按line、pad、surface、arc、text分类返回。

  • 在 GUI 模块中新增 setCheckListResult 接口,支持为指定料号和工作单元设置 Checklist 结果文件。

  • 在 PCBA 模块中新增无参 automaticProcessMark 接口,支持自动执行 Mark 点处理流程。

Changed (变更)

  • Output.savePng 新增 drawSR 和 size 参数,并切换到可变尺寸 PNG 输出协议。

  • 增强 Mask.autoZeroPoint 和 Mask.autoZeroDatumProfileCenter 的参数校验、图层过滤及异常处理。

[0.0.49] - 2026-08-14 (正式第二十九版)

Added (新增)

  • 在 Output 模块中新增 saveImageInGrid 接口,支持将指定丝印层按网格切分,并将生成的图片保存到指定目录。

Changed (变更)

  • 修复 Mask.clipArea 三种裁剪模式的底层路由和 feature 类型位掩码处理,使 Manual、Reference、Profile 均使用对应的真实底层接口;同时修正 Layers.clipAreaUseReference 的参数顺序。

[0.0.48] - 2026-08-12 (正式第二十八版)

Added (新增)

  • 在 Mask 模块中新增 getOriginStepBoxForGds 和 deleteTombowForGds 接口,支持获取GDS导出使用的origin step box,以及删除指定图层中的Tombow数据。

  • 在 PCBA 模块中新增 getComponents 接口,支持查询指定图层中的全部PCBA组件信息。

Changed (变更)

  • Mask.exportGdsPlus 新增可选参数 orignstepbox_info,用于向底层传递origin step box坐标;GDS导出旋转方向调整为顺时针。

  • 修复 base.layerExport 使用默认列表参数时触发类型错误的问题,并改用安全的空列表初始化方式。

[0.0.47] - 2026-07-31 (正式第二十七版)

Changed (变更)

  • Mask.exportGdsPlus 新增必填参数 isReverse、angle、mirrordirection、scalingX、scalingY,支持控制图形反相、旋转角度、镜像方向和 XY 轴缩放比例;接口参数已补充完整类型标注。

[0.0.46] - 2026-07-24 (正式第二十六版)

Added (新增)

  • 在 Edition.Job 模块中新增 createUsersymbol 接口,支持将指定图层中当前选中的 features 创建为 usersymbol,并指定其名称和中心点坐标。

[0.0.45] - 2026-07-17 (正式第二十五版)

Added (新增)

  • 在 Input 模块中新增 importODBPPJob 接口,支持校验、解压并打开 .tgz 或 .tar.gz 格式的 ODB++ Job。

  • 在 Mask 模块中新增 addTextSurfaceByDiffFont 接口,支持分别指定中文字体和英文字体创建文字 surface。

  • 在 PCBA 模块中新增 alignmentComp、identifyProcess、matchVPL 接口,支持元器件对齐、元器件识别及 VPL 封装库匹配流程。

Changed (变更)

  • Mask.exportGdsPlus 接口新增必填参数 breakmode,用于指定 break surface arc 的处理模式。

  • 增强 Mask.addChineseText 的中文编码和异常处理,使用 GBK 编解码通道并提供更明确的参数、底层调用及协议错误信息。

[0.0.44] - 2026-07-10 (正式第二十四版)

Added (新增)

  • 在 Output 模块中新增 exportJob 接口,支持将指定料号导出为 tar、tgz 或 odb 格式的文件包。

[0.0.43] - 2026-07-03 (正式第二十三版)

Added (新增)

  • 在 Mask 模块中新增 addChineseText 接口,支持在指定图层上添加中文文字,可选择多种中文字体。

  • 在 MaskGUI 模块中新增 updateGUI 接口,用于刷新 Mask 图形界面视图。

Changed (变更)

  • Mask.createDataMatrixUsersymbol 接口重构,现在支持在指定料号的工作单元的指定层上创建 ECC-200 DataMatrix 并作为 pad 添加,新增放置坐标、极性、方向、旋转角度等参数。

[0.0.42] - 2026-06-15 (正式第二十二版)

Added (新增)

  • 新增 MaskGUI 模块,包含 showDialog 接口。

[0.0.41] - 2026-06-12 (正式第二十一版)

Added (新增)

  • 在 Mask 模块中新增 createDataMatrixUsersymbol 接口。

[0.0.40] - 2026-06-05 (正式第二十版)

Added (新增)

  • 在 PCBA 模块中新增 importCPL 接口。

Changed (变更)

  • Mask.arcToLine 接口新增 changemode 参数。

  • PCBA.importBom 接口参数 (job, step) 改为 (project_name, board_name)。

[0.0.39] - 2026-05-15 (正式第十九版)

Added (新增)

  • 新增 PCBA 模块,包含 Component 组件操作、Package 封装库操作及 BOM 交互共 9 个接口。

Changed (变更)

  • base.py 中 PCBA 底层通信函数重构为 @kernel_command 装饰器方式。

  • Mask.importDxf 新增 autoScaleOffset、boardOffset 参数。

  • Mask.outlineToSurface 移除 canToPad 参数,新增 distance 参数。

  • Input.openJob、Configuration.init 底层调用逻辑优化。

Removed (移除)

  • 移除以下已废弃的模块源码:Analysis、Guide、Optimization、MI.stackup。

  • 从 API 文档中移除已废弃的 Application 模块条目。

[0.0.38] - 2026-05-12 (正式第十八版)

Added (新增)

  • 在 Mask 模块中新增了 polygonSmooth 接口。

  • 在 Mask 模块中新增了 breakSurface 接口。

Changed (变更)

  • 将 Mask.setProfileCenterAsDatum 接口重命名为 autoZeroDatumProfileCenter。

  • 在 Mask.addNewWayBarcodeCode39、Mask.addNewWayBarcodeNikon 接口中新增了 textOffset 参数。

  • 在 Mask.breakSurfaceArc 接口中新增了 changemode 参数。

[0.0.37] - 2026-05-07 (正式第十七版)

Added (新增)

  • 在 Mask 模块中新增了 setProfileCenterAsDatum 接口。

Fixed (修复)

  • 修正了 addNewWayQrcode、addNewWayBarcodeCode39、addNewWayBarcodeNikon 三个接口存在的参数传递问题:

    • 移除了 addNewWayQrcode、addNewWayBarcodeCode39、addNewWayBarcodeNikon 中暂未开放的 selection、attributes 参数。

    • 修正了 position 参数的类型定义(bool → int,1=条码上方,2=条码下方)。

[0.0.36] - 2026-04-29 (正式第十六版)

Added (新增)

  • 在 Mask 模块中新增了 addNewWayQrcode、addNewWayBarcodeCode39、addNewWayBarcodeNikon接口。

Fixed (修复)

  • 修正了exportGds存在的参数传递错误的问题。

[0.0.35] - 2026-04-09 (正式第十五版)

Added (新增)

  • 在 Mask 模块中新增了 exportGdsPlus 接口。

[0.0.34] - 2026-04-07 (正式第十四版)

Added (新增)

  • 在 GUI 模块中新增了 getDeepKernelConfigurationInitPath、getCurrentStep、getCurrentJob、getAllProject、getOpenedProjectInfo、inputGerber 接口。

  • 在 GUI 模块中新增了 changeCurrentStep、closeProject、openProject、createProject、updateCamGui、updateLayerList、updateMatrix、updateView 接口。

  • 在 Information 模块中新增了 getSelectFilter 接口。

Deprecated (弃用)

  • 废弃了原 GUI 模块中的 showLayer、showMatrix 接口。

  • 废弃了原 Selection 模块中的 setSymbolRangeFilter、setAttrRangeFilter、setExcludeAttrFilter、setExcludeAttrRangeFilter 接口。

  • 废弃了原 Information 模块中的 getSelectParam 接口。

  • 废弃了原 Guide 模块和原 MI.stackup 模块中的所有接口。

Fixed (修复)

  • 修正了部分接口存在的参数传递错误问题。

    • Selection.setIncludeSymbolFilter

    • Selection.setFeaturetypeFilter

[0.0.33] - 2026-04-01 (正式第十三版)

Added (新增)

  • 在 Mask 模块中新增了 exportGds 接口。

  • 在 Information 模块中新增了 getSolderpasteLayers 接口。

  • 在 Layers 模块中新增了 doStepRepeat、surfaceRepair 接口。

Deprecated (弃用)

  • 废弃了原 Mask 模块中的 exportGds2 接口。

  • 废弃了原 Output 模块中的 savePdf、saveSvg 接口。

Fixed (修复)

  • 修正了部分接口存在的参数传递错误问题。

    • Selection.setFeaturetypeFilter

    • Selection.resetSelectFilter

    • Layers.copy2otherLayer

    • Matrix.changeMatrixColumn

    • Matrix.changeDrillCross

[0.0.32] - 2026-03-13 (正式第十二版)

Added (新增)

  • 在 Mask 模块中添加了以下接口:

    • clipArea

    • resizeGlobal

    • moveToOtherLayer

    • copyToOtherLayer

    • getUserSymbolHistogram

    • contourize

Fixed (修复)

  • 修正了部分接口存在的参数传递错误问题。

[0.0.31] - 2026-03-04 (正式第十一版)

Fixed (修复)

  • 修正了 0.0.30 版本中存在的接口传参错误问题。

[0.0.30] - 2026-03-02 (正式第十版 - 重构版本)

Added (新增)

  • 新增 Action 包及其下属的 Information、Selection 模块。

  • 新增 Edition 包及其下属的 Job、Layers、Matrix 模块。

  • 新增 MI 包及其下属的 stackup 模块。

  • 新增了以下独立模块:Analysis, Application, base, Configuration, deepline, GUI, Guide, input, Mask, Optimization, output。

  • 封装了多数基础功能接口,以供进一步测试。

Deprecated (弃用)

  • ⚠️ 重大变更: 弃用了原有的所有旧版模块结构,全面迁移至新的包结构框架。

[0.0.21] - 2025-11-13

Changed (变更)

  • 引入多线程机制,大幅优化了 PNG 的输出速度。

[0.0.20] - 2025-11-13

Changed (变更)

  • 持续更新并优化 PNG 输出函数。

[0.0.19] - 2025-11-13

Changed (变更)

  • 更新输出 PNG 函数。

[0.0.18] - 2025-11-13

Changed (变更)

  • 更新输出 PNG 函数。

[0.0.17] - 2025-11-13

Fixed (修复)

  • 对输出 PNG 的相关逻辑进行了调试和修复。

[0.0.16] - 2025-10-31 (正式第九版)

Added (新增)

  • 封装了 Gerber 层别比对相关接口。

Changed (变更)

  • 简化了业务流程逻辑,进一步优化用户调用体验。

[0.0.15] - 2025-10-30 (正式第八版)

Changed (变更)

  • 更新并优化了 Gerber 导入相关接口。

[0.0.14] - 2025-10-30 (正式第七版)

Added (新增)

  • 增加了创建 Job 等相关工程管理接口。

[0.0.13] - 2025-10-30 (正式第六版)

Added (新增)

  • 增加了 Gerber 导入相关接口。

[0.0.12] - 2025-10-30 (正式第五版)

Added (新增)

  • 增加了 layercompare (层比对) 相关接口。

[0.0.11] - 2025-09-29 (正式第四版)

Added (新增)

  • 在 input、output、base 模块中加入了 DXF 的导入导出测试函数。

Changed (变更)

  • 修改并优化了 DXF 导入逻辑中的 JSON 细节处理。

[0.0.8] - 2025-09-29 (正式第三版)

Added (新增)

  • information 模块中加入 get_layer_feature_count 与 get_all_features_info 接口,用于在无法导出时验证导入的正确性,以及在导入后获取特征信息。

Fixed (修复/已知问题)

  • 确认可使用 information 模块的导出函数获取所有 feature 信息。

  • (已知问题) output 模块的导出函数目前仍无法输出目标文件。

[0.0.7] - 2025-09-28 (正式第二版)

Added (新增)

  • 加入 output 模块,用于测试导出 Gerber / ODB++ 接口的可用性(目前处于不可用状态)。

[0.0.5] - 2025-09-26 (正式第一版)

Added (新增)

  • 首个 SDK 测试版本发布。

  • 提供基础测试接口:configuration.init、input.open_job、information.get_profile_box,用于验证 SDK 包整体是否可用。

Metadata

Release files for deepKernel 0.0.51

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

Source distribution (sdist)

Source distribution for deepKernel 0.0.51
File Size Uploaded Provenance Actions
deepkernel-0.0.51.tar.gz 90.2 kB Without provenance Details for deepkernel-0.0.51.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deepKernel 0.0.51
File Interpreter ABI Platform Actions
deepkernel-0.0.51-py3-none-any.whl Python 3 none any Details for deepkernel-0.0.51-py3-none-any.whl

Total release size: 180.8 kB

Release files / deepkernel-0.0.51.tar.gz

Download URL deepkernel-0.0.51.tar.gz
Size 90.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0f0ce9d3d383f6528b8b0b638cd2d1a4d514b85d5bb5174d8ff4564edec0e64e
BLAKE2b-256 checksum
How to use checksums
65686a01853ebe7c7ef92318a0581bf0e793de91ec0e8f425ca3c6003bb3a354
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / deepkernel-0.0.51-py3-none-any.whl

Download URL deepkernel-0.0.51-py3-none-any.whl
Size 90.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1eb6387a726b02f39c52453198a3737479544c7a71f7ad00ca36abc9b34664d6
BLAKE2b-256 checksum
How to use checksums
90e68bdcd11803ed97bb063a82cdbd402e7806843b1b88c83f42157c1918efcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Security for deepKernel 0.0.51

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.

Release history Release notifications | RSS feed

This release

0.0.51 This release

2 release files No provenance

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