Repository navigation
Releases
v0.5.0
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,PythonLayout.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-hierarchytolayouttk clipandkeep_hierarchy=TruetoLayout.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 windowandrastermask sampling now prune huge arrays and off-window geometry before scanning, avoiding false expansion/crossing budget failures. Added exact open-box hit testing forquery window, material-reachability pruning forplaced_shapeson 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 returningRegion) andlayouttk.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.
v0.4.1
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 声明。
English
- Use
--format jsonfor a versioned CLI result withschema_version,status, andreport. 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-goingto continue after an error or a verification difference. - The offline
describe --jsoncommand index now exposes stdin and stdout conventions, command paths, and argument metadata. - Python adds the immutable
LayerSetfor composing layer filters with+,|,&,-, and^. UseRegion + Regionfor 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.
v0.3.1
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 --helpandedit --helpinclude complete JSON examples and a field reference. Use-hfor a brief reminder. CI executes the JSON examples for all geometry methods.- Use
layouttk guide --lang enfor the built-in English guide or--lang zh-CNfor Simplified Chinese. - Use
layouttk describe --json query boundsfor one command’s options and documentation. Omit the path for the full index.
v0.3.0
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 --helpto find a command by task. Agents can read the local command index and examples withlayouttk describe --json. - Combine layers or subtract one from another with
boolean. Usegeometryfor offsets, fillets, curves, tracks, and coordinate calculations. - Use
queryfor hierarchy, labels, bounds, and area. Useeditfor ordered cell, layer, property, and repetition changes. Usemodelto exchange stored records. - Use
rasterfor mask exchange and PNG,viewfor SVG and offline HTML, andgdsfor units, content hashes, and raw records. - Follow the bilingual extraction guide to choose a layer, write an output file, and check it in KLayout.
v0.2.0
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 JSONdbu_nmfield. Existingdbu_metersinputs remain supported. - Scan cells, layers, dependencies, and repetitions with
layouttk inventory. Compare stored records and per-layer mask XOR withlayouttk verify. - Clip windows directly from GDSII or OASIS with
layouttk cliporLayout.clip_file(). Output contains flat filled polygons in root coordinates and uses explicit resource limits. Useextractto 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