# KFactory > Python framework for photonic and electronic chip layout, built on KLayout's C++ geometry engine. KFactory provides parametric cells with caching, optical and electrical routing, enclosures via Minkowski sums, and schematic-driven design with LVS. Lengths are integer database units (DBU) on `KCell` and float µm on `DKCell`. ## Getting Started - [Home]() - [Installation]() - [KLive Setup]() - [Prerequisites]() - [5-Minute Quickstart]() ## Concepts - [DBU vs µm]() - [Geometry]() - [Instances]() - [KCell]() - [KCLayout]() - [Layers]() - [Ports]() ## Components - [Bezier]() - [Circular]() - [Euler]() - [Overview]() - [Straight]() - [Taper]() - [Overview]() - [PCells]() - [Virtual PCells]() - [Cross-Sections]() - [KCell Enclosure]() - [Layer Enclosure]() ## Routing - [All-Angle]() - [Bundle Routing Tutorial]() - [Electrical]() - [Manhattan Primitives]() - [Optical]() - [Overview]() - [Path-Length Matching]() ## PDK & Schematics - [Creating a PDK]() - [Technology & Layer Stack]() - [45° Crossing]() - [Netlist & I/O]() - [Overview]() - [Ports & Pins]() ## Utilities & Guides - [DRC Fixing]() - [Fill]() - [Grid Layout]() - [Packing]() - [Session Cache]() - [Best Practices]() - [Contributing]() - [FAQ]() - [Common Patterns]() - [Coming from gdsfactory]() - [Config Class]() - [Migration]() ## API Reference - [\\bezier]() - [\\circular]() - [\\euler]() - [cells]() - [\\straight]() - [\\taper]() - [\\circular]() - [\\euler]() - [virtual]() - [\\straight]() - [\\checks]() - [\\build]() - [cli]() - [\\conf]() - [\\cross\_section]() - [\\decorators]() - [\\enclosure]() - [\\exceptions]() - [\\bezier]() - [\\circular]() - [\\euler]() - [factories]() - [\\straight]() - [\\taper]() - [\\utils]() - [\\circular]() - [\\euler]() - [virtual]() - [\\straight]() - [\\factory\_metadata]() - [\\geometry]() - [\\grid]() - [kfactory]() - [\\instance]() - [\\instance\_group]() - [\\instance\_pins]() - [\\instance\_ports]() - [\\instances]() - [\\kcell]() - [\\layer]() - [\\layout]() - [\\merge]() - [\\packing]() - [\\pin]() - [\\pins]() - [\\placer]() - [\\port]() - [\\ports]() - [\\protocols]() - [aa]() - [\\optical]() - [\\electrical]() - [\\generic]() - [routing]() - [\\length\_functions]() - [\\manhattan]() - [\\optical]() - [\\steps]() - [\\utils]() - [\\schematic]() - [\\serialization]() - [\\session\_cache]() - [\\settings]() - [\\shapes]() - [\\spatial]() - [technology]() - [\\layer\_map]() - [\\typings]() - [\\utilities]() - [\\difftest]() - [\\fill]() - [utils]() - [\\simplify]() - [\\violations]() - [widgets]() - [\\interactive]()