30350n / inventree_part_import

CLI to import parts from suppliers like DigiKey, LCSC, Mouser, etc. to InvenTree
MIT License
24 stars 8 forks source link

FR: Case insensitive parameters #18

Closed ondras12345 closed 3 months ago

ondras12345 commented 3 months ago

I would argue that "Output Current" and "Output current" are the same parameter and there should be no need to explicitly list the latter as an alias.

$ inventree-part-import -o tme LM2575T-5G
(only 1 of 5 available supplier modules are configured)
successfully setup categories!

searching for LM2575T-5G ...

failed to match some parameters from 'https://www.tme.eu/en/details/lm2575t-5g/voltage-regulators-dc-dc-circuits/onsemi/'

failed to match value for parameter 'Output Current', select value:
> 1A          | Output current
  5V DC       | Output voltage
  tube        | Kind of package
  -40...125°C | Operating temperature
  42...63kHz  | Frequency
  Enter Value Manually ...
  Skip ...
successfully updated TME part LM2575T-5G (http://inventree.rpi.lab.lan/supplier-part/22/)

successfully imported all parts!
30350n commented 3 months ago

Good idea! Probably thought about it at some point, but guess it didn't bother me much. (This should work now).

ondras12345 commented 3 months ago

Thanks!