Skip to main content

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


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)

Uploaded Source

Built Distribution

pcbnewTransition-0.4.1-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page