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.3.4.tar.gz
(21.6 kB
view hashes)
Built Distribution
Close
Hashes for pcbnewTransition-0.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0cbd7849739635830039b4203036352b1ec766ce828bdec4d0b995f7961c5c3 |
|
MD5 | 6b101988d133645577ddeae39bdbf93d |
|
BLAKE2b-256 | e28ca65bb7905ab9564c976abfcdffd109dbd9417a6f2efe709af78cdf8881b5 |