doweb
raw JSON → 1.7.3 verified Fri May 01 auth: no python
A Python library providing a KLayout API implementation for gdsfactory, enabling design automation workflows in photonics and semiconductor layout. Version 1.7.3 requires Python >=3.11, with regular releases.
pip install doweb Common errors
error ModuleNotFoundError: No module named 'klayout' ↓
cause KLayout Python package not installed
fix
Install KLayout: pip install klayout
error ImportError: cannot import name 'xxx' from 'doweb' ↓
cause Submodule or symbol does not exist in doweb
fix
Use import doweb and access as doweb.xxx, or only import directly if documented.
Warnings
breaking KLayout API differences: doweb may not support all KLayout API features; expect discrepancies in layer properties and cell operations. ↓
fix Check doweb's documentation for supported API methods; use pure KLayout if full compatibility needed.
deprecated Python <3.11 no longer supported after v1.7.0 ↓
fix Upgrade to Python 3.11 or higher.
gotcha Concurrent use with other KLayout wrappers may cause import conflicts ↓
fix Ensure only one KLayout API implementation is imported at a time.
Imports
- doweb wrong
from doweb import ...correctimport doweb
Quickstart
import gdsfactory as gf
import doweb
# Create a simple component
c = gf.Component('test')
c.add_polygon([(0,0), (10,0), (10,10), (0,10)], layer=0)
c.write_gds('test.gds')
print('GDS written with doweb backend')