Giter Site home page Giter Site logo

mundodisco8 / kicost-digikey-api-v3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from set-soft/kicost-digikey-api-v3

0.0 0.0 0.0 175 KB

KiCost plugin for the Digikey PartSearch API

License: GNU General Public License v3.0

Python 99.95% Makefile 0.05%

kicost-digikey-api-v3's Introduction

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_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 .
  • 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

kicost-digikey-api-v3's People

Contributors

set-soft avatar peeter123 avatar funkenjaeger avatar davepeake avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.