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.2.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

pcbnewTransition-0.4.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file pcbnewTransition-0.4.2.tar.gz.

File metadata

  • Download URL: pcbnewTransition-0.4.2.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pcbnewTransition-0.4.2.tar.gz
Algorithm Hash digest
SHA256 7c53b32fcd26f763dc17d482e8d67af4e52e1099f5b25fa6595163468ae14b83
MD5 078c2b73a503b08cefdb6bec434765f8
BLAKE2b-256 c653d7295b5a8e5a2f248cf23b2fffbf19374e9b01b96e2be98e11b6b4c44848

See more details on using hashes here.

File details

Details for the file pcbnewTransition-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pcbnewTransition-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dcbfb30b4f8dba0fccca28c50f0d6cc2521900805a52bf6e47f3d3774ca60e7e
MD5 38322944970de2950a9e42aded1a4353
BLAKE2b-256 2e341071c3f603bc69020ca4af20f3a6d8582e4ec5a8f06943e234c96ca7f7a4

See more details on using hashes here.

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