Library that allows you to support both, KiCAD 5 and KiCAD 6 in your plugins
Project description
Pcbnew Transition
This library allows you to easily support both, KiCAD 6 and KiCAD 5 in your KiCAD plugins. It basically monkeypatches KiCAD 5 Python module, so it matches KiCAD 6 API.
Note: By KiCAD 6 I mean current nightly (v5.99).
Usage
Instead of:
import pcbnew
Use:
from pcbnewTransition import pcbnew
And then, use the API for KiCAD 6. In case you need to distinguish v5 and v6, you can:
from pcbnewTransition import KICAD_VERSION, isV6
if isV6():
# something...
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
pcbnewTransition-0.3.2.tar.gz
(21.1 kB
view hashes)
Built Distribution
Close
Hashes for pcbnewTransition-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffe00e2bb8ee7e1e53220458ea087bf6b77f4301783e1d2d7be4e52ec7147ece |
|
MD5 | 7c33d1f5f090e00be5b32188e86f086f |
|
BLAKE2b-256 | 4330296c785b6c6a92ec4c9b0ba01023068a0716b05f5f1cb2bf159c37c145df |