summaryrefslogtreecommitdiff
path: root/giab_clindex
diff options
context:
space:
mode:
Diffstat (limited to 'giab_clindex')
-rwxr-xr-xgiab_clindex14
1 files changed, 14 insertions, 0 deletions
diff --git a/giab_clindex b/giab_clindex
new file mode 100755
index 0000000..e537b81
--- /dev/null
+++ b/giab_clindex
@@ -0,0 +1,14 @@
+#!/bin/env python3
+
+import argparse
+from clnindexdl import download_all_from_index
+from pathlib import Path
+
+parser = argparse.ArgumentParser()
+parser.add_argument('index', type=argparse.FileType('r'))
+parser.add_argument('--threads', '-t', type=int, default=6)
+parser.add_argument('--output_dir', '-o', type=str, default='.')
+args = parser.parse_args()
+
+if __name__ == "__main__":
+ download_all_from_index( args.index, Path( args.output_dir ), args.threads )