Reorder and renumber KiCad schematic sheets by hierarchy
Project description
kicad-page-renumber
Reorder and renumber KiCad schematic sheets by hierarchy. Point it at a
.kicad_pro project, arrange the sheet order, and it renumbers every page
depth-first and writes the changes back to the schematic files.
Install
pip install kicad-page-renumber
Requires Python 3.10+.
Usage
The tool operates on a KiCad project file (.kicad_pro).
Interactive (default)
Launch the interactive editor, reorder sheets, then confirm to apply:
kicad-page-renumber path/to/project.kicad_pro
You'll see a before/after page-order diff and be prompted before anything is
written. Add -y/--yes to skip the confirmation prompt.
Show the current hierarchy
Print the sheet hierarchy and the depth-first renumbering without making any changes:
kicad-page-renumber project.kicad_pro --show
Config-file workflow
Generate a YAML file describing the current order, edit it, then apply it (no TUI):
# 1. Generate an ordering file
kicad-page-renumber project.kicad_pro --generate-config order.yaml
# 2. Edit order.yaml — reorder items within each `children` list
# 3. Apply the new ordering
kicad-page-renumber project.kicad_pro --config order.yaml
Options
| Option | Description |
|---|---|
project |
Path to the .kicad_pro file (required). |
-c, --config FILE |
Apply sheet order from a YAML config; skips the interactive editor. |
-y, --yes |
Skip the confirmation prompt and apply changes. |
--show |
Show the current hierarchy and the proposed renumbering, then exit. |
--generate-config OUTPUT |
Write a YAML ordering config and exit. |
Safety
Before modifying any schematic, the tool writes a .bak backup of each
changed file alongside the original.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kicad_page_renumber-1.0.0.tar.gz.
File metadata
- Download URL: kicad_page_renumber-1.0.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0193b5cb9792d4818df174f56d8b4689ae454a9e07a53dfdbabd5b74e1b26ba
|
|
| MD5 |
589b0e593f740989ba5351971a47c440
|
|
| BLAKE2b-256 |
dca012615bae163e54d95898e38345a76c6b367409ada7cca417194c2580088d
|
File details
Details for the file kicad_page_renumber-1.0.0-py3-none-any.whl.
File metadata
- Download URL: kicad_page_renumber-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8ad674459d709e2392c7cc3b555c90b8fc56c45c2c6a731f5f98301c7579b1d
|
|
| MD5 |
a48f332c6e5d253a1fbc2024e45e4fee
|
|
| BLAKE2b-256 |
2fd7092a752ed2ba2b942670471a3b0754de1ded7790e60c11c7b5fa1b557623
|