parts2jitx
Import electronic part data and convert it to JITX Python component code.
Supports LCSC/EasyEDA part lookup and KiCad footprint conversion.
Install
pip install parts2jitx
CLI Tools
parts2jitx-lcsc
Look up LCSC/JLCPCB parts: real-time stock, pricing, datasheet URLs, and KiCad footprint download via EasyEDA.
# Check stock and pricing
parts2jitx-lcsc C165948
# Download KiCad footprint
parts2jitx-lcsc C165948 --footprint -o usb_c.kicad_mod
# Get pinout data
parts2jitx-lcsc C165948 --pinout
# Everything at once (JSON output)
parts2jitx-lcsc C165948 --all -o usb_c.kicad_mod --json
parts2jitx-kicad
Convert KiCad .kicad_mod footprint files to JITX Python component code. Works with any .kicad_mod file — not just ones from LCSC/EasyEDA.
# Basic conversion
parts2jitx-kicad footprint.kicad_mod
# With metadata
parts2jitx-kicad footprint.kicad_mod \
--class-name USB_C_16P \
--manufacturer "Molex" \
--mpn "2012670005" \
-o components/connectors/molex_2012670005.py
# From stdin
echo '(footprint ...)' | parts2jitx-kicad --stdin
# Debug: dump parsed pad data as JSON
parts2jitx-kicad footprint.kicad_mod --dump-pads
Full pipeline example
# 1. Download footprint from LCSC
parts2jitx-lcsc C165948 --footprint -o kicad_footprints/usb_c.kicad_mod
# 2. Convert to JITX component
parts2jitx-kicad kicad_footprints/usb_c.kicad_mod \
--class-name USB_C_16P \
--manufacturer "Korean Hroparts Elec" \
--mpn "TYPE-C-31-M-12" \
-o src/components/connectors/usb_c_16p.py
Python API
from parts2jitx.lcsc_lookup import lcsc_stock, get_footprint, get_pinout
# Stock and pricing
info = lcsc_stock("C165948")
print(info["mpn"], info["stock"], info["prices"])
# Download footprint
kicad_content = get_footprint("C165948", output_path="usb_c.kicad_mod")
# Get pinout
pins = get_pinout("C165948")
for pin in pins:
print(pin["number"], pin["name"])
License
MIT
Metadata
Release files for parts2jitx 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| parts2jitx-0.2.1.tar.gz | 29.2 kB | Without provenance | Details for parts2jitx-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| parts2jitx-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for parts2jitx-0.2.1-py3-none-any.whl |
Total release size: 51.8 kB
Release files / parts2jitx-0.2.1.tar.gz
| Download URL | parts2jitx-0.2.1.tar.gz |
|---|---|
| Size | 29.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d3dfab3624684de0ea26b3cc5b7f46d45299a4a5844c8663d5e6411c56b2b7a
|
|
BLAKE2b-256 checksum How to use checksums |
6f45d7aa6597b662e39af0203326ec5065caf209226a668f2a214f20bad867ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Release files / parts2jitx-0.2.1-py3-none-any.whl
| Download URL | parts2jitx-0.2.1-py3-none-any.whl |
|---|---|
| Size | 22.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e78e7372ea315b8898143cdda28917e12d193578113d871374add06cdbaebfd
|
|
BLAKE2b-256 checksum How to use checksums |
e88450d845378863a96376c1bb716714c194120589e08ed8732f9e17ab90b644
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Security for parts2jitx 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.