[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Fwd: Parts DB API: the story so far



[send]
symbol=resistor
value=1000
footprint=0603
vendor?
manufacturer?

My druthers

[result]
"vendor"  "manufacturer" "vendor pertnumber" "manufacturor partnumber" "company partnumber"
"digikey" "Susumu" "RP16S100FCT-ND" "RP1608S-100-F" "030-1000-23"
"digikey" "rohm" .....................................................
"mouser" .............................................................
"jameco" .............................................................



maybe more likely?

[send]
symbol=resistor
package=0603
manufacturor?
description?
mfg_pn_root?
value?

[result]
"manufacturer" "description" "mfg_pn_root" "values"
"Susumu" "0402 / 0603 / 0805 SMD 1% High Power Thin Film Chip Resistors" "RP1608S-xxx-F" ".10, .12, .15
, .18, .22, .27, .33, .39, .47, .56, .68, .82, 1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2, 10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82, 100




DJ Delorie wrote:
>> Because then we have to agree on an RDB and how to use it. Why not  
>> just use a text editor to start with?
>>     
>
> We talked about databases at one of the freedog meetings.  I proposed
> an API like this:
>
> Connect to some backend.
> Feed it attributes whose value you know.
> Feed it a list of attributes whose value you want.
> It returns a list of valid values for each of those attributes.
>
> Example:
>
> [send]
> symbol=resistor
> value=1000
> footprint=0603
> vendor?
> manufacturer?
>
> [result]
> vendor=3
> "digikey"
> "mouser"
> "jameco"
> manufacturer=2
> "rohm"
> "panasonic"
>
>
> As the user defines more attributes, further queries are made with
> those, to get more options back.
>
> This just begs for a plug-in, too.  CGIs, RDBs, flat files, etc.
>
>
> _______________________________________________
> geda-user mailing list
> geda-user@xxxxxxxxxxxxxx
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
>
>   



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user