From 661332c3ce7562b30545ae1773d30a784bcbc0db Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 29 Jul 2018 23:22:26 +0200 Subject: o Support for resolving 'mpn' fields from digikey. Creates 'digikey-part-stub', can be used to download the entire part later on. --- demo/doit/dodo.py | 6 ++++++ demo/doit/ee/digikey-resolved-parts/data-set.ini | 3 +++ .../digikey-resolved-parts/digikey-part-stub/493-4771-1-ND.ini | 8 ++++++++ .../ee/digikey-resolved-parts/digikey-part-stub/BC2AAPC-ND.ini | 9 +++++++++ .../digikey-part-stub/RMCF1206JT10K0CT-ND.ini | 8 ++++++++ 5 files changed, 34 insertions(+) create mode 100644 demo/doit/ee/digikey-resolved-parts/data-set.ini create mode 100644 demo/doit/ee/digikey-resolved-parts/digikey-part-stub/493-4771-1-ND.ini create mode 100644 demo/doit/ee/digikey-resolved-parts/digikey-part-stub/BC2AAPC-ND.ini create mode 100644 demo/doit/ee/digikey-resolved-parts/digikey-part-stub/RMCF1206JT10K0CT-ND.ini (limited to 'demo') diff --git a/demo/doit/dodo.py b/demo/doit/dodo.py index 145c0a7..15b31c0 100644 --- a/demo/doit/dodo.py +++ b/demo/doit/dodo.py @@ -1,7 +1,11 @@ +import ee.bom.doit +import ee.digikey.doit import ee.doit import ee.kicad.doit # noinspection PyUnresolvedReferences from ee.bom.doit import * +# noinspection PyUnresolvedReferences +from ee.digikey.doit import * from ee.kicad.doit import * prj = "demo" @@ -30,6 +34,8 @@ ee.bom.doit.init( data_set_manager=dsm, ) +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)] diff --git a/demo/doit/ee/digikey-resolved-parts/data-set.ini b/demo/doit/ee/digikey-resolved-parts/data-set.ini new file mode 100644 index 0000000..870a079 --- /dev/null +++ b/demo/doit/ee/digikey-resolved-parts/data-set.ini @@ -0,0 +1,3 @@ +[data-set] +name = digikey-resolved-parts + 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 new file mode 100644 index 0000000..3cfb7d9 --- /dev/null +++ b/demo/doit/ee/digikey-resolved-parts/digikey-part-stub/493-4771-1-ND.ini @@ -0,0 +1,8 @@ +[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/BC2AAPC-ND.ini b/demo/doit/ee/digikey-resolved-parts/digikey-part-stub/BC2AAPC-ND.ini new file mode 100644 index 0000000..013dae3 --- /dev/null +++ b/demo/doit/ee/digikey-resolved-parts/digikey-part-stub/BC2AAPC-ND.ini @@ -0,0 +1,9 @@ +[meta] +type = digikey-part-stub + +[values] +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 + 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 new file mode 100644 index 0000000..86a5504 --- /dev/null +++ b/demo/doit/ee/digikey-resolved-parts/digikey-part-stub/RMCF1206JT10K0CT-ND.ini @@ -0,0 +1,8 @@ +[meta] +type = digikey-part-stub + +[values] +part-number = RMCF1206JT10K0CT-ND +mpn = RMCF1206JT10K0 +url = /product-detail/en/stackpole-electronics-inc/RMCF1206JT10K0/RMCF1206JT10K0CT-ND/1942803 + -- cgit v1.2.3