Skip to main content

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
JLCSchematic KiCadSchematic
JLCFootprint KiCadFootprint
JLC3Dmodel KiCad3Dmodel

Installation

pip install JLC2KiCadLib

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_path_relative
                        use --model_path_relative if you want the 3D model to be linked to the footprint using relative instead of absolute path, default is absolute
  --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

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.

License

Copyright © 2021 TousstNicolas

The code is released under the MIT license

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

JLC2KiCadLib-1.0.5.tar.gz (12.7 kB view details)

Uploaded Source

Built Distributions

JLC2KiCadLib-1.0.5-py3.10.egg (32.6 kB view details)

Uploaded Source

JLC2KiCadLib-1.0.5-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file JLC2KiCadLib-1.0.5.tar.gz.

File metadata

  • Download URL: JLC2KiCadLib-1.0.5.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for JLC2KiCadLib-1.0.5.tar.gz
Algorithm Hash digest
SHA256 83d8801cf6be4e59ce89649e07017423325fc9053d165113635fec029f74ed09
MD5 fdffc48d7b6a4efc1ea6553178ab416e
BLAKE2b-256 7be7db66e8e7e3ce1b13a26ee5930dcc45206b481de93d949bbe3298acd9803b

See more details on using hashes here.

File details

Details for the file JLC2KiCadLib-1.0.5-py3.10.egg.

File metadata

  • Download URL: JLC2KiCadLib-1.0.5-py3.10.egg
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for JLC2KiCadLib-1.0.5-py3.10.egg
Algorithm Hash digest
SHA256 bdd81c4b0f5922478dbdf6075c5f2ccac308fd0e7f9c15c40ae47f9b6aeaba83
MD5 e922052935ea664e1462267b8d08e9fa
BLAKE2b-256 56c3d93828aea9b58a5b106af64474f4de91b3263dc161ca2910d212cfa1691e

See more details on using hashes here.

File details

Details for the file JLC2KiCadLib-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for JLC2KiCadLib-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 76fe6a186ae76c49f99e0b4c138792e7ad84e392f71aa9760cd6765f79c6c794
MD5 b1b2f5f86a88e0029a3abfe935eb99f4
BLAKE2b-256 76bad361bc124f228593e9363cbde21cffd373d3bbb62995263b4dc78c7b7174

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