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.1.tar.gz
(21.9 kB
view hashes)
Built Distribution
Close
Hashes for pcbnewTransition-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6e1af7b1b70a163798d3a5083b227eb5500e0c41e19886360ebf56a5bb8b183 |
|
MD5 | 7cdd33943a97e018ced8c0a8f50a528b |
|
BLAKE2b-256 | 672b2f38fe82a579a76df9020e5b20888405631a2eb88b2de6a9bb18938e2230 |