Repository navigation
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