Skip to main content

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

Project description

easyeda2kicad v0.2.1


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


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

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 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.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/
  • 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


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.2.1.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

easyeda2kicad-0.2.1-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: easyeda2kicad-0.2.1.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for easyeda2kicad-0.2.1.tar.gz
Algorithm Hash digest
SHA256 bcd574ec663fe835b8a39acf62ab98a45e7e0dac2b44b9dc548e6f9774a1aa53
MD5 f49a8703e6bef542e6baad12dfefa22c
BLAKE2b-256 20679fb84d66ff1f91ed6ba4a02bb8e8f41566f4ad077f03c5579e0acd87d13c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for easyeda2kicad-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 465345634ac2a51d98176bd72c3f73eae141998338a34ee54dacfbd345fe11b2
MD5 cd46741473875c82528d2123d6a696e7
BLAKE2b-256 44d68bfa89ba30923321a4d0abfb6a050ef87b8d45bb397250b8685b9a5c902d

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