Skip to main content

A Python script that convert any electronic components from LCSC or EasyEDA to a Kicad library

Project description

easyeda2kicad v0.5.4


PyPI version License Downloads Python versions Git hook: pre-commit Code style: black Imports: isort security: bandit


A Python script that convert any electronic components from EasyEDA or LCSC to a Kicad library including 3D model in color. This tool will speed up your PCB design workflow especially when using JLCPCB SMT assembly services. It supports library format for both Kicad v6.x and Kicad v5.x.

🎆 Sponsor and Support

A big thanks to JLCPCB for sponsoring this project !

If this tool save you a lot of time when designing a PCB, please consider to support the project by :

💾 Installation

pip install easyeda2kicad

💻 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
# For symbol in Kicad v5.x legacy format
easyeda2kicad --symbol --lcsc_id=C2040 --v5

By default, all librairies are saved in C:/Users/your_name/Documents/Kicad/easyeda2kicad/, with :

  • easyeda2kicad.kicad_sym for Kicad v6.x symbol library
  • easyeda2kicad.lib for Kicad v5.x legacy symbol library
  • easyeda2kicad.pretty/ for footprint libraries
  • easyeda2kicad.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.kicad_sym 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

By default, easyeda2kicad will generate a symbol library for Kicad v6.x (.kicad_sym). You can generate a symbol lib in legacy format for Kicad v5.x (.lib) using --v5 argument.

easyeda2kicad --symbol --lcsc_id=C2040 --v5

🔗 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/
  • Go to Preferences > Manage Symbol Libraries, and Add the global library easyeda2kicad : ${EASYEDA2KICAD}/easyeda2kicad.kicad_sym
  • Go to Preferences > Manage Footprint Libraries, and Add the global library easyeda2kicad : ${EASYEDA2KICAD}/easyeda2kicad.pretty
  • Enjoy :wink:

🔥 Important Notes

WARRANTY

The correctness of the symbols and footprints converted by easyeda2kicad can't be guaranteed. Easyeda2kicad speed up custom library design process, but you should kept careful and always double check the footprints and symbols generated.

Usage

  • We FORBID the illegal use of converting others files and libraries with the distribution of this program.
  • We FORBID the use that is outside the EasyEDA Terms of Use with the distribution of this program.

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

easyeda2kicad-0.5.4.tar.gz (41.0 kB view details)

Uploaded Source

Built Distribution

easyeda2kicad-0.5.4-py3-none-any.whl (42.5 kB view details)

Uploaded Python 3

File details

Details for the file easyeda2kicad-0.5.4.tar.gz.

File metadata

  • Download URL: easyeda2kicad-0.5.4.tar.gz
  • Upload date:
  • Size: 41.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for easyeda2kicad-0.5.4.tar.gz
Algorithm Hash digest
SHA256 5ede696f8cc527a2032b79727e03728dcdd12377fbb412e38455e304197e4950
MD5 838945cf389a33d34bd758a6c2087d18
BLAKE2b-256 7a6090bf84a2d75a11c5e0add8e5f4c22f5edd103f023c3ff7c289933d9c2722

See more details on using hashes here.

File details

Details for the file easyeda2kicad-0.5.4-py3-none-any.whl.

File metadata

File hashes

Hashes for easyeda2kicad-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1ed0712d2758bb072ca78baa4dba7b5d5c44fe3272ff5f104953b888e54fc53c
MD5 4defb2853d03a57b775c4415c43e84f4
BLAKE2b-256 507ecfd74e18d8875776342a734973ec015c85dc3edfb045be6443ac09c71b0f

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