-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Note: Don't do scheduled updates. Stress the APIs as little as possible. #27
Comments
FYI this tool in it's current form (and all other similar ones) break all the TOSs of all the APIs in use here. So scheduled updates for what it's worth are a really terrible idea. |
Also funny: I just got an E-Mail from TME a few hours ago, stating that they'll limit API requests to 1 request every 2 seconds for some actions. So yeah, in the interest of everyone using these APIs, it's best to use them as little as possible. |
I guess I did not read the fine prints, then. It is a shame, though, as getting current pricing for parts would be nice. But I can certainly live with a shortcut to update prices when needed. |
Yeah definitely. In the long run, ideally this functionality would be integrated directly into InvenTree, which might make things easier (as the main problem with the TOS is that they don't allow storing stuff like pricing information, so getting them only on demand would be fine afaik). Also from what I noticed atleast, they don't change that much and if they do, with the current system it's nice and easy to see how much they did. |
I understand better now. As for integration with InvenTree, I think that it would ease the creation of new parts from these vendors. The workflow would be simple: identify the part using the part selector that is the most responsive (sometimes Digikey is realllly slow here in Canada) and then from InvenTree search from all supported suppliers. The way you built this would make it not only to integrate, but also to support new suppliers (Aliexpress, Alibaba, etc). You saved me a lot of manual entry (which I quickly compensated with debugging and hacking around) |
wanting to possibly schedule updating parts automatically, I enabled using "/" to process recursively all categories. Not sure if this could be useful for others, but I will park this here:
inventree_helpers.py
cli.py (optional
The text was updated successfully, but these errors were encountered: