KiCost plugin for the Digikey PartSearch API
Project description
KiCost plug-in for Digi-Key API
This is an experimental plug-in to allow KiCost to do native Digi-Key API requests.
The plug-in is based on the Python Client for Digikey API by Peter Oostewechel.
I'm not using the original project as a module because it pulls some rare dependencies.
The license is GPL v3 as the original work.
Quickstart
- Register at Digi-Key. You need a valid user in order to register an application and in order to authenticate.
- Go to the API portal: Digi-Key API Solutions
- Login to Digi-Key from the API portal
- Create an organization
- Choose the
Production Apps
operation - Create a production app
- Choose a
Production App name
- Use
https://localhost:8139/digikey_callback
for the OAuth Callback. So you can authorize the use of the app. - Give a description
- Enable the
Product Information
API - Click
Add production app
- Choose a
- Now select your newly created
Production App
- In the
Credential
section enable the options to show theClient ID
andClient Secret
- Copy these values to a file named
config.txt
containing:
DIGIKEY_CLIENT_ID = Client_ID_Value_for_your_app
DIGIKEY_CLIENT_SECRET = Client_Secret_Value_for_your_app
- Create a folder
~/.config/kicost_digikey_api_v3
- Store the config.txt file
- Now install the plug-in:
- Clone the git repo somewhere using
git clone https://github.com/set-soft/kicost-digikey-api-v3.git
- Enter to
kicost-digikey-api-v3
- Install it using
pip3 install -e .
- Clone the git repo somewhere using
- Now test the plug-in:
- run
python3 test_production.py
- A browser window will pop-up asking to login to Digi-Key. Login.
- Choose the allow option to enable the token.
- Now you'll load a local page, allow it.
- Now the token is stored on disk and you won't need to confirm it for months.
- You should get the information for Digi-Key part 296-6501-6-ND
- run
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kicost_digikey_api_v3-0.1.3.tar.gz
.
File metadata
- Download URL: kicost_digikey_api_v3-0.1.3.tar.gz
- Upload date:
- Size: 54.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5d78404e8c610b94281719f03f7393bb4dd3b596c8938c27f896b170f7c8c54 |
|
MD5 | 40b7291fd1c836bd43ed8cfea0968eed |
|
BLAKE2b-256 | 2c9eea8afea3ef3ad683596af556a4b4a9c189b45abfc7cb57545ce1cffbdb4a |
File details
Details for the file kicost_digikey_api_v3-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: kicost_digikey_api_v3-0.1.3-py3-none-any.whl
- Upload date:
- Size: 97.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1966b8203bf063f6d6144a91870ad21a61338e39d527089434f1353ceeac035 |
|
MD5 | d88de329c8528d41e9fed89f4ec510f8 |
|
BLAKE2b-256 | f6f55931b0249ecc5589d2c56e4e30e2e62770ba491d0ed1efcdf6d659fe286d |