Files
Kill_LIFE/ai-agentic-embedded-base/tools/hw/schops/README.md
T
L'électron rare a96780ba7e Add French documentation for standards, integrations, cockpit, evaluations, and hardware tools
- Created README_FR.md files for various standards and profiles in the `standards` directory, detailing conventions and usage.
- Added integration documentation for ZeroClaw, AutoGen, LangGraph, and n8n in the `tools/ai/integrations` directory, outlining their roles and usage.
- Introduced a comprehensive README_FR.md for the `tools/cockpit` directory, detailing operator commands and health-check routines.
- Added a README_FR.md for the `tools/evals` directory, providing a benchmark framework for electronic prompts.
- Created a README_FR.md for the `tools/hw/schops` directory, explaining CLI operations for schematic management.
- Added README_FR.md files for the `web` directory and its `project/pcb` subdirectory, outlining the web application structure and PCB viewer inputs.
2026-03-25 01:08:52 +01:00

2.5 KiB

schops (Schematic Ops)

CLI local pour :

  • ERC/BOM/netlist via kicad-cli
  • bulk edits via kicad-sch-api (si installé)
  • Design Blocks KiCad 10 (structure + metadata)

Philosophie : bulk edits safe (backup + report) + exports déterministes (kicad-cli).

Install (local)

python -m venv .venv && source .venv/bin/activate
python -m pip install -U pip
python -m pip install -r tools/hw/schops/requirements.txt

Usage

python tools/hw/schops/schops.py --help

Exports (kicad-cli)

python tools/hw/schops/schops.py erc --schematic hardware/kicad/<proj>/<proj>.kicad_sch
python tools/hw/schops/schops.py netlist --schematic hardware/kicad/<proj>/<proj>.kicad_sch
python tools/hw/schops/schops.py bom --schematic hardware/kicad/<proj>/<proj>.kicad_sch \
  --fields "Reference,Value,Footprint,${DNP}" \
  --group-by "Value,Footprint" \
  --exclude-dnp

Les sorties vont dans artifacts/hw/<timestamp>/.

Bulk edits (kicad-sch-api)

Champs / propriétés

Applique hardware/rules/fields.yaml (defaults + règles) et écrit un rapport JSON.

python tools/hw/schops/schops.py apply-fields \
  --schematic hardware/kicad/<proj>/<proj>.kicad_sch \
  --rules hardware/rules/fields.yaml

# review-only
python tools/hw/schops/schops.py apply-fields --dry-run --schematic ... --rules ...

Footprints

python tools/hw/schops/schops.py apply-footprints \
  --schematic hardware/kicad/<proj>/<proj>.kicad_sch \
  --map hardware/rules/footprints.csv

Renommage de nets (labels)

python tools/hw/schops/schops.py rename-nets \
  --schematic hardware/kicad/<proj>/<proj>.kicad_sch \
  --rules hardware/rules/nets_rename.yaml

Snapshot (pour diff)

python tools/hw/schops/schops.py snapshot --schematic ... --name before.json
# ... modifications ...
python tools/hw/schops/schops.py snapshot --schematic ... --name after.json

Design Blocks (KiCad 10)

Les design blocks sont des dossiers *.kicad_block stockés dans une librairie *.kicad_blocks.

python tools/hw/schops/schops.py block-make \
  --name buck_5v \
  --from-sheet hardware/kicad/buck/buck.kicad_sch \
  --lib hardware/blocks/power.kicad_blocks \
  --description "Buck 5V@2A" \
  --keywords "power,buck,5v"

python tools/hw/schops/schops.py block-ls --lib hardware/blocks/power.kicad_blocks