Description
PHIDL is a Python library for scripting GDS layouts and CAD-style geometry, used for designing chips and micro- and nanofabricated devices. You build shapes, paths and placements in code and export them as GDS files. The project describes itself as an extension of the older gdspy library. Recent versions added KLayout-based boolean, offset, outline and invert functions, which the README says are faster and more robust than the earlier implementations, because KLayout's tile processor can split and parallelise the work. These functions need the klayout package installed separately. The library also added a Path.interpolate method for placing objects along a path, such as vias. It is installed with pip, and optional extras such as freetype-py, klayout and rectpack are available. It needs Python 3.6 or later, and its tests run with pytest. The README links to a tutorial, examples, an interactive notebook and reference documentation for the geometry library. The author asks users who find it useful to cite the PHIDL paper, published in 2021 in the Journal of Vacuum Science and Technology B. It suits researchers and engineers who design layouts and want to script them.…
Highlights
- Scripted GDS layout and CAD geometry in Python
- KLayout-based boolean, offset and outline functions
- Path interpolation for placing objects along paths
- Optional extras for klayout, freetype and rectpack
- Tutorial, examples and interactive notebook
Ratings & Reviews
No ratings yet
Be the first to rate Phidl.
People also visit
Phidl FAQ
What is PHIDL?
A Python library for scripting GDS layouts and CAD geometry, used for designing chips and micro- and nanofabricated devices.
How do I install it?
Run pip install -U phidl. Add the all extra to include optional dependencies such as klayout.
Which Python version?
Python 3.6 or later, according to the README.
What are the new KLayout functions?
pg.kl_boolean, pg.kl_offset, pg.kl_outline and pg.kl_invert. They need pip install klayout first.
Where can I learn it?
The README links to a tutorial, examples, an interactive notebook and documentation for the geometry library.
What are the best Phidl alternatives?
Popular alternatives to Phidl include gds2pov, CadQuery and Gingerbread. See all Phidl alternatives







