Skip to content

Releases

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 13:55

Python wheel 直接下载 · Direct downloads

平台 · Platform 下载 · Download
Linux x86_64 (glibc 2.28+) manylinux wheel
macOS 11+ arm64 Apple Silicon wheel
Windows x64 Windows wheel

下载与系统匹配的 wheel,用 CPython 3.11 或更高版本离线安装。核心 GDSII/OASIS 读写和几何操作无需其他 Python 包。NumPy、PyTorch 和 Pillow 按用途选装。

Download the wheel for your platform and install it offline with CPython 3.11 or newer. Core GDSII/OASIS I/O and geometry have no third-party Python requirements. NumPy, PyTorch, and Pillow are optional.

python -m pip install --no-index --no-deps PATH_TO_WHEEL.whl

独立 CLI 与源码 · Standalone CLI and sources

平台或用途 · Platform or purpose 下载 · Download
Linux x86_64 baseline (static musl) CLI tar.gz
macOS 11+ arm64 CLI tar.gz
Windows x64 CLI ZIP
Python 源码 · Python source sdist
Rust 源码 · Rust source Cargo archive
SHA-256 校验 · Checksums SHA256SUMS

解压后直接运行包内的 layouttk --help。Windows 的文件名为 layouttk.exe。独立 CLI 无需 Python 或 Rust 工具链,包内有简体中文、英文命令行指南和 Agent Skill。

Unpack the archive and run layouttk --help using the bundled executable. On Windows the executable is named layouttk.exe. The standalone CLI needs no Python or Rust toolchain. Archives include Simplified Chinese and English command guides and an Agent Skill.

Linux x86_64 baseline 静态链接 musl,无需系统 glibc、musl 或 AVX/AVX2。发布文件已在 QEMU 中用 Debian Wheezy 的 Linux 3.2.0-4-amd64 内核及禁用较新指令的 x86-64 CPU 实测。

The static Linux baseline archive was tested on Linux 3.2.0-4-amd64 in QEMU with newer CPU instructions disabled. It requires no system glibc, musl, AVX, or AVX2.

Homebrew 支持 Apple Silicon macOS 和 Linux x86_64。The project tap installs the same prebuilt CLI archives.

brew tap zwh42/layouttk https://github.com/zwh42/layouttk
brew install zwh42/layouttk/layouttk

简体中文

  • 超大文件裁片与保留层级:layouttk clip 新增 --keep-hierarchy,Python Layout.clip_file 新增 keep_hierarchy=True。裁片前基于自底向上保守包围盒递归剪枝大型规则阵列、重复元素和不相交子单元;完全落入窗口的子单元和规则子阵列可按原层级紧凑保留,仅对跨边界图形精确裁剪。
  • 窗口查询、栅格化与层级性能修复:query window 与 raster 掩膜采样复用窗口剪枝并在光栅化前预筛包围盒,避免对窗外超大阵列或图形展开与超预算;query window 使用精确开箱相交判定;placed_shapes 跳过不含目标层的空子树;跨文件 DBU 比对统一使用相对容差;轴对齐矩形走 O(1) 裁剪与归一化快路径。
  • 掩模图形与版图模板模块:新增 layouttk.shapes(圆盘、椭圆、环、多边形轮廓等返回 Region 的构造器)与 layouttk.templates(add_block、add_range_block、add_wafer_grid、alignment_mark、vernier),便于用紧凑引用阵列快速搭建带对准标记的层级掩模。
  • 示例集与文档升级:中英文手册新增 SKY130、ASAP7、IHP SG13G2、Caravel 与 SiEPIC openEBL 版图示例集及配套图解 Python 工作流;重排中英文 README 首页结构,阅读和上手路径更清晰。

中文命令行指南 · 中文 Python API · 版图示例集

