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.0.tar.gz
(20.9 kB
view hashes)
Built Distribution
Close
Hashes for pcbnewTransition-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f03689fbe87eb9941ceec362c7d1185378a96e73a73525073b44c92a73f0813 |
|
MD5 | f112d2e3651aea0aa56c2eb71b3b5845 |
|
BLAKE2b-256 | 65adb00a6c0d26fb0b635cfd5e0f168a9bd679971b8387911b37ce2a224f5397 |