JLC2KiCad_lib is a python script that generate a component library (schematic, footprint and 3D model) for KiCad from the JLCPCB/easyEDA library.
Project description
JLC2KiCadLib
JLC2KiCadLib is a python script that generate a component library (schematic, footprint and 3D model) for KiCad from the JLCPCB/easyEDA library. This script requires Python 3.6 or higher.
Exemple
easyEDA origin | KiCad result |
---|---|
Installation
Install using pip:
pip install JLC2KiCadLib
Install from source:
git clone https://github.com/TousstNicolas/JLC2KiCad_lib.git
cd JLC2KiCad_lib
pip install .
Usage
positional arguments:
JLCPCB_part_# list of JLCPCB part # from the components you want to create
options:
-h, --help show this help message and exit
-dir OUTPUT_DIR base directory for output library files
-model_base_variable MODEL_BASE_VARIABLE
use -model_base_variable if you want to specifie the base path of the 3D model using a path variable
--no_footprint use --no_footprint if you do not want to create the footprint
--no_schematic use --no_schematic if you do not want to create the schematic
-schematic_lib SCHEMATIC_LIB
set schematic library name, default is "default_lib"
-footprint_lib FOOTPRINT_LIB
set footprint library name, default is "footprint"
-logging_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
set logging level. If DEBUG is used, the debug logs are only written in the log file if the option --log_file is set
--log_file use --log_file if you want logs to be written in a file
--skip_existing use --skip_existing if you want to skip the creation of a symbol/footprint if they already exist
Example usage : JLC2KiCadLib C1337258 C24112 -dir My_lib -schematic_lib My_Schematic_lib
This example will create the schematic, footprint and 3D model for the two components specified, and will output the schematic in the ./My_lib/Schematic/My_Schematic_lib.lib
file, the footprint and 3D model will be created in the ./My_lib/Footprint
.
The JLCPCB part # is found in the part info section of every component in the JLCPCB part library.
By default, the library folder will be created in the execution folder. You can specify an absolute path with the -dir option.
Dependencies
This script use the KicadModTree framework to write the footprints.
Notes
- Even so I tested the script on a lot of components, be careful and always check the output footprint and schematic.
- I consider this project completed. I will continue to maintain it if a bug report is filed, but I will not develop new functionality in the near future. If you feel that an important feature is missing, please open an issue to discuss it, then you can fork this project with a new branch before submitting a PR.
License
Copyright © 2021 TousstNicolas
The code is released under the MIT license
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 JLC2KiCadLib-1.0.20.tar.gz
.
File metadata
- Download URL: JLC2KiCadLib-1.0.20.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 573a5b58cfc06725a3896432b8afba6ab25a304be3152899841d716aee910e25 |
|
MD5 | 1dbf1cefe3b2847e933e27b7ddadd8ee |
|
BLAKE2b-256 | b7786b36934e0888bc20ec6665e59eaa5453ebd8fb0c9d3ddbd70c3e13fcb70a |
File details
Details for the file JLC2KiCadLib-1.0.20-py3-none-any.whl
.
File metadata
- Download URL: JLC2KiCadLib-1.0.20-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee3557776a35d2cda51006b9b5246163a5e3b0d0dd13c18f74575a300fb78b37 |
|
MD5 | c3594501cbff082ece2170501cdba536 |
|
BLAKE2b-256 | 2bfd5a626b22cb28f0e05b7bac17b0bfbc909f5cab67196d48694ffeb518ed7b |