English

  • Large-file window clipping and hierarchy preservation: Added --keep-hierarchy to layouttk clip and keep_hierarchy=True to Layout.clip_file. Recursive conservative-bounds pruning skips disjoint subcells and partitions massive regular arrays or OASIS repetitions before decoding or expanding them; subcells and regular sub-arrays wholly inside a window stay intact while only boundary-straddling shapes are clipped.
  • Window query, rasterization, and hierarchy fixes: query window and raster mask sampling now prune huge arrays and off-window geometry before scanning, avoiding false expansion/crossing budget failures. Added exact open-box hit testing for query window, material-reachability pruning for placed_shapes on filtered layers, relative-tolerance DBU compatibility checks across CLI and file verification, and O(1) axis-aligned rectangle clipping and normalization fast paths.
  • Mask shape and template modules: Added layouttk.shapes (disk, ellipse, outline helpers returning Region) and layouttk.templates (add_block, add_range_block, add_wafer_grid, alignment_mark, vernier) for building hierarchical masks with compact reference arrays and alignment structures.
  • Gallery, visual workflows, and refreshed READMEs: Added bilingual SKY130, ASAP7, IHP SG13G2, Caravel, and SiEPIC openEBL galleries with KLayout-verified illustrated Python workflows, and redesigned both English and Simplified Chinese READMEs for faster onboarding.

Command-line guide · Python API · PyPI · crates.io

v0.4.1

Choose a tag to compare

@github-actions github-actions released this 29 Nov 13:00

Python wheel 直接下载 · Direct downloads

平台 · Platform 下载 · Download
Linux x86_64 (glibc 2.28+) manylinux wheel
macOS 11+ arm64 Apple Silicon wheel
Windows x64 Windows wheel

下载与系统匹配的 wheel,用 CPython 3.11 或更高版本离线安装。核心 GDSII/OASIS 读写和几何操作无需其他 Python 包。NumPy、PyTorch 和 Pillow 按用途选装。

Download the wheel for your platform and install it offline with CPython 3.11 or newer. Core GDSII/OASIS I/O and geometry have no third-party Python requirements. NumPy, PyTorch, and Pillow are optional.

python -m pip install --no-index --no-deps PATH_TO_WHEEL.whl

独立 CLI 与源码 · Standalone CLI and sources

平台或用途 · Platform or purpose 下载 · Download
Linux x86_64 baseline (static musl) CLI tar.gz
macOS 11+ arm64 CLI tar.gz
Windows x64 CLI ZIP
Python 源码 · Python source sdist
Rust 源码 · Rust source Cargo archive
SHA-256 校验 · Checksums SHA256SUMS

解压后直接运行包内的 layouttk --help。Windows 的文件名为 layouttk.exe。独立 CLI 无需 Python 或 Rust 工具链,包内有简体中文、英文命令行指南和 Agent Skill。

Unpack the archive and run layouttk --help using the bundled executable. On Windows the executable is named layouttk.exe. The standalone CLI needs no Python or Rust toolchain. Archives include Simplified Chinese and English command guides and an Agent Skill.

Linux x86_64 baseline 静态链接 musl,无需系统 glibc、musl 或 AVX/AVX2。发布文件已在 QEMU 中用 Debian Wheezy 的 Linux 3.2.0-4-amd64 内核及禁用较新指令的 x86-64 CPU 实测。

The static Linux baseline archive was tested on Linux 3.2.0-4-amd64 in QEMU with newer CPU instructions disabled. It requires no system glibc, musl, AVX, or AVX2.

Homebrew 支持 Apple Silicon macOS 和 Linux x86_64。The project tap installs the same prebuilt CLI archives.

brew tap zwh42/layouttk https://github.com/zwh42/layouttk
brew install zwh42/layouttk/layouttk

