alkgrove / partlocater Goto Github PK
View Code? Open in Web Editor NEWFind a part on Digi-Key and import parameters into local database
License: MIT License
Find a part on Digi-Key and import parameters into local database
License: MIT License
Let's say hypothetically you wanted the most bang for your buck when shopping for capacitors. You could sort DigiKey parametricly by cost or capacitance, but why not both? Through an text cleaner, parameters could be divided, multiplied, squared, etc. to sort by a complex parameter. I could and want to help with this, but before I start, I want to know if you have any objections or concerns. I'm not sure how network and server intensive this may end up being.
Hi,
It is a great tool. I have no issues installing it on windows 7 machine and some small problems adapting it to a Linux machine.
I tried to insert in the database some of my parts from the last 10 years to see how it works (almost 1000 parts) and I had 2 main problems. One of them is that DK changed some old part numbers and they don't exist anymore or are under different name that are not linked to the old one - nothing can be done about that. The second problem is that the part number exists but it is not properly transferred as request. It is because in your script digikey.py you selected to use html.escape(part_id) but it is not the right one for this purpose. I changed that to:
from urllib.parse import quote
...
url = ... + quote(part_id,safe='');
This will make possible to search for part numbers like 24FC64F-I/P-ND, DS1307+T&RCT-ND, etc.
I also have experimented with adding a function to search for the legacy 1D barcodes. The input from the user is checked first if it looks like 22 digits legacy 1D barcode (like 1642795000000250526056) and it converts it to a Digikey part number before trying to search for product information. This makes the input to the script much easier when you have the parts in anti-static envelopes with barcode labels and by using the barcode reader to enter them in milliseconds to the script. That works just fine but the newer 2D barcodes produce much more data (including the Digikey part number inside) and it needs more time to make it working.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.