gdsfactory
python library to generate GDS layouts
Decision gist · record as of 2026-08-14
Yes, if you are designing photonic, analog, quantum, or MEMS chips and want a scriptable, open-source EDA flow. The library is actively maintained, has low install friction, integrates with major simulators, and comes with open PDKs. Caveat: license terms are unclear in the metadata—verify the actual license before committing to commercial use. The large dependency tree (32 packages including scipy, scikit-image, trimesh) means first install and import will be slow.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.12–3.14; heavy dependency tree (scipy, scikit-image, trimesh, networkx, matplotlib, pyglet) may need system libraries for graphics and geometry computation.
- Low install friction; pure Python wheel.
- Active maintenance with release 2 days old.
License · maintenance · safety
(unclear) — License treatment is unclear—no SPDX identifier or raw license text in metadata. Before adopting for commercial or proprietary work, verify the actual license terms in the repository or package documentation.
last release 2026-08-12 (2 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 297,536 downloads/mo, #7,883 on PyPI
Alternatives
Verify before relying
pip install gdsfactory
import gdsfactory as gf
gf.gpdk.PDK.activate()
c = gf.Component()
r = gf.components.rectangle(size=(10, 10), layer=(1, 0))
rect = c.add_ref(r)
c.show()- Whether the unclear license permits commercial or proprietary use without restrictions.
- Whether all 32 runtime dependencies install cleanly on all supported platforms without system-level prerequisites.
- Performance characteristics and memory footprint when working with large GDS files or complex designs.
What it is and what it does
GDSFactory is a Python library that turns hardware design into code. You write parametric Python functions to define chip components, and the library generates fabrication-ready CAD files (GDS, OASIS, STL, GERBER). It's built for photonics, analog, quantum, MEMS, and PCB design, and integrates with simulators (Ansys, Lumerical, Tidy3d, MEEP, SPICE) to let you test and verify layouts without leaving Python.
The library handles the full design flow: layout generation with parametric cells, design verification (DRC, LVS, DFM), simulation integration, and post-fabrication validation. It wraps KLayout's C++ backend for fast geometric operations and ships with open-source PDKs (Cornerstone, SiEPIC, SkyWater 130nm, GlobalFoundries 180nm) plus access to foundry PDKs under NDA via a commercial subscription. Active development, widely used in industry and academia for tape-outs.
Use it for
- Design photonic integrated circuits by writing Python functions that generate parametric cell layouts, then export to GDS for fabrication.
- Run circuit and device simulations directly from your layout using integrated interfaces to Ansys, Lumerical, or open-source solvers.
- Verify complex layouts against design intent using DRC, LVS, and DFM checks before sending to the foundry.
- Version-control entire chip designs and component libraries in Git, treating layout as code.
- Conduct post-fabrication data analysis by defining test protocols alongside layout and extracting component parameters from raw measurements.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are designing photonic, analog, quantum, or MEMS chips and want a scriptable, open-source EDA flow.
The library is actively maintained, has low install friction, integrates with major simulators, and comes with open PDKs. Caveat: license terms are unclear in the metadata—verify the actual license before committing to commercial use. The large dependency tree (32 packages including scipy, scikit-image, trimesh) means first install and import will be slow.
Install
gdsfactory on PyPI
Before you install
Low install friction; pure Python wheel. Active maintenance with release 2 days old. Supports current Python versions (3.12–3.14). Depends on 32 runtime packages including heavy scientific stacks (scipy, scikit-image, trimesh, networkx) and visualization (matplotlib, pyglet), so initial install and first import may take time.
Requires Python 3.12–3.14; heavy dependency tree (scipy, scikit-image, trimesh, networkx, matplotlib, pyglet) may need system libraries for graphics and geometry computation.
License in practice
License treatment is unclear—no SPDX identifier or raw license text in metadata. Before adopting for commercial or proprietary work, verify the actual license terms in the repository or package documentation.
Quickstart
pip install gdsfactory
import gdsfactory as gf
gf.gpdk.PDK.activate()
c = gf.Component()
r = gf.components.rectangle(size=(10, 10), layer=(1, 0))
rect = c.add_ref(r)
c.show()
Verify before relying
- Whether the unclear license permits commercial or proprietary use without restrictions.
- Whether all 32 runtime dependencies install cleanly on all supported platforms without system-level prerequisites.
- Performance characteristics and memory footprint when working with large GDS files or complex designs.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release <3.15,>=3.12 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 32 packagesjinja2logurumatplotlibnumpyorjsonpandaspydanticpydantic-settingspydantic-extra-typespyyamlqrcoderectpackrichscipyshapelytoolztypes-PyYAMLtyperkfactorywatchdogfreetype-pymapbox_earcutnetworkxscikit-imagetrimeshipykernelattrsgraphvizpyglettyping-extensions |
| Maintenance | Actively maintained 2 days since the last release |
| First released | |
| Downloads | 297,536 / month, #7,883 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Operating System :: OS IndependentProgramming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: gdsfactory-9.48.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “gds layout generation python”
- gdsfactoryGDSFactory generates CAD files (GDS, OASIS, STL, GERBER) from Python…
- kfactoryKFactory is a Python framework for designing photonic and electronic…
- elvis-lvsElvis extracts connectivity from GDS layout files and compares them…
Give your agent the search over MCP, or paste the wish link into any chat.
More Scientific/Engineering packages
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.
scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.
scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.
Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.
dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.
Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.
Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.
See also gdsfactoryplus · gdstk · gplugins · kfactory · elvis-lvs · lambdapdk · klayout · kwasm · sax · dvsim