简体中文

  • CLI 增加 --format json,统一返回 schema_version、status 和 report。原本静默的写入命令可返回输出路径。现有命令的默认输出、check --json 和退出码保持兼容。
  • layouttk batch 按顺序执行 JSONL 请求,可把请求的 input 交给原本从标准输入读 JSON 的命令。每行结果带来源行号和可选 ID。用 --keep-going 在失败或核验发现差异后继续。
  • describe --json 增加标准输入与输出说明、命令路径和参数元数据,便于离线查询。
  • Python 增加不可变的 LayerSet。图层筛选可用 +、|、&、- 和 ^ 组合。通过 cell.region(layer) 取得填充几何后,可用 Region + Region 求几何并集。
  • 中英文手册增加了 ASAP7、SiEPIC 和其他公开版图实例。离线 Skill 收录抽层、硅光裁片、交付核验以及从图像生成 OASIS 的示例。
  • 本版本按 MIT 许可证发布,保留 gdspy 派生代码的 BSL-1.0 声明。

中文命令行指南 · 中文 Python API

English

  • Use --format json for a versioned CLI result with schema_version, status, and report. File writes can report their output paths. Existing default output, check --json, and exit codes remain compatible.
  • Run ordered JSONL jobs with layouttk batch. Each request can supply its own JSON stdin and each response includes its source line and optional ID. Use --keep-going to continue after an error or a verification difference.
  • The offline describe --json command index now exposes stdin and stdout conventions, command paths, and argument metadata.
  • Python adds the immutable LayerSet for composing layer filters with +, |, &, -, and ^. Use Region + Region for the geometric union of filled areas.
  • The bilingual manuals include examples using ASAP7, SiEPIC, and other public layouts. The offline skill includes layer extraction, photonics clipping, delivery verification, and image-to-OASIS examples.
  • This release uses the MIT license and retains the BSL-1.0 notice for code derived from gdspy.

Command-line guide · Python API · PyPI · crates.io

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 29 Nov 09:27

Python wheel 直接下载 · Direct downloads

平台 · Platform 下载 · Download
Linux x86_64 (glibc 2.28+) manylinux wheel
macOS 11+ arm64 Apple Silicon wheel
Windows x64 Windows wheel

下载与系统匹配的 wheel,用 CPython 3.11 或更高版本离线安装。核心 GDSII/OASIS 读写和几何操作无需其他 Python 包。NumPy、PyTorch 和 Pillow 按用途选装。

Download the wheel for your platform and install it offline with CPython 3.11 or newer. Core GDSII/OASIS I/O and geometry have no third-party Python requirements. NumPy, PyTorch, and Pillow are optional.

python -m pip install --no-index --no-deps PATH_TO_WHEEL.whl

独立 CLI 与源码 · Standalone CLI and sources

平台或用途 · Platform or purpose 下载 · Download
Linux x86_64 baseline (static musl) CLI tar.gz
macOS 11+ arm64 CLI tar.gz
Windows x64 CLI ZIP
Python 源码 · Python source sdist
Rust 源码 · Rust source Cargo archive
SHA-256 校验 · Checksums SHA256SUMS

解压后直接运行包内的 layouttk --help。Windows 的文件名为 layouttk.exe。独立 CLI 无需 Python 或 Rust 工具链,包内有简体中文、英文命令行指南和 Agent Skill。

Unpack the archive and run layouttk --help using the bundled executable. On Windows the executable is named layouttk.exe. The standalone CLI needs no Python or Rust toolchain. Archives include Simplified Chinese and English command guides and an Agent Skill.

Linux x86_64 baseline 静态链接 musl,无需系统 glibc、musl 或 AVX/AVX2。发布文件已在 QEMU 中用 Debian Wheezy 的 Linux 3.2.0-4-amd64 内核及禁用较新指令的 x86-64 CPU 实测。

The static Linux baseline archive was tested on Linux 3.2.0-4-amd64 in QEMU with newer CPU instructions disabled. It requires no system glibc, musl, AVX, or AVX2.

Homebrew 支持 Apple Silicon macOS 和 Linux x86_64。The project tap installs the same prebuilt CLI archives.

brew tap zwh42/layouttk https://github.com/zwh42/layouttk
brew install zwh42/layouttk/layouttk

