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 Appsoperation - Create a production app
- Choose a
Production App name - Use
https://localhost:8139/digikey_callbackfor the OAuth Callback. So you can authorize the use of the app. - Give a description
- Enable the
Product InformationAPI - Click
Add production app
- Choose a
- Now select your newly created
Production App - In the
Credentialsection enable the options to show theClient IDandClient Secret - Copy these values to a file named
config.txtcontaining:
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_v4 - 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-v4.git - Enter to
kicost-digikey-api-v4 - 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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kicost_digikey_api_v4-0.1.3.tar.gz.
File metadata
- Download URL: kicost_digikey_api_v4-0.1.3.tar.gz
- Upload date:
- Size: 66.3 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 |
41eafa55197fdbf1c18b2cfb152219e40a913c1d33f783e0ea6b03cd267e37b0
|
|
| MD5 |
447faef1cc245e0ccdf1167dc8eca252
|
|
| BLAKE2b-256 |
a58f6c232978c8ea748baa0ffec03a5d37a6544782c696e680e4e3bf30962d47
|
File details
Details for the file kicost_digikey_api_v4-0.1.3-py3-none-any.whl.
File metadata
- Download URL: kicost_digikey_api_v4-0.1.3-py3-none-any.whl
- Upload date:
- Size: 148.7 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 |
03c7908a74a4ef9ba6a6a7ac7751052d92aaa01e4560bfd7860a3bb33e941ba4
|
|
| MD5 |
f24cc40cb840cb30c0b60ed5794bb15b
|
|
| BLAKE2b-256 |
56d05120a77888683549fe2d6e671e7674a80cbac630c25111648f7506f38e86
|