diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-02-26 23:08:19 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-02-26 23:08:19 +0100 |
commit | 97c8bb9db96e27051f8746865f657408263db0b8 (patch) | |
tree | 604cb6e9b87e79f43e54940adbc83520e89940fe /src/ee/tools | |
parent | 80e0623913e87c6480049520590e424a831e0401 (diff) | |
download | ee-python-97c8bb9db96e27051f8746865f657408263db0b8.tar.gz ee-python-97c8bb9db96e27051f8746865f657408263db0b8.tar.bz2 ee-python-97c8bb9db96e27051f8746865f657408263db0b8.tar.xz ee-python-97c8bb9db96e27051f8746865f657408263db0b8.zip |
o Creating a PartDb that manages a file system directory with one xml
file per part.
o Switching xml-based code to use PartDb.
Diffstat (limited to 'src/ee/tools')
-rw-r--r-- | src/ee/tools/digikey_search_parts.py (renamed from src/ee/tools/digikey_refresh_parts.py) | 4 | ||||
-rw-r--r-- | src/ee/tools/kicad_make_bom.py | 3 | ||||
-rw-r--r-- | src/ee/tools/part_create_distributor_search_list.py (renamed from src/ee/tools/digikey_import_parts.py) | 8 |
3 files changed, 9 insertions, 6 deletions
diff --git a/src/ee/tools/digikey_refresh_parts.py b/src/ee/tools/digikey_search_parts.py index e3e3b35..80393eb 100644 --- a/src/ee/tools/digikey_refresh_parts.py +++ b/src/ee/tools/digikey_search_parts.py @@ -1,7 +1,7 @@ import argparse from pathlib import Path -from ee.digikey.refresh_parts import refresh_parts +from ee.digikey.search_parts import search_parts parser = argparse.ArgumentParser() @@ -19,4 +19,4 @@ args = parser.parse_args() cache_dir = ".ee/cache" force = True -refresh_parts(Path(args.in_), Path(args.out), Path(cache_dir), force) +search_parts(Path(args.in_), Path(args.out), Path(cache_dir), force) diff --git a/src/ee/tools/kicad_make_bom.py b/src/ee/tools/kicad_make_bom.py index 769ea0d..c4a1dd8 100644 --- a/src/ee/tools/kicad_make_bom.py +++ b/src/ee/tools/kicad_make_bom.py @@ -1,4 +1,5 @@ import argparse +from pathlib import Path from ee.kicad.make_bom import make_bom @@ -24,4 +25,4 @@ new_mode = True strategy = args.strategy if args.strategy else "ee.kicad.make_bom.MakeBomStrategy" -make_bom(args.sch, args.out, strategy, new_mode, pretty) +make_bom(Path(args.sch), Path(args.out), strategy, new_mode, pretty) diff --git a/src/ee/tools/digikey_import_parts.py b/src/ee/tools/part_create_distributor_search_list.py index 77f87e8..22b4c3f 100644 --- a/src/ee/tools/digikey_import_parts.py +++ b/src/ee/tools/part_create_distributor_search_list.py @@ -1,7 +1,9 @@ import argparse -from ee.digikey.import_parts import import_parts +from pathlib import Path -parser = argparse.ArgumentParser(description="Import all parts in XML file into Digi-Key parts list") +from ee.part.create_distributor_search_list import create_distributor_search_list + +parser = argparse.ArgumentParser() parser.add_argument("--in", dest="in_", @@ -14,4 +16,4 @@ parser.add_argument("--out", args = parser.parse_args() -import_parts(args.in_, args.out) +create_distributor_search_list(Path(args.in_), Path(args.out)) |