Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 06:37
· 23 commits to main since this release

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