# 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:
```python
import pcbnew
from pcbnew import EDA_ANGLE
```
Use:
```python
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:
```python
from pcbnewTransition import KICAD_VERSION, isV6
if isV6():
# something...
```
Raw data
{
"_id": null,
"home_page": "https://github.com/yaqwsx/pcbnewTransition",
"name": "pcbnewTransition",
"maintainer": null,
"docs_url": null,
"requires_python": ">3.7",
"maintainer_email": null,
"keywords": null,
"author": "Jan Mr\u00e1zek",
"author_email": "email@honzamrazek.cz",
"download_url": "https://files.pythonhosted.org/packages/c6/53/d7295b5a8e5a2f248cf23b2fffbf19374e9b01b96e2be98e11b6b4c44848/pcbnewTransition-0.4.2.tar.gz",
"platform": null,
"description": "# Pcbnew Transition\n\nThis library allows you to easily support KiCAD 8, 7 and 6 in your KiCAD\nplugins. It basically monkeypatches KiCAD Python module, so it matches KiCAD 8\nAPI.\n## Usage\n\nInstead of:\n\n```python\nimport pcbnew\nfrom pcbnew import EDA_ANGLE\n```\n\nUse:\n\n```python\nfrom pcbnewTransition import pcbnew\nfrom pcbnewTransition.pcbnew import EDA_ANGLE\n```\n\nAnd then, use the API for KiCAD 8. In case you need to distinguish the versions,\nyou can:\n\n```python\nfrom pcbnewTransition import KICAD_VERSION, isV6\n\nif isV6():\n # something...\n```\n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Library that allows you to support both, KiCAD 5 and KiCAD 6 in your plugins",
"version": "0.4.2",
"project_urls": {
"Homepage": "https://github.com/yaqwsx/pcbnewTransition"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2e341071c3f603bc69020ca4af20f3a6d8582e4ec5a8f06943e234c96ca7f7a4",
"md5": "38322944970de2950a9e42aded1a4353",
"sha256": "dcbfb30b4f8dba0fccca28c50f0d6cc2521900805a52bf6e47f3d3774ca60e7e"
},
"downloads": -1,
"filename": "pcbnewTransition-0.4.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "38322944970de2950a9e42aded1a4353",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">3.7",
"size": 6954,
"upload_time": "2024-08-21T12:54:26",
"upload_time_iso_8601": "2024-08-21T12:54:26.558230Z",
"url": "https://files.pythonhosted.org/packages/2e/34/1071c3f603bc69020ca4af20f3a6d8582e4ec5a8f06943e234c96ca7f7a4/pcbnewTransition-0.4.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c653d7295b5a8e5a2f248cf23b2fffbf19374e9b01b96e2be98e11b6b4c44848",
"md5": "078c2b73a503b08cefdb6bec434765f8",
"sha256": "7c53b32fcd26f763dc17d482e8d67af4e52e1099f5b25fa6595163468ae14b83"
},
"downloads": -1,
"filename": "pcbnewTransition-0.4.2.tar.gz",
"has_sig": false,
"md5_digest": "078c2b73a503b08cefdb6bec434765f8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">3.7",
"size": 24975,
"upload_time": "2024-08-21T12:54:28",
"upload_time_iso_8601": "2024-08-21T12:54:28.374544Z",
"url": "https://files.pythonhosted.org/packages/c6/53/d7295b5a8e5a2f248cf23b2fffbf19374e9b01b96e2be98e11b6b4c44848/pcbnewTransition-0.4.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-21 12:54:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yaqwsx",
"github_project": "pcbnewTransition",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pcbnewtransition"
}