A CLI to ease importing Digikey parts into an Inventree instance.
pip install inventree_digikey_integration
git clone git@github.com:EUdds/digikey-inventree-integration.git
cd digikey-inventree-integration
poetry install
Create a config.ini file according to the template and specify it's location with the -c <path>
flag
[DIGIKEY_API]
CLIENT_ID=
CLIENT_SECRET=
[INVENTREE_API]
URL=<URL to the inventree instance>
USER=
PASSWORD=
Invoke the cli by running import_digikey_parts
usage: import_digikey_parts [-h] [-y] [-c CONFIG] query_numbers [query_numbers ...]
Import Digikey part numbers into InvenTree
positional arguments:
query_numbers Part number(s) to import
optional arguments:
-h, --help show this help message and exit
-y, --yes Bypass user prompts and assume "yes"
-c CONFIG, --config CONFIG
Path to config file
Run the test suite by running poetry run pytest