This directory contains Python examples calling the PartFuse API using requests (sync) and httpx (async).
-
Environment:
cp ../.env.example .env # Edit .env and set your PARTFUSE_RAPIDAPI_KEY -
Install Dependencies:
pip install -r requirements.txt
Run the examples as modules:
# Search
python -m partfuse_examples.search "STM32F4" --limit 3
# Single Part Compare
python -m partfuse_examples.compare "LM317T" --qty 50
# BOM Compare
# Reads bom.json by default
python -m partfuse_examples.bompartfuse_examples/client.py: Reusable client wrapper with error handling.partfuse_examples/*.py: CLI entrypoints.