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
JLC1 JLC1
JLC1 JLC1
JLC1 JLC1

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.py 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 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.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

JLC2KiCadLib-1.0.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: JLC2KiCadLib-1.0.0.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for JLC2KiCadLib-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1015f57787c68924ee5c6ac8878ea2951a22c61cc3d5d5c045151ffe8cc37362
MD5 f3d966abec03c1d3336fd4614e1c8ab7
BLAKE2b-256 6659d8b8998370449e1ec6f134226918a59feba1828fd5c4d4d687a855313338

See more details on using hashes here.

File details

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

File metadata

  • Download URL: JLC2KiCadLib-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for JLC2KiCadLib-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 527d73cd191eb81cc70f395dcaf01c43222ef3a700e5f598de3dbdd7785e6c9f
MD5 d18f1e7c62b8010a3d5187fcbace7979
BLAKE2b-256 92238d341fe4015f7a8a0d6d8a2902ea548e08c2d731d7fcc83fb0370f1ee0db

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