Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kicad_page_renumber-1.0.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kicad_page_renumber-1.0.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

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

Hashes for kicad_page_renumber-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c0193b5cb9792d4818df174f56d8b4689ae454a9e07a53dfdbabd5b74e1b26ba
MD5 589b0e593f740989ba5351971a47c440
BLAKE2b-256 dca012615bae163e54d95898e38345a76c6b367409ada7cca417194c2580088d

See more details on using hashes here.

File details

Details for the file kicad_page_renumber-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kicad_page_renumber-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8ad674459d709e2392c7cc3b555c90b8fc56c45c2c6a731f5f98301c7579b1d
MD5 a48f332c6e5d253a1fbc2024e45e4fee
BLAKE2b-256 2fd7092a752ed2ba2b942670471a3b0754de1ded7790e60c11c7b5fa1b557623

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page