简体中文

  • 每条命令的帮助说明输入、参数和文件输出。常见操作给出可以复制的命令,同时说明如何读取结果。
  • create --help 和 edit --help 附完整 JSON 示例和字段参考,-h 显示简版。所有几何方法的 JSON 示例都由 CI 直接执行。
  • layouttk guide --lang zh-CN 从本机二进制输出中文指南,英文版用 --lang en。
  • layouttk describe --json query bounds 读取指定命令的参数和说明。省略命令路径可获取完整目录。

中文命令行指南

English

  • Command help explains the inputs, options, units, and output. Common tasks include commands you can copy and a guide to reading the result.
  • create --help and edit --help include complete JSON examples and a field reference. Use -h for a brief reminder. CI executes the JSON examples for all geometry methods.
  • Use layouttk guide --lang en for the built-in English guide or --lang zh-CN for Simplified Chinese.
  • Use layouttk describe --json query bounds for one command’s options and documentation. Omit the path for the full index.

Command-line guide · PyPI · crates.io

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 08:55

Python wheel 直接下载 · Direct downloads

平台 · Platform 下载 · Download
Linux x86_64 (glibc 2.28+) manylinux wheel
macOS 11+ arm64 Apple Silicon wheel
Windows x64 Windows wheel

下载与系统匹配的 wheel,用 CPython 3.11 或更高版本离线安装。核心 GDSII/OASIS 读写和几何操作无需其他 Python 包。NumPy、PyTorch 和 Pillow 按用途选装。

Download the wheel for your platform and install it offline with CPython 3.11 or newer. Core GDSII/OASIS I/O and geometry have no third-party Python requirements. NumPy, PyTorch, and Pillow are optional.

python -m pip install --no-index --no-deps PATH_TO_WHEEL.whl

独立 CLI 与源码 · Standalone CLI and sources

平台或用途 · Platform or purpose 下载 · Download
Linux x86_64 baseline (static musl) CLI tar.gz
macOS 11+ arm64 CLI tar.gz
Windows x64 CLI ZIP
Python 源码 · Python source sdist
Rust 源码 · Rust source Cargo archive
SHA-256 校验 · Checksums SHA256SUMS

解压后直接运行包内的 layouttk --help。Windows 的文件名为 layouttk.exe。独立 CLI 无需 Python 或 Rust 工具链,包内有简体中文、英文命令行指南和 Agent Skill。

Unpack the archive and run layouttk --help using the bundled executable. On Windows the executable is named layouttk.exe. The standalone CLI needs no Python or Rust toolchain. Archives include Simplified Chinese and English command guides and an Agent Skill.

Linux x86_64 baseline 静态链接 musl,无需系统 glibc、musl 或 AVX/AVX2。发布文件已在 QEMU 中用 Debian Wheezy 的 Linux 3.2.0-4-amd64 内核及禁用较新指令的 x86-64 CPU 实测。

The static Linux baseline archive was tested on Linux 3.2.0-4-amd64 in QEMU with newer CPU instructions disabled. It requires no system glibc, musl, AVX, or AVX2.

Homebrew 支持 Apple Silicon macOS 和 Linux x86_64。The project tap installs the same prebuilt CLI archives.

brew tap zwh42/layouttk https://github.com/zwh42/layouttk
brew install zwh42/layouttk/layouttk

简体中文

  • 用 layouttk --help 按任务找命令。Agent 可用 layouttk describe --json 离线读取命令、默认值和示例。
  • 用 boolean 合并两层或从一层挖去另一层,用 geometry 做偏置、圆角、路径和其他坐标计算。
  • 用 query 查单元、标签、范围和面积,用 edit 批量修改层级、图层、属性和重复。用 model 交换完整存储记录。
  • 用 raster 在版图和二值图像间交换数据及写 PNG,用 view 输出 SVG 或离线 HTML。GDSII 单位、摘要和原始记录由 gds 提供。
  • 从已有版图抽层的中英文入门步骤均写清了要替换的参数、输出位置和 KLayout 核验方法。

中文命令行指南 · 项目主页

