On This Page (9)
- Choosing a Channel: Pinned Releases vs Bleeding Edge
- Python Library (kicad-monkey)
- From PyPI (Recommended)
- From GitHub (Tag, Commit SHA, or Bleeding-Edge main)
- CLI (kicad-cruncher / kcr) as a uv tool
- From PyPI (Stable Releases)
- From GitHub Repo (main or Commit SHA)
- One-Off Trial Without Replacing Your Installed kcr (uvx)
- Rust Crates
Installation
kicad-monkey and kicad-cruncher (kcr) target Python 3.11 – 3.14 on Windows, macOS, and Linux, and ship with a standalone Rust workspace (Rust 1.95+, Edition 2024).
Choosing a Channel: Pinned Releases vs Bleeding Edge
kicad-monkey and kicad-cruncher use dated CalVer releases (YYYY.MM.DD, tagged as vYYYY.MM.DD). Choose your source depending on whether you need reproducibility or the latest unreleased fixes:
| Channel | Best For | Reproducible? | Tradeoff |
|---|---|---|---|
Pinned PyPI release (==2026.11.30) | Production hardware pipelines, CI, shared repos | Yes | Upgrade explicitly when ready |
| Latest PyPI release | Everyday local CLI & library use | Lockfile-pinned | Tracks published releases only |
Git release tag or commit SHA (@v2026.11.30 / @<sha>) | Testing a specific unreleased fix reproducibly | Yes | Requires Git + uv (or pip) |
Git main (@main) | Trying bleeding-edge changes before the next PyPI release | No (moves with main) | May include in-progress changes |
When installing kicad-cruncher from Git (main or a commit SHA), always pass --with pointing kicad-monkey at the same ref so the CLI and core library stay in lockstep instead of pulling an older kicad-monkey wheel from PyPI.
Python Library (kicad-monkey)
From PyPI (Recommended)
# Latest published release
uv add kicad-monkey
# Pin an exact dated release (recommended for CI / hardware release repos)
uv add "kicad-monkey==2026.11.30"
# Or with pip
pip install "kicad-monkey==2026.11.30"From GitHub (Tag, Commit SHA, or Bleeding-Edge main)
# Track bleeding-edge main
uv add "kicad-monkey @ git+https://github.com/wavenumber-eng/kicad_monkey.git@main"
# Pin a specific commit SHA (reproducible pre-release)
uv add "kicad-monkey @ git+https://github.com/wavenumber-eng/kicad_monkey.git@<commit-sha>"
# Pin a tagged release directly from GitHub
uv add "kicad-monkey @ git+https://github.com/wavenumber-eng/kicad_monkey.git@v2026.11.30"CLI (kicad-cruncher / kcr) as a uv tool
From PyPI (Stable Releases)
# Install latest PyPI release globally as a uv tool
uv tool install kicad-cruncher
kcr --version
# Pin an exact PyPI release
uv tool install --force "kicad-cruncher==2026.11.30"
# Upgrade later to the newest PyPI release
uv tool upgrade kicad-cruncherTo add kicad-cruncher inside a specific Python project instead of globally:
uv add kicad-cruncher
uv run kcr --versionFrom GitHub Repo (main or Commit SHA)
Because kicad-cruncher lives in packages/kicad_cruncher inside the monorepo, use #subdirectory=packages/kicad_cruncher together with --with for the matching kicad-monkey commit:
# Install bleeding-edge main as your global kcr tool
uv tool install --force \
--from "git+https://github.com/wavenumber-eng/kicad_monkey.git@main#subdirectory=packages/kicad_cruncher" \
--with "git+https://github.com/wavenumber-eng/kicad_monkey.git@main" \
kicad-cruncher
# Or pin a specific commit SHA (replace <commit-sha> with a 7–40 char git hash)
uv tool install --force \
--from "git+https://github.com/wavenumber-eng/kicad_monkey.git@<commit-sha>#subdirectory=packages/kicad_cruncher" \
--with "git+https://github.com/wavenumber-eng/kicad_monkey.git@<commit-sha>" \
kicad-cruncher
kcr --versionOne-Off Trial Without Replacing Your Installed kcr (uvx)
# Run kcr from GitHub main in an ephemeral uv environment
uvx \
--from "git+https://github.com/wavenumber-eng/kicad_monkey.git@main#subdirectory=packages/kicad_cruncher" \
--with "git+https://github.com/wavenumber-eng/kicad_monkey.git@main" \
kcr --versionTo switch your global kcr tool back to the latest PyPI release at any time:
uv tool install --force kicad-cruncherRust Crates
The Rust crates are developed in the repository workspace and consumed directly via git or path dependencies (they are not published to crates.io):
[dependencies]
# Recommended: pin to a dated release tag
kicad-monkey-core = { git = "https://github.com/wavenumber-eng/kicad_monkey.git", tag = "v2026.11.30" }
kicad-monkey-fab = { git = "https://github.com/wavenumber-eng/kicad_monkey.git", tag = "v2026.11.30" }
kicad-monkey-svg = { git = "https://github.com/wavenumber-eng/kicad_monkey.git", tag = "v2026.11.30" }
# Bleeding edge: replace `tag = "..."` with `branch = "main"` or a pinned `rev = "<commit-sha>"`Verify your toolchain (Rust 1.95+, Edition 2024) from a checkout with:
cargo test --workspace
cargo doc --no-deps --workspace --open