aboutsummaryrefslogtreecommitdiff
path: root/trygvis/eda/cli/eda_rdf.py
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-01-02 08:32:37 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2017-01-02 08:32:37 +0100
commit7ec05971895a0428c9912a930d789ec7bf004a32 (patch)
treef0a2f0db6cbd78efbe971da81bfe99420fae8d94 /trygvis/eda/cli/eda_rdf.py
parent8c90d2e409e9c457a8e27fc11d8e030248eb6f70 (diff)
downloadeda-rdf-7ec05971895a0428c9912a930d789ec7bf004a32.tar.gz
eda-rdf-7ec05971895a0428c9912a930d789ec7bf004a32.tar.bz2
eda-rdf-7ec05971895a0428c9912a930d789ec7bf004a32.tar.xz
eda-rdf-7ec05971895a0428c9912a930d789ec7bf004a32.zip
o Don't to Graph.commit() unless this is an updateable SPARQL store.
Diffstat (limited to 'trygvis/eda/cli/eda_rdf.py')
-rw-r--r--trygvis/eda/cli/eda_rdf.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/trygvis/eda/cli/eda_rdf.py b/trygvis/eda/cli/eda_rdf.py
index ecd4ba6..7b4ed2c 100644
--- a/trygvis/eda/cli/eda_rdf.py
+++ b/trygvis/eda/cli/eda_rdf.py
@@ -63,7 +63,8 @@ class DigikeyDownloadForSchematic(CliCommand):
class DigikeyDownloadMetadata(CliCommand):
def __init__(self):
- super().__init__("digikey-download-metadata", "Download category tree and attribute types and values from digikey.com")
+ super().__init__("digikey-download-metadata",
+ "Download category tree and attribute types and values from digikey.com")
def run(self, argv):
p = argparse.ArgumentParser(prog=self.key, description=self.description)
@@ -76,7 +77,8 @@ class DigikeyDownloadMetadata(CliCommand):
class DigikeyDownloadAttributeTypesForCategory(CliCommand):
def __init__(self):
- super().__init__("digikey-download-attribute-types-for-category", "Download the attribute types for a category from digikey.com")
+ super().__init__("digikey-download-attribute-types-for-category",
+ "Download the attribute types for a category from digikey.com")
def run(self, argv):
p = argparse.ArgumentParser(prog=self.key, description=self.description)
@@ -88,6 +90,7 @@ class DigikeyDownloadAttributeTypesForCategory(CliCommand):
from trygvis.eda.cli import digikey_download_attribute_types_for_category
digikey_download_attribute_types_for_category.run(args.category, args.sub_category, args.output, args)
+
class MakeBom(CliCommand):
def __init__(self):
super().__init__("make-bom", "Create a BOM for a project with all info for each part.")