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 all, KiCAD 7, 6 and 5 in your KiCAD plugins. It basically monkeypatches KiCAD Python module, so it matches KiCAD 7 API.
Usage
Instead of:
import pcbnew
from pcbnew import EDA_ANGLE
Use:
from pcbnewTransition import pcbnew
from pcbnewTransition.pcbnew import EDA_ANGLE
And then, use the API for KiCAD 8. In case you need to distinguish the versions, 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.4.0.tar.gz
(21.9 kB
view hashes)
Built Distribution
Close
Hashes for pcbnewTransition-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d06892da3506caf67f077c4626d671612040643fe669c0d00d6f264558eab9b |
|
MD5 | 12d1d31e503612152b0b6c7948630107 |
|
BLAKE2b-256 | 20bb68839aec1df198058aa3d0aa35f5c61a3b8a03a8581e9a823293b2442e7d |