Skip to main content

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

Metadata

Release files for kicost-digikey-api-v4 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kicost-digikey-api-v4 0.1.6
File Size Uploaded Provenance Actions
kicost_digikey_api_v4-0.1.6.tar.gz 66.8 kB Without provenance Details for kicost_digikey_api_v4-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kicost-digikey-api-v4 0.1.6
File Interpreter ABI Platform Actions
kicost_digikey_api_v4-0.1.6-py3-none-any.whl Python 3 none any Details for kicost_digikey_api_v4-0.1.6-py3-none-any.whl

Total release size: 216.0 kB

Release files / kicost_digikey_api_v4-0.1.6.tar.gz

Download URL kicost_digikey_api_v4-0.1.6.tar.gz
Size 66.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2ee5da9cad25b73090edc9c5339bfa0dd307cbe0b79be4a3c7c12dd629e026cb
BLAKE2b-256 checksum
How to use checksums
c7ce88add85e52af2c1cd27409c678a92c76732a3781d0f2e561ea8a281f0ff8
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / kicost_digikey_api_v4-0.1.6-py3-none-any.whl

Download URL kicost_digikey_api_v4-0.1.6-py3-none-any.whl
Size 149.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61d56e7eff7c1d25fc47097703e64080935411fa1154378c65ff34ff9e48d71d
BLAKE2b-256 checksum
How to use checksums
623c207759ca7db15e44afaddf098e10d030f07334ebc3b50e1e89772ceca9ec
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for kicost-digikey-api-v4 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page