dao-scripts 1.4.0__py3-none-any.whl → 1.4.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.4.0'
16
- __version_tuple__ = version_tuple = (1, 4, 0)
15
+ __version__ = version = '1.4.2'
16
+ __version_tuple__ = version_tuple = (1, 4, 2)
@@ -7,6 +7,7 @@ import shutil
7
7
  import json
8
8
  import requests
9
9
  from time import sleep
10
+ import logging
10
11
 
11
12
  from tqdm import tqdm
12
13
 
@@ -122,11 +123,28 @@ def main():
122
123
  default=5,
123
124
  help="Zenodo is known to return 504 error, this program will try and upload it again",
124
125
  )
126
+ parser.add_argument(
127
+ '-D', '--debug',
128
+ action='store_true',
129
+ help='Enable debug logs',
130
+ default=os.environ.get('DAOA_DEBUG', False),
131
+ )
125
132
 
126
133
  args = parser.parse_args()
127
134
  if args.repos == 'all':
128
135
  args.repos = available_repos
129
136
 
137
+ if args.debug:
138
+ from http.client import HTTPConnection
139
+
140
+ # https://requests.readthedocs.io/en/latest/api/#api-changes
141
+ HTTPConnection.debuglevel = 1
142
+ logging.basicConfig()
143
+ logging.getLogger().setLevel(logging.DEBUG)
144
+ requests_log = logging.getLogger('urllib3')
145
+ requests_log.setLevel(logging.DEBUG)
146
+ requests_log.propagate = True
147
+
130
148
  with tempfile.TemporaryDirectory() as tmpdir:
131
149
  tmpdir = Path(tmpdir)
132
150
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dao-scripts
3
- Version: 1.4.0
3
+ Version: 1.4.2
4
4
  Summary: "A tool to download data to monitor DAO activity"
5
5
  Home-page: https://github.com/Grasia/dao-scripts
6
6
  Author: David Davó
@@ -1,7 +1,7 @@
1
- dao_scripts-1.4.0-py3.12-nspkg.pth,sha256=_0DzrHlnOxaQL5l1mMdHT1BtXZwXuB6MitMF5phpOhk,497
1
+ dao_scripts-1.4.2-py3.12-nspkg.pth,sha256=_0DzrHlnOxaQL5l1mMdHT1BtXZwXuB6MitMF5phpOhk,497
2
2
  dao_analyzer/cache_scripts/__init__.py,sha256=Urg-J2hvyzGcgE2Z-ba71XpcHi1YlPZgex86OFSd_0A,116
3
3
  dao_analyzer/cache_scripts/__main__.py,sha256=aNVhgUXjB4rzTefrX3d6dKeLOX3G_Ezs82pI8QCpwx0,61
4
- dao_analyzer/cache_scripts/_version.py,sha256=R8-T9fmURjcuoxYpHTAjyNAhgJPDtI2jogCjqYYkfCU,411
4
+ dao_analyzer/cache_scripts/_version.py,sha256=tX44urJsC0QN5SJ51xsM0HeojA_8Xx7NXFEGAkYlNE4,411
5
5
  dao_analyzer/cache_scripts/argparser.py,sha256=uOBVdRxmgR8H0dZMu2AQyvro6WvkZFKUrf7vJ6Mvw48,3574
6
6
  dao_analyzer/cache_scripts/config.py,sha256=6Ooh-SpTtNCHcl2sE637-XMCCCNZBmATJRyD_eguWr0,2180
7
7
  dao_analyzer/cache_scripts/endpoints.json,sha256=JLkXgE7P7ZXpAsorIq0jCVCoPoK4_YeyfTgCmtPdo14,1278
@@ -22,11 +22,11 @@ dao_analyzer/cache_scripts/daohaus/runner.py,sha256=nQ7YN_Fbfx0KsHkq47hShwTS82jb
22
22
  dao_analyzer/cache_scripts/daostack/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  dao_analyzer/cache_scripts/daostack/runner.py,sha256=emjzhZzGMTRGHKljll_lX-uMsGwaIsZBSi4jV1Lsh8Y,10144
24
24
  dao_analyzer/cache_scripts/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- dao_analyzer/cache_scripts/utils/uploadDataWarehouse.py,sha256=xEzUr-XYcf6DICZkarHEwGSDGLHSz2eXZmRER8Fj1OU,4027
26
- dao_scripts-1.4.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
27
- dao_scripts-1.4.0.dist-info/METADATA,sha256=I-VyX0tv4tJQXrhZa-o-rXs643twWXe9FPbah3-2m3k,8193
28
- dao_scripts-1.4.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
29
- dao_scripts-1.4.0.dist-info/entry_points.txt,sha256=dHhgA8pcQ2YbIlMuqPPSh7fiQkfHE8ioFPUcbBvXWDc,207
30
- dao_scripts-1.4.0.dist-info/namespace_packages.txt,sha256=gbsNupMgtHQXOyBinbeLMo06f278s8My_9N-CrZh3Bk,13
31
- dao_scripts-1.4.0.dist-info/top_level.txt,sha256=gbsNupMgtHQXOyBinbeLMo06f278s8My_9N-CrZh3Bk,13
32
- dao_scripts-1.4.0.dist-info/RECORD,,
25
+ dao_analyzer/cache_scripts/utils/uploadDataWarehouse.py,sha256=ID5AQxfDMKkatiZnRQRWeRm5ztQhbLutMqPveWMuzOM,4614
26
+ dao_scripts-1.4.2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
27
+ dao_scripts-1.4.2.dist-info/METADATA,sha256=_n4qG8E9kedgAbsHjyDxzvO3-NDmu3lJH1PzGkh8v8c,8193
28
+ dao_scripts-1.4.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
29
+ dao_scripts-1.4.2.dist-info/entry_points.txt,sha256=dHhgA8pcQ2YbIlMuqPPSh7fiQkfHE8ioFPUcbBvXWDc,207
30
+ dao_scripts-1.4.2.dist-info/namespace_packages.txt,sha256=gbsNupMgtHQXOyBinbeLMo06f278s8My_9N-CrZh3Bk,13
31
+ dao_scripts-1.4.2.dist-info/top_level.txt,sha256=gbsNupMgtHQXOyBinbeLMo06f278s8My_9N-CrZh3Bk,13
32
+ dao_scripts-1.4.2.dist-info/RECORD,,