Metadata-Version: 2.4
Name: kicad-monkey
Version: 2026.11.30
Summary: Core KiCad parser, round-trip, and 2D rendering tooling
Project-URL: Homepage, https://github.com/wavenumber-eng/kicad_monkey
Project-URL: Repository, https://github.com/wavenumber-eng/kicad_monkey
Project-URL: Issues, https://github.com/wavenumber-eng/kicad_monkey/issues
Author: Wavenumber LLC
License: MIT
License-File: LICENSE
Requires-Python: <3.15,>=3.11
Requires-Dist: colorama
Requires-Dist: freetype-py
Requires-Dist: msgspec>=0.21.1
Requires-Dist: numpy
Requires-Dist: shapely
Requires-Dist: trimesh
Requires-Dist: uharfbuzz
Requires-Dist: zstandard
Provides-Extra: test
Requires-Dist: brotli>=1.1.0; extra == 'test'
Requires-Dist: build>=1.2.0; extra == 'test'
Requires-Dist: fonttools>=4.53.0; extra == 'test'
Requires-Dist: jsonschema>=4.22.0; extra == 'test'
Requires-Dist: pyright>=1.1.390; extra == 'test'
Requires-Dist: pytest-json-report; extra == 'test'
Requires-Dist: pytest>=8.0.0; extra == 'test'
Requires-Dist: ruff>=0.8.0; extra == 'test'
Requires-Dist: tomli-w>=1.2.0; extra == 'test'
Requires-Dist: twine>=5.0.0; extra == 'test'
Requires-Dist: wn-dev-std>=2026.10.1; (python_version >= '3.12') and extra == 'test'
Requires-Dist: wn-rack>=1.1.0; extra == 'test'
Description-Content-Type: text/markdown

# `kicad-monkey`

`kicad-monkey` is a standalone, cross-platform **Python + Rust** toolkit for reading, inspecting, mutating, rendering, and manufacturing **KiCad >= 7** (KiCad 7–10) designs — without requiring a running KiCad desktop session.

## Install

```sh
# Python library (Python 3.11–3.14)
uv add kicad-monkey
# or: pip install kicad-monkey

# Companion CLI (kicad-cruncher / kcr)
uv tool install kicad-cruncher
kcr --version
```

### Two Clean Geometry Pipelines

| Pipeline | Scope | Primary Outputs |
| --- | --- | --- |
| **Analytic `KiCadFabView` / `FabViewData`** (`kicad_monkey.fab` & Rust `kicad-monkey-fab`) | Normalized whole-nanometre (`+Y` up) board view shared across manufacturing and board rendering | Gerber X2/X1, Excellon NC Drill, IPC-2581B, PnP/BOM, Micro-STEP, all **17 virtual fab layers**, `kcr vdoc` baking (boards & `.pretty` libraries), and **`kcr pcb-svg` / `kcr toon`** physical, board-domain, and virtual layers |
| **KiCad Plotter IR** (`kicad_monkey.kicad_plotter_ir`) | Oracle-matched KiCad plotting semantics | Schematic & symbol SVG, footprint previews, `kicad-cli` pixel-parity verification |

### Quick Start

```python
from kicad_monkey import KiCadPcb

pcb = KiCadPcb.from_file("board.kicad_pcb")
fab = pcb.fab()

# Generate Gerber X2 + virtual fab layers + NC Drill + IPC-2581B + Micro-STEP
fab.to_gerbers(virtual_layers=("CUTOUTS", "PIN1_TOP", "DIODES_TOP")).write("out/gerbers")
fab.to_nc_drill().write("out/gerbers")
fab.to_ipc2581(virtual_layers=("CUTOUTS", "PIN1_TOP")).write("out/ipc2581")
fab.to_micro_step("out/board_micro.step")
```

```sh
# High-level CLI (kicad-cruncher / kcr)
kcr fab board.kicad_pcb --ipc2581 --micro-step -o out/fab
kcr vdoc board.kicad_pcb --layers CUTOUTS,PIN1_TOP,DIODES_TOP -o baked.kicad_pcb
kcr vdoc MyParts.pretty --fab-only -o MyParts_fab.pretty
kcr pcb embed-models board.kicad_pcb --dry-run
kcr pcb-svg board.kicad_pcb -o out/pcb-svg
kcr toon board.kicad_pcb -o out/toon
```

### Explore the Documentation

Full Blue Phosphor documentation site: **[wavenumber-eng.github.io/kicad_monkey](https://wavenumber-eng.github.io/kicad_monkey/)**

- [High-Level Architecture & Quick Start](https://wavenumber-eng.github.io/kicad_monkey/guides/index.html)
- [Fab & `KiCadFabView` Guide](https://wavenumber-eng.github.io/kicad_monkey/guides/fab.html)
- [Virtual Fab Layers (All 17 Layers)](https://wavenumber-eng.github.io/kicad_monkey/guides/virtual_layers.html)
- [CLI Guide (`kicad-cruncher` / `kcr`)](https://wavenumber-eng.github.io/kicad_monkey/cli/index.html)
- [Rust Workspace](https://wavenumber-eng.github.io/kicad_monkey/rust/index.html)
- [Format Contracts](https://wavenumber-eng.github.io/kicad_monkey/contracts/index.html)
