diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-07-29 23:22:26 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-07-29 23:22:26 +0200 |
commit | 661332c3ce7562b30545ae1773d30a784bcbc0db (patch) | |
tree | 76ad1ee053eacc64825e67285c607329cabfdc02 /demo | |
parent | ef5f308dd8d94bf40701c5bb979ad0fe45629ae9 (diff) | |
download | ee-python-661332c3ce7562b30545ae1773d30a784bcbc0db.tar.gz ee-python-661332c3ce7562b30545ae1773d30a784bcbc0db.tar.bz2 ee-python-661332c3ce7562b30545ae1773d30a784bcbc0db.tar.xz ee-python-661332c3ce7562b30545ae1773d30a784bcbc0db.zip |
o Support for resolving 'mpn' fields from digikey. Creates
'digikey-part-stub', can be used to download the entire part later on.
Diffstat (limited to 'demo')
5 files changed, 34 insertions, 0 deletions
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 + |