summaryrefslogtreecommitdiffstats
path: root/python/client.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-21 09:53:30 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-21 09:53:30 -0700
commita1d94e6c28b080158fd65d0ec54ff6d64451df97 (patch)
tree2c0b272ea5fdb19d0e97235b52d28ccfe5fb99d4 /python/client.py
parent7ebe32a290aa160c43671c21e968d1614a878f02 (diff)
downloadfatcat-a1d94e6c28b080158fd65d0ec54ff6d64451df97.tar.gz
fatcat-a1d94e6c28b080158fd65d0ec54ff6d64451df97.zip
manifest importer
Diffstat (limited to 'python/client.py')
-rwxr-xr-xpython/client.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/python/client.py b/python/client.py
index 9a2ed50d..ca6af603 100755
--- a/python/client.py
+++ b/python/client.py
@@ -3,7 +3,9 @@
import sys
import argparse
from fatcat.raw_api_client import RawFatcatApiClient
+from fatcat.crossref_importer import FatcatCrossrefImporter
from fatcat.orcid_importer import FatcatOrcidImporter
+from fatcat.manifest_importer import FatcatManifestImporter
def run_import_crossref(args):
fcc = FatcatCrossrefClient(args.host_url)
@@ -53,12 +55,12 @@ def main():
help="size of batch to send",
default=50, type=int)
- sub_import_manifest = subparsers.add_parser('import-orcid')
- sub_import_manifest.set_defaults(func=run_import_orcid)
+ sub_import_manifest = subparsers.add_parser('import-manifest')
+ sub_import_manifest.set_defaults(func=run_import_manifest)
sub_import_manifest.add_argument('db_path',
help="sqlite3 database to import from",
- type=argparse.FileType('r'))
- sub_import_orcid.add_argument('--batch-size',
+ type=str)
+ sub_import_manifest.add_argument('--batch-size',
help="size of batch to send",
default=50, type=int)