##// END OF EJS Templates
v2.9.2 :: Add 'tqdm' - bar progress download
eynilupu -
r21:5cce8357a695
parent child
Show More
@@ -2,6 +2,7
2 2 from ckanapi.cli import workers, dump
3 3 from ckanapi.cli.utils import pretty_json, completion_stats, compact_json, quiet_int_pipe
4 4 from datetime import datetime
5 from tqdm import tqdm
5 6 import sys
6 7 import json
7 8 import os
@@ -114,7 +115,8 def create_datapackage_change(record, filtered_url, datapackage_dir, stderr, api
114 115 record['path'] = datapackage_dir
115 116
116 117 ckan_resources = []
117 for resource in record.get('resources', []):
118 for resource in tqdm(record.get('resources', []), unit_scale=True):
119 #for resource in record.get('resources', []):
118 120 if resource['format'] in resource_formats_to_ignore:
119 121 continue
120 122
@@ -11,6 +11,7 setup(
11 11 packages = ["jrodb"],
12 12 install_requires = [
13 13 "ckanapi==4.7",
14 "requests"
14 "requests",
15 "tqdm"
15 16 ],
16 17 ) No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now