altium-monkey
▓▓▓▓▓▓▓▓▓▓
▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓▓▓▓░░░░░░▓▓░░░░░░▓▓▓▓
░░░░▓▓░░░░░░░░░░░░░░░░░░▓▓░░░░
░░░░▓▓░░ ░░░░░░ ░░▓▓░░░░
░░▓▓░░██ ░░░░░░██ ░░▓▓░░
▓▓░░░░░░░░░░░░░░░░░░▓▓
▓▓░░░░░░░░░░░░░░▓▓
▓▓▓▓░░░░░░▓▓▓▓
▓▓▓▓▓▓ ░░
▓▓▓▓▓▓▓▓▓▓ ▓▓
▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓▓▓▓░░▓▓░░▓▓▓▓
altium-monkey is a Python toolkit for reading, authoring, compiling,
manufacturing, and rendering Altium Designer files directly from automation —
shipped alongside its companion CLI altium-cruncher (acr) from this
repository.
Documentation: Browse the full guides, CLI reference, runnable examples,
JSON schemas, AOD register, and Python API reference at
wavenumber-eng.github.io/altium_monkey.
Install
Two PyPI packages version and release together (CPython 3.12–3.14,
Windows amd64, macOS arm64, Linux x86_64/aarch64):
# Python library
pip install altium-monkey
or: uv add altium-monkey
Companion CLI (acr / altium-cruncher / ad)
uv tool install altium-cruncher
uv tool update-shell
acr version
Optional example dependencies (CadQuery for STEP-synthesis examples):
pip install "altium-monkey[examples]"
See Installation & Packages (docs/install.md) for full platform and environment details.
What It Covers
- Documents & Libraries: Read, author, and mutate
.SchDoc,.SchLib,
.PcbDoc, .PcbLib, .PrjPcb, .IntLib (extraction & transactional
authoring), and .OutJob files, plus experimental .PCBDwf Draftsman and
experimental .PrjMbd/.MbsDoc/.MbaDoc Multi-Board Systems support (including
.MbaDoc physical assembly inspection and targeted pose editing).
- Unified Fabrication (
Fab/FabView) & 17 Virtual Fab Layers:
/
and documentation layers), ODB++ (v8.1u4), PCB/footprint SVGs,
Pick & Place, PCB BOM, and mechanical-layer baking (acr vdoc) with cutouts,
Pin 1/polarity, diodes/LEDs, passives, 3D STEP HLR outlines, designators, and
pad labels.
- Schematic Paint IR A0 & Compilation: Deterministic schematic SVG and PNG
to_svg, to_paint_png), AltiumDesign (design.b0) and checked
C0 compilation (AltiumCompilation), plus pure-Python Micro-STEP export.
- Turnkey CLI (
altium-cruncher/acr): Ready-to-run commands for
acr fab, gerbz, ipc2581, odbpp, vdoc, bom, pnp,
jlc), visuals (acr pcb-svg, toon, sch-svg, dr), and declarative CAD
automation (acr mco).
Quick Start
Python (altium-monkey):
from altium_monkey import AltiumDesign, AltiumPcbDoc
design = AltiumDesign.from_prjpcb("example.PrjPcb")
bom = design.to_bom()
board = AltiumPcbDoc.from_file("example.PcbDoc")
board.fab().to_gerbers().write("output/gerbers")
CLI (altium-cruncher / acr):
acr fab example.PrjPcb # Gerber X2, NC drill, IPC-2581B, and ODB++
acr odbpp example.PcbDoc # Standalone ODB++ (v8.1u4) package
acr toon example.PcbDoc # Opaque top/bottom PCB illustration SVGs
acr vdoc example.PcbDoc # Bake virtual assembly layers onto mechanical layers
acr bom example.PrjPcb # Grouped BOM (CSV / JSON / XLSX)
Documentation
Full searchable HTML docs live at
https://wavenumber-eng.github.io/altium_monkey/
(or build locally with uv run python tools/build_docs.py --serve):
| Area | Online Docs | Local Markdown |
| --- | --- | --- |
| Overview & Getting Started | Guides | docs/index.md |
| CLI (altium-cruncher / acr) | CLI Docs | docs/cli/index.md |
| Fab, FabView & Outputs | Fab · Gerber · IPC-2581B · ODB++ · Virtual Layers | docs/fab.md · docs/gerber.md · docs/ipc2581.md · docs/odbpp.md · docs/virtual_layers.md |
| Examples & Python API Reference | Examples · API | docs/examples/index.md |
| Format Contracts & JSON Schemas | Contracts · Schemas | docs/format_contracts/index.md · docs/schemas/index.md |
| Known Limitations & Boundaries | Known Limitations | docs/known_limitations.md |
| Altium Output Differences (AOD) | AOD Register | docs/altium_output_differences.md |
| Releases & Style Foundation | Releases · Style | RELEASE_NOTES.md · docs/style.md |
Contributing & License
This repository is a published mirror. Issues, minimal reproduction files, documentation improvements, and focused PRs are welcome — see CONTRIBUTING.md.
Licensed under the GNU Affero General Public License v3.0 or later. See LICENSE.