diff options
Diffstat (limited to 'demo/doit')
13 files changed, 116 insertions, 25 deletions
diff --git a/demo/doit/dodo.py b/demo/doit/dodo.py index 15b31c0..fe9b9ae 100644 --- a/demo/doit/dodo.py +++ b/demo/doit/dodo.py @@ -38,14 +38,18 @@ ee.digikey.doit.doit_config.configure(data_set_manager=dsm) def task_orders(): - data_sets = [ee.bom.doit.output_data_set_for_task(task_bom)] + data_sets = [ee.bom.doit.output_data_set_for_task(task_bom), + ee.digikey.doit.doit_config.out_data_set_for(task_digikey_resolve_schematic_components)] + yield create_task_order_csv( output_file="ee/order.csv", + out_data_set="order", data_sets=data_sets) for size in [1, 100]: yield create_task_order_csv( output_file="ee/digikey-{}.csv".format(size) if size != 1 else "ee/digikey.csv", style="digikey", + out_data_set="digikey-order-{}".format(size), data_sets=data_sets, count=size) diff --git a/demo/doit/ee/digikey-100.csv b/demo/doit/ee/digikey-100.csv index bad6173..4bf730c 100644 --- a/demo/doit/ee/digikey-100.csv +++ b/demo/doit/ee/digikey-100.csv @@ -1,4 +1,4 @@ Digi-Key Part Number,Customer Reference,Quantity,MPN -,BT1,100,BC2AAPC -,"R2,R1",200,RMCF1206JT10K0 -,C1,100,UCA2G100MPD1TD +BC2AAPC-ND,BT1,100,BC2AAPC +RMCF1206JT10K0CT-ND,"R2,R1",200,RMCF1206JT10K0 +493-4771-1-ND,C1,100,UCA2G100MPD1TD diff --git a/demo/doit/ee/digikey-parts/data-set.ini b/demo/doit/ee/digikey-parts/data-set.ini new file mode 100644 index 0000000..156b0ff --- /dev/null +++ b/demo/doit/ee/digikey-parts/data-set.ini @@ -0,0 +1,3 @@ +[data-set] +name = digikey-parts + diff --git a/demo/doit/ee/digikey-parts/digikey-part/493-4771-1-ND.ini b/demo/doit/ee/digikey-parts/digikey-part/493-4771-1-ND.ini new file mode 100644 index 0000000..17ab33d --- /dev/null +++ b/demo/doit/ee/digikey-parts/digikey-part/493-4771-1-ND.ini @@ -0,0 +1,27 @@ +[meta] +type = digikey-part + +[values] +part-number = 493-4771-1-ND +url = https://www.digikey.com/product-detail/en/nichicon/UCA2G100MPD1TD/493-4771-1-ND/3129112 +mpn = UCA2G100MPD1TD +7/packaging = Cut Tape (CT) +1989/part status = Active +2049/capacitance = 10µF +3/tolerance = ±20%% +2079/voltage - rated = 400V +724/esr (equivalent series resistance) = - +725/lifetime @ temp. = 10000 Hrs @ 105°C +252/operating temperature = -25°C ~ 105°C +52/polarization = - +707/ratings = - +405/applications = General Purpose +2253/ripple current @ low frequency = 140mA @ 120Hz +2260/ripple current @ high frequency = 280mA @ 100kHz +508/lead spacing = 0.197" (5.00mm) +46/size / dimension = 0.394" Dia (10.00mm) +1500/height - seated (max) = 0.846" (21.50mm) +884/surface mount land size = - +69/mounting type = Through Hole +16/package / case = Radial, Can + diff --git a/demo/doit/ee/digikey-parts/digikey-part/BC2AAPC-ND.ini b/demo/doit/ee/digikey-parts/digikey-part/BC2AAPC-ND.ini new file mode 100644 index 0000000..4e151d8 --- /dev/null +++ b/demo/doit/ee/digikey-parts/digikey-part/BC2AAPC-ND.ini @@ -0,0 +1,18 @@ +[meta] +type = digikey-part + +[values] +part-number = BC2AAPC-ND +url = https://www.digikey.com/product-detail/en/mpd-memory-protection-devices/BC2AAPC/BC2AAPC-ND/455777 +mpn = BC2AAPC +7/packaging = Active +1989/part status = Cylindrical, Holder +2049/capacitance = Holder (Open) +3/tolerance = AA +2079/voltage - rated = 2 +724/esr (equivalent series resistance) = - +725/lifetime @ temp. = PCB, Through Hole +252/operating temperature = PC Pin +52/polarization = 0.591" (15.01mm) +707/ratings = -10°C ~ 100°C + diff --git a/demo/doit/ee/digikey-parts/digikey-part/RMCF1206JT10K0CT-ND.ini b/demo/doit/ee/digikey-parts/digikey-part/RMCF1206JT10K0CT-ND.ini new file mode 100644 index 0000000..35eb796 --- /dev/null +++ b/demo/doit/ee/digikey-parts/digikey-part/RMCF1206JT10K0CT-ND.ini @@ -0,0 +1,23 @@ +[meta] +type = digikey-part + +[values] +part-number = RMCF1206JT10K0CT-ND +url = https://www.digikey.com/product-detail/en/stackpole-electronics-inc/RMCF1206JT10K0/RMCF1206JT10K0CT-ND/1942803 +mpn = RMCF1206JT10K0 +7/packaging = Cut Tape (CT) +1989/part status = Active +2049/capacitance = 10 kOhms +3/tolerance = ±5%% +2079/voltage - rated = 0.25W, 1/4W +724/esr (equivalent series resistance) = Thick Film +725/lifetime @ temp. = Automotive AEC-Q200 +252/operating temperature = ±200ppm/°C +52/polarization = -55°C ~ 155°C +707/ratings = 1206 (3216 Metric) +405/applications = 1206 +2253/ripple current @ low frequency = 0.126" L x 0.063" W (3.20mm x 1.60mm) +2260/ripple current @ high frequency = 0.028" (0.70mm) +508/lead spacing = 2 +46/size / dimension = - + diff --git a/demo/doit/ee/digikey-resolved-parts/digikey-part-stub/BC2AAPC-ND.ini b/demo/doit/ee/digikey-resolved-parts/component-to-part-mapping/digikey-BT1-BC2AAPC-ND.ini index 013dae3..a8c30b4 100644 --- a/demo/doit/ee/digikey-resolved-parts/digikey-part-stub/BC2AAPC-ND.ini +++ b/demo/doit/ee/digikey-resolved-parts/component-to-part-mapping/digikey-BT1-BC2AAPC-ND.ini @@ -1,9 +1,11 @@ [meta] -type = digikey-part-stub +type = component-to-part-mapping [values] +seller = digikey +ref = BT1 part-number = BC2AAPC-ND mpn = BC2AAPC -url = https://www.digikey.com/product-detail/en/mpd-memory-protection-devices/BC2AAPC/BC2AAPC-ND/455777 description = EMITTER IR 940NM 100MA RADIAL +url = https://www.digikey.com/product-detail/en/mpd-memory-protection-devices/BC2AAPC/BC2AAPC-ND/455777 diff --git a/demo/doit/ee/digikey-resolved-parts/component-to-part-mapping/digikey-C1-493-4771-1-ND.ini b/demo/doit/ee/digikey-resolved-parts/component-to-part-mapping/digikey-C1-493-4771-1-ND.ini new file mode 100644 index 0000000..7368272 --- /dev/null +++ b/demo/doit/ee/digikey-resolved-parts/component-to-part-mapping/digikey-C1-493-4771-1-ND.ini @@ -0,0 +1,10 @@ +[meta] +type = component-to-part-mapping + +[values] +seller = digikey +ref = C1 +part-number = 493-4771-1-ND +mpn = UCA2G100MPD1TD +description = /product-detail/en/nichicon/UCA2G100MPD1TD/493-4771-1-ND/3129112 + diff --git a/demo/doit/ee/digikey-resolved-parts/component-to-part-mapping/digikey-R1-RMCF1206JT10K0CT-ND.ini b/demo/doit/ee/digikey-resolved-parts/component-to-part-mapping/digikey-R1-RMCF1206JT10K0CT-ND.ini new file mode 100644 index 0000000..eca43a9 --- /dev/null +++ b/demo/doit/ee/digikey-resolved-parts/component-to-part-mapping/digikey-R1-RMCF1206JT10K0CT-ND.ini @@ -0,0 +1,10 @@ +[meta] +type = component-to-part-mapping + +[values] +seller = digikey +ref = R1 +part-number = RMCF1206JT10K0CT-ND +mpn = RMCF1206JT10K0 +description = /product-detail/en/stackpole-electronics-inc/RMCF1206JT10K0/RMCF1206JT10K0CT-ND/1942803 + diff --git a/demo/doit/ee/digikey-resolved-parts/component-to-part-mapping/digikey-R2-RMCF1206JT10K0CT-ND.ini b/demo/doit/ee/digikey-resolved-parts/component-to-part-mapping/digikey-R2-RMCF1206JT10K0CT-ND.ini new file mode 100644 index 0000000..fae5b54 --- /dev/null +++ b/demo/doit/ee/digikey-resolved-parts/component-to-part-mapping/digikey-R2-RMCF1206JT10K0CT-ND.ini @@ -0,0 +1,10 @@ +[meta] +type = component-to-part-mapping + +[values] +seller = digikey +ref = R2 +part-number = RMCF1206JT10K0CT-ND +mpn = RMCF1206JT10K0 +description = /product-detail/en/stackpole-electronics-inc/RMCF1206JT10K0/RMCF1206JT10K0CT-ND/1942803 + diff --git a/demo/doit/ee/digikey-resolved-parts/digikey-part-stub/493-4771-1-ND.ini b/demo/doit/ee/digikey-resolved-parts/digikey-part-stub/493-4771-1-ND.ini deleted file mode 100644 index 3cfb7d9..0000000 --- a/demo/doit/ee/digikey-resolved-parts/digikey-part-stub/493-4771-1-ND.ini +++ /dev/null @@ -1,8 +0,0 @@ -[meta] -type = digikey-part-stub - -[values] -part-number = 493-4771-1-ND -mpn = UCA2G100MPD1TD -url = /product-detail/en/nichicon/UCA2G100MPD1TD/493-4771-1-ND/3129112 - diff --git a/demo/doit/ee/digikey-resolved-parts/digikey-part-stub/RMCF1206JT10K0CT-ND.ini b/demo/doit/ee/digikey-resolved-parts/digikey-part-stub/RMCF1206JT10K0CT-ND.ini deleted file mode 100644 index 86a5504..0000000 --- a/demo/doit/ee/digikey-resolved-parts/digikey-part-stub/RMCF1206JT10K0CT-ND.ini +++ /dev/null @@ -1,8 +0,0 @@ -[meta] -type = digikey-part-stub - -[values] -part-number = RMCF1206JT10K0CT-ND -mpn = RMCF1206JT10K0 -url = /product-detail/en/stackpole-electronics-inc/RMCF1206JT10K0/RMCF1206JT10K0CT-ND/1942803 - diff --git a/demo/doit/ee/digikey.csv b/demo/doit/ee/digikey.csv index a813638..ea71d42 100644 --- a/demo/doit/ee/digikey.csv +++ b/demo/doit/ee/digikey.csv @@ -1,4 +1,4 @@ Digi-Key Part Number,Customer Reference,Quantity,MPN -,BT1,1,BC2AAPC -,"R2,R1",2,RMCF1206JT10K0 -,C1,1,UCA2G100MPD1TD +BC2AAPC-ND,BT1,1,BC2AAPC +RMCF1206JT10K0CT-ND,"R2,R1",2,RMCF1206JT10K0 +493-4771-1-ND,C1,1,UCA2G100MPD1TD |