Skip to main content

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
  • Now select your newly created Production App
  • In the Credential section enable the options to show the Client ID and Client 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_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 .
  • 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

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

kicost_digikey_api_v4-0.1.4.tar.gz (66.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kicost_digikey_api_v4-0.1.4-py3-none-any.whl (148.7 kB view details)

Uploaded Python 3

File details

Details for the file kicost_digikey_api_v4-0.1.4.tar.gz.

File metadata

  • Download URL: kicost_digikey_api_v4-0.1.4.tar.gz
  • Upload date:
  • Size: 66.4 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

Hashes for kicost_digikey_api_v4-0.1.4.tar.gz
Algorithm Hash digest
SHA256 51506a6b4fde3c536e357d1ec2cf1f444f02225abe7a798a7fd21fdf81bbff8a
MD5 5da50315269d5ec6d10d0960c63ded57
BLAKE2b-256 2b18279d27ce5a963ef57b9413800f23f06a4b88b7971b977f6076536d80a13d

See more details on using hashes here.

File details

Details for the file kicost_digikey_api_v4-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: kicost_digikey_api_v4-0.1.4-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

Hashes for kicost_digikey_api_v4-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8d36de8d5b722e268ab0a23c0ce0a949c5de36da8a376d75b48cb1ad72bb4be2
MD5 08e9b305a1e2dda3cb9f6ce6fae976ff
BLAKE2b-256 38abfa113b64482d1284035df0b731767d90fc2f6c7a8e50811dfd6f66c4a121

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page