Skip to content
Snippets Groups Projects

pcb-laserstation

Digikey part search tool

This tool provides the automated fetching of price and availability information for the BOM file. It uses the Digikey API. Follow the steps to use this tool.

  1. Install the required Python modules
  2. Sign up for the Digikey API, create an application for using the part searching API. See https://github.com/peeter123/digikey-api for more information on the Python module used for the Digikey API access.
  3. Rename the file "digikey_parts_no_values.json" to "digikey_parts.json" and enter the API information
  4. In the same folder, create a "digikey" subfolder which is used by the Digikey Python module cache.
  5. Export the BOM in ods or xlsx format. In row 1, the column header "DIGIKEY" marks the column with Digikey part numbers. If a Digikey part number is not available in a row, it is skipped. Column header "Qty" must be filled in. Column headers "DIGIKEY_PRICE" and "DIGIKEY_STOCK" must exist and are filled in by this tool.
  6. Use this tool by typing 'python3 digikey_parts.py "LaserStation.ods" "10 100"'. This also calculates the total price for a total of 10 and 100 manufactured units (USD).