Integrate (add) symbols, footprints and 3D models from a SamacSys Partlib zip archive (as downloaded for instance from Mouser or Farnell) into local KiCad libraries quickly and without additional steps
Project description
parts2kicad
Extracts KiCad symbols, footprints and 3D models from SamacSys partlib zip files as you download them for instance via Mouser or Farnell.
If you have a zip file containing the component X123 this is achieved as follows.
X123.kicad_sym(schematic symbol) → gets added tomylibrary.kicad_symX123.kicad_mod(pcb footprint) → gets copied tomylibrary.pretty/X123.kicad_modX123.stp(3D model) → gets copied tomylibrary.3dshapes/X123.stp
So that you can keep all your downloaded stuff together at one place and do not have to fiddle inside the symbol libraries by yourself.
The path to the 3D model in the footprint file is set to a relative path of the form ../mylibrary.3dshapes/X123.stp.
Thus, you can move your lib freely around your hard drive. Only if you rename it, the links from footprint to 3D model break.
The script is mainly intended for Unixoid users (the official downloading tool only runs on Windows) and those who prefer command line over graphical UI.
Installation
So far via PyPi: pip install parts2kicad.
Usage
Usage is as easy as typing
$ p2k some.zip -t mylibrary.kicad_sym
You can also glob over a bunch of zip archives:
$ p2k ~/downloads/*.zip -t mylibrary.kicad_sym
Project Pages
Technical Background
All in all the main ingredient is a whitespace aware S-Expression parser. It is needed
for adding Symbols to the .kicad_sym library files without destroying the format.
The format is normally (and also by KiCad specification) nicely indented, so
that manual editing is also possible. Footprints and 3D models are luckily
managed on file level.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file parts2kicad-0.1.4.tar.gz.
File metadata
- Download URL: parts2kicad-0.1.4.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f68ad484e2a5857581bba2646abffbeba943190b6cc1faa065444abe01059525
|
|
| MD5 |
393dc649c83d690ad4f2423d53e38e76
|
|
| BLAKE2b-256 |
afef856d32a7ffdb56cae70a5bf9e4d872220606d93924c955f443f2740b9488
|
File details
Details for the file parts2kicad-0.1.4-py3-none-any.whl.
File metadata
- Download URL: parts2kicad-0.1.4-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9de8c74376bb329ef1354182ab93e4459e7364c0ad84931669a7751d74bdae77
|
|
| MD5 |
fca00cec77f8061883e2fa3ea62e0f07
|
|
| BLAKE2b-256 |
3dea9237a5400fc5c80e1ef14c2b7dd6e976150b32a4a5715fa4c4a73592180b
|