AeybelV / PartPal

A tool for generating, optimizing, management, and sharing of Bills of Materials (BOMs). Integrates with EDA tools to streamline component sourcing and assembly workflows.
GNU General Public License v3.0
5 stars 0 forks source link

Digikey API (#4) #13

Closed AeybelV closed 2 months ago

AeybelV commented 2 months ago

Adds the functionality to query Digi-Key for detailed product information with a part number. The implemented feature allows to retrieve essential data about components directly using Digi-Key's API, including pricing, stock availability, and other relevant details.

Implemented a Distributor that uses the Digi-Key ProductSearch API to fetch product details, and is located in partpal/distributors/digikey.py. The class inherits from the Distributor base class, ensuring consistency with other distributors that may be added in the future. The class handles both production and sandbox environments, allowing for safe testing and production use

Added unit tests for the DigiKeyDistributor class to verify the correct functionality of the product information querying. These can be found in tests/distributor