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 KiCAD 8, 7 and 6 in your KiCAD plugins. It basically monkeypatches KiCAD Python module, so it matches KiCAD 8 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.2.tar.gz
(25.0 kB
view hashes)
Built Distribution
Close
Hashes for pcbnewTransition-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcbfb30b4f8dba0fccca28c50f0d6cc2521900805a52bf6e47f3d3774ca60e7e |
|
MD5 | 38322944970de2950a9e42aded1a4353 |
|
BLAKE2b-256 | 2e341071c3f603bc69020ca4af20f3a6d8582e4ec5a8f06943e234c96ca7f7a4 |