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 pcbnewVersion, isV6
if isV6(pcbnewVersion):
# 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.1.0.tar.gz
(18.8 kB
view hashes)
Built Distribution
Close
Hashes for pcbnewTransition-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0beb88f06ecc9fbf58b3880435663d69c32773167c05d9bc773ba9f33afea938 |
|
MD5 | 184986ff7c9ff02e5aeac9486a4df322 |
|
BLAKE2b-256 | c14ea754a194def13892835e27ab5bf06f21d28e5789cb11f8cc859ecc6d41ae |