$npx skillfedfor your agent

kfactory

KLayout API implementation of gdsfactory

With conditionsPyPI Scientific/EngineeringReleased Jul 2026242.9K downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — kfactory-3.0.4-py3-none-any.whl
v3.0.4 · released 2026-07-27 · Python >=3.12 · 18 runtime deps: aenum, cachetools, kfnetlist, klayout, loguru, pydantic, pydantic-extra-types, pydantic-settings

Yes, if you are designing photonic or electronic chips and want a Python-native parametric layout framework. The active maintenance, low install friction, and rich feature set (routing, schematics, verification) make it a solid choice for chip design workflows. Verify the license treatment before use in proprietary contexts, and confirm klayout system dependencies match your environment.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.12 or later; klayout system dependency may need separate installation depending on your platform.
  • Low friction; pure Python wheel with 18 runtime dependencies including well-maintained packages like pydantic, loguru, and scipy.
  • Active maintenance with a release 18 days ago.

License · maintenance · safety

(unclear) — License treatment is unclear in the fact sheet; the description excerpt mentions MIT licensing, but the metadata does not confirm this. Verify the actual license before adopting in a commercial or restricted context.

last release 2026-07-27 (18 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 242,878 downloads/mo, #8,833 on PyPI

Verify before relying

pip install kfactory

import kfactory as kf

@kf.cell
def my_waveguide() -> kf.KCell:
    return kf.KCell(name="waveguide")
  • Whether the MIT license mentioned in the description excerpt is the authoritative license for this version
  • Whether klayout requires system-level installation or is bundled with the package
  • Performance characteristics and scalability limits for large chip designs
  • Compatibility guarantees with specific KLayout versions
Same gist for agents: .md · .json

What it is and what it does

KFactory is a Python framework for designing photonic and electronic chip layouts, built on KLayout's C++ geometry engine. It abstracts chip design into parametric cells that can be cached and reused, provides routing algorithms for optical and electrical paths, and supports cross-section definitions for waveguide profiles. The framework integrates schematic-driven workflows with netlist extraction and layout-vs-schematic verification, allowing designers to move between logical schematics and physical layouts.

The package works with both integer (DBU) and floating-point (µm) coordinate systems, includes Jupyter integration for live preview in KLayout, and bundles a PDK system for packaging technology definitions. It requires Python 3.12 or later and depends on 18 runtime packages spanning geometry (scipy, rectangle-packer), configuration (pydantic, ruamel-yaml), and version management (semver). No known security vulnerabilities are reported.

Use it for

  • Design parametric photonic circuits with automatic cell deduplication and caching
  • Route optical waveguides and electrical traces with Manhattan and all-angle primitives
  • Define reusable cross-sections and automatically generate cladding layers via Minkowski sums
  • Extract netlists from physical layouts and verify consistency with schematics
  • Develop technology PDKs that bundle layers, factories, and design rules for reuse
  • Interactively preview and edit chip layouts in Jupyter notebooks with KLive integration

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are designing photonic or electronic chips and want a Python-native parametric layout framework.

The active maintenance, low install friction, and rich feature set (routing, schematics, verification) make it a solid choice for chip design workflows. Verify the license treatment before use in proprietary contexts, and confirm klayout system dependencies match your environment.

Install

kfactory on PyPI

Before you install

Low friction; pure Python wheel with 18 runtime dependencies including well-maintained packages like pydantic, loguru, and scipy. Active maintenance with a release 18 days ago. Requires Python 3.12 or later.

Requires Python 3.12 or later; klayout system dependency may need separate installation depending on your platform.

License in practice

License treatment is unclear in the fact sheet; the description excerpt mentions MIT licensing, but the metadata does not confirm this. Verify the actual license before adopting in a commercial or restricted context.

Quickstart

pip install kfactory

import kfactory as kf

@kf.cell
def my_waveguide() -> kf.KCell:
    return kf.KCell(name="waveguide")

Verify before relying

  • Whether the MIT license mentioned in the description excerpt is the authoritative license for this version
  • Whether klayout requires system-level installation or is bundled with the package
  • Performance characteristics and scalability limits for large chip designs
  • Compatibility guarantees with specific KLayout versions

Package facts

LicenseNot declared unclear
Python supportSupports the current Python release >=3.12
Install frictionLow. Pure-Python wheel
Runtime dependencies
18 packages
aenumcachetoolskfnetlistklayoutlogurupydanticpydantic-extra-typespydantic-settingspygit2rapidfuzzrectangle-packerrequestsruamel-yamlruamel-yaml-stringscipysemvertoolztyper
MaintenanceActively maintained 18 days since the last release
First released
Downloads242,878 / month, #8,833 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Operating System :: OS IndependentProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: kfactory-3.0.4-py3-none-any.whl

Tags

Capabilities
photonic chip layout designparametric cell generationoptical waveguide routingGDS layout frameworkschematic-driven chip designKLayout Python APIelectronic circuit layoutnetlist extraction verification
Topics
chip-designphotonicsparametric-layout

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 › “photonic chip layout design”

  • kfactoryKFactory is a Python framework for designing photonic and electronic…
  • gdsfactoryGDSFactory generates CAD files (GDS, OASIS, STL, GERBER) from Python…
  • gdstkGdstk is a Python module for creating and manipulating GDSII and…

Give your agent the search over MCP, or paste the wish link into any chat.

More Scientific/Engineering packages

numpy Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
pandas Worth it
PyPI · Scientific/Engineering · released Jul 2026

pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.

BSD-3-Clausecompiled wheel · 3.11+
769.1Mdownloads / mo
scipy Worth it
PyPI · Libraries · released Jun 2026

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.

BSD-3-Clausecompiled wheel · 3.12+
449.0Mdownloads / mo
scikit-learn Worth it
PyPI · Software Development · released Jun 2026

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.

BSD-3-Clausecompiled wheel · 3.11+
235.5Mdownloads / mo
dill Worth it
PyPI · Software Development · released Jan 2026

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.

BSD-3-Clausepure Python · 3.9+
208.1Mdownloads / mo
multiprocess Worth it
PyPI · Software Development · released Jan 2026

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.

BSD-3-Clausepure Python · 3.9+
202.7Mdownloads / mo

See also elvis-lvs · gdsfactory · klayout · kwasm · salamandra · sax · gdsfactoryplus · gplugins · dvsim · lambdapdk