A Python script that convert any electronic components from LCSC or EasyEDA to a Kicad library
Project description
easyeda2kicad v0.2.0
A Python script that convert any electronic components from EasyEDA or LCSC to a Kicad library including 3D model in color.
Installation
pip install easyeda2kicad
The script uses only one external library pydantic for data validation.
Usage
# For symbol + footprint + 3d model (with --full argument)
easyeda2kicad --full --lcsc_id=C2040
# For symbol + footprint + 3d model
easyeda2kicad --symbol --footprint --3d --lcsc_id=C2040
# For symbol + footprint
easyeda2kicad --symbol --footprint --lcsc_id=C2040
# For symbol only
easyeda2kicad --symbol --lcsc_id=C2040
# For footprint only
easyeda2kicad --footprint --lcsc_id=C2040
# For 3d model only
easyeda2kicad --3d --lcsc_id=C2040
By default, all librairies are saved in C:/Users/your_name/Documents/Kicad/easyeda2kicad/
, with :
easyeda2kicad.lib
for symbol libraryeasyeda2kicad.pretty/
for footprint librarieseasyeda2kicad.3dshapes/
for 3d models
If you want to save components symbol/footprint in your own libs, you can specify the output lib path by using --output
option.
easyeda2kicad --full --lcsc_id=C2040 --output ~/libs/my_lib
This command will save:
- the symbol in
~/libs/my_lib.lib
file for symbol library. The file will be created if it doesn't exist. - the footprint in
~/libs/my_lib.pretty/
folder for footprint libraries. The folder will be created if it doesn't exist. - the 3d models in
~/libs/my_lib.3dshapes/
folder for 3d models. The folder will be created if it doesn't exist.
You can use the option --overwrite
to update a component symbol/footprint that is already in a Kicad library (generated by easyeda2kicad)
easyeda2kicad --symbol --footprint --lcsc_id=C2040 --output ~/libs/my_lib --overwrite
Add libraries in Kicad
These are the instructions to add the default easyeda2kicad libraries in Kicad. Before configuring KiCad, run at least once time the script to create lib files. For example :
easyeda2kicad --symbol --footprint --lcsc_id=C2040
- In KiCad, Go to Preferences > Configure Paths, and add the environment variables
EASYEDA2KICAD
:- Windows :
C:/Users/your_username/Documents/Kicad/easyeda2kicad/
, - Linux :
/home/your_username/Documents/Kicad/easyeda2kicad/
- Windows :
- Go to Preferences > Manage Symbol Libraries, and Add the global library
easyeda2kicad
:${EASYEDA2KICAD}/easyeda2kicad.lib
- Go to Preferences > Manage Footprint Libraries, and Add the global library
easyeda2kicad
:${EASYEDA2KICAD}/easyeda2kicad.pretty
- Enjoy :wink:
Inspirations
- KiPart - A utility that generates single and multi-unit symbols from a CSV file containing all the pin information for one or more parts.
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
Built Distribution
File details
Details for the file easyeda2kicad-0.2.0.tar.gz
.
File metadata
- Download URL: easyeda2kicad-0.2.0.tar.gz
- Upload date:
- Size: 34.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16b8e84ab36b5ddb85f179047b306d809baafef68bf435e148800fef7d587e25 |
|
MD5 | 4b910c516f4113a7ff93e9188174bdb5 |
|
BLAKE2b-256 | eb06d73f84553d8de1763823c0b6ba65b36ba06306f1ba25240c4790ea3ec7f7 |
File details
Details for the file easyeda2kicad-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: easyeda2kicad-0.2.0-py3-none-any.whl
- Upload date:
- Size: 35.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0cc33c95fc29fa871cb8a426666e8df726a902b6e4cef82a45a8cea6e7c0fc2 |
|
MD5 | 5b71c71018b0e965265db3ba3117783a |
|
BLAKE2b-256 | 09214253e6c90c9e61c2cf88971d17b717ea40442973ce2db7f0fb7a8c928410 |