wholeboard.jlc.parts¶
Look up and search JLCPCB/LCSC parts: stock, library type and price breaks.
Primary source: the parts search JLCPCB's own website uses (no login needed). Fallback for single-part lookups: the community jlcsearch.tscircuit.com mirror. Results are cached for a day under ~/.wholeboard.
search(keyword, limit=10, in_stock=True)
¶
Search JLCPCB's parts library by MPN, LCSC number or keywords.
JLCPCB's search matches part numbers best and gives up on long phrases, so when a query finds nothing in stock it is retried with fewer words.
lookup(lcsc, fresh=False)
¶
Details for one LCSC part number such as 'C6186'. fresh skips the day-old cache (live stock).
parse_value(text)
¶
'10k' -> 10000, '4k7' -> 4700, '100nF' -> 1e-7, '0R' -> 0, '2.2uF' -> 2.2e-6.
find_passive(kind, value, package='0603', limit=5)
¶
In-stock resistors, capacitors or LEDs by value (or LED colour) and package.
Candidates come from the jlcsearch mirror's category filters; stock and price are then confirmed live at JLCPCB.