English

  • Use layouttk --help to find a command by task. Agents can read the local command index and examples with layouttk describe --json.
  • Combine layers or subtract one from another with boolean. Use geometry for offsets, fillets, curves, tracks, and coordinate calculations.
  • Use query for hierarchy, labels, bounds, and area. Use edit for ordered cell, layer, property, and repetition changes. Use model to exchange stored records.
  • Use raster for mask exchange and PNG, view for SVG and offline HTML, and gds for units, content hashes, and raw records.
  • Follow the bilingual extraction guide to choose a layer, write an output file, and check it in KLayout.

Command-line guide · PyPI · crates.io

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 06:37

Python wheel 直接下载 · Direct downloads

平台 · Platform 下载 · Download
Linux x86_64 (glibc 2.28+) manylinux wheel
macOS 11+ arm64 Apple Silicon wheel
Windows x64 Windows wheel

下载与系统匹配的 wheel,用 CPython 3.11 或更高版本离线安装。核心 GDSII/OASIS 读写和几何操作无需其他 Python 包。NumPy、PyTorch 和 Pillow 按用途选装。

Download the wheel for your platform and install it offline with CPython 3.11 or newer. Core GDSII/OASIS I/O and geometry have no third-party Python requirements. NumPy, PyTorch, and Pillow are optional.

python -m pip install --no-index --no-deps PATH_TO_WHEEL.whl

独立 CLI 与源码 · Standalone CLI and sources

平台或用途 · Platform or purpose 下载 · Download
Linux x86_64 baseline (static musl) CLI tar.gz
macOS 11+ arm64 CLI tar.gz
Windows x64 CLI ZIP
Python 源码 · Python source sdist
Rust 源码 · Rust source Cargo archive
SHA-256 校验 · Checksums SHA256SUMS

解压后直接运行包内的 layouttk --help。Windows 的文件名为 layouttk.exe。独立 CLI 无需 Python 或 Rust 工具链。

Unpack the archive and run layouttk --help using the bundled executable. On Windows the executable is named layouttk.exe. The standalone CLI needs no Python or Rust toolchain.

Linux x86_64 baseline 静态链接 musl,无需系统 glibc、musl 或 AVX/AVX2。发布文件已在 QEMU 中用 Debian Wheezy 的 Linux 3.2.0-4-amd64 内核及禁用较新指令的 x86-64 CPU 实测。

The static Linux baseline archive was tested on Linux 3.2.0-4-amd64 in QEMU with newer CPU instructions disabled. It requires no system glibc, musl, AVX, or AVX2.

Homebrew 支持 Apple Silicon macOS 和 Linux x86_64。The project tap installs the same prebuilt CLI archives.

brew tap zwh42/layouttk https://github.com/zwh42/layouttk
brew install zwh42/layouttk/layouttk

简体中文

  • 在 Python 中用 Layout(dbu_nm=1) 指定 1 nm 网格,JSON 生成也支持 dbu_nm。已有 dbu_meters 输入继续可用。
  • 用 layouttk inventory 扫描单元、图层、依赖和重复计数。用 layouttk verify 分别核对存储记录和放置后的逐层 XOR。
  • 用 layouttk clip 或 Layout.clip_file() 从 GDSII/OASIS 导出多个窗口。输出是保持根坐标的平坦填充多边形,支持显式资源上限。需要保留文字、属性和单元层级时,用 extract 提取指定层。
  • 新增独立 KLayout 读回回归测试,以及硅光端口、曲线和仿真交付指南。

中文手册 · 项目主页

English

  • Set a 1 nm grid with Layout(dbu_nm=1) or the JSON dbu_nm field. Existing dbu_meters inputs remain supported.
  • Scan cells, layers, dependencies, and repetitions with layouttk inventory. Compare stored records and per-layer mask XOR with layouttk verify.
  • Clip windows directly from GDSII or OASIS with layouttk clip or Layout.clip_file(). Output contains flat filled polygons in root coordinates and uses explicit resource limits. Use extract to preserve hierarchy, text and representable properties.
  • Added KLayout read-back regression tests and a silicon photonics handoff guide covering ports, curved geometry and simulation windows.

English manual · PyPI · crates.io · Rust API