dao-scripts 1.5.0__tar.gz → 1.5.2__tar.gz

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.
Files changed (43) hide show
  1. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/CHANGELOG.md +3 -0
  2. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/PKG-INFO +4 -4
  3. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/README.md +2 -2
  4. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/dao_scripts.egg-info/PKG-INFO +4 -4
  5. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/dao_scripts.egg-info/requires.txt +1 -1
  6. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/setup.cfg +1 -1
  7. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/_version.py +2 -2
  8. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/common/blockscout.py +1 -1
  9. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/common/thegraph.py +2 -1
  10. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/daohaus/runner.py +1 -1
  11. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/metadata.py +1 -1
  12. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/.envrc +0 -0
  13. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/.github/workflows/ci.yml +0 -0
  14. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/.github/workflows/update-datasets.yml +0 -0
  15. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/.gitignore +0 -0
  16. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/LICENSE +0 -0
  17. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/dao_scripts.egg-info/SOURCES.txt +0 -0
  18. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/dao_scripts.egg-info/dependency_links.txt +0 -0
  19. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/dao_scripts.egg-info/entry_points.txt +0 -0
  20. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/dao_scripts.egg-info/namespace_packages.txt +0 -0
  21. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/dao_scripts.egg-info/top_level.txt +0 -0
  22. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/pyproject.toml +0 -0
  23. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/setup.py +0 -0
  24. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/__init__.py +0 -0
  25. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/__main__.py +0 -0
  26. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/aragon/__init__.py +0 -0
  27. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/aragon/dao_names.json +0 -0
  28. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/aragon/runner.py +0 -0
  29. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/argparser.py +0 -0
  30. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/common/__init__.py +0 -0
  31. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/common/api_requester.py +0 -0
  32. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/common/common.py +0 -0
  33. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/common/cryptocompare.py +0 -0
  34. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/config.py +0 -0
  35. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/daohaus/__init__.py +0 -0
  36. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/daostack/__init__.py +0 -0
  37. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/daostack/runner.py +0 -0
  38. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/endpoints.json +0 -0
  39. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/logging.py +0 -0
  40. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/main.py +0 -0
  41. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/utils/__init__.py +0 -0
  42. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/utils/uploadDataWarehouse.py +0 -0
  43. {dao_scripts-1.5.0 → dao_scripts-1.5.2}/test/test_placeholder.py +0 -0
@@ -1,6 +1,9 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## 1.5.1 - 2024-06-05
5
+ - Multiple small bugfixes
6
+
4
7
  ## 1.5.0 - 2024-06-04
5
8
  - Avoid errors when no new data is available
6
9
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dao-scripts
3
- Version: 1.5.0
3
+ Version: 1.5.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ó
@@ -35,7 +35,7 @@ Requires-Dist: requests-toolbelt>=0.9.1
35
35
  Requires-Dist: tenacity>=8.0.0
36
36
  Requires-Dist: tqdm>=4.62.3
37
37
  Provides-Extra: upload
38
- Requires-Dist: kaggle>=1.5.12; extra == "upload"
38
+ Requires-Dist: kaggle<=1.6.15,>=1.5.12; extra == "upload"
39
39
  Requires-Dist: zenodo-client>=0.3.4; extra == "upload"
40
40
  Provides-Extra: dev
41
41
  Requires-Dist: build; extra == "dev"
@@ -181,10 +181,10 @@ daoa-cache-scripts --networks xdai
181
181
  >
182
182
  </div>
183
183
 
184
- DAO-Analyzer is created under the umbrella of multiple research projects:
184
+ DAO-Analyzer is developed under the umbrella of multiple research projects:
185
185
  - Chain Community, funded by the Spanish Ministry of Science and Innovation ([RTI2018‐096820‐A‐I00](https://produccioncientifica.ucm.es/proyectos/48103/detalle)) and led by Javier Arroyo and Samer Hassan
186
186
  - P2P Models, funded by the European Research Council (ERC-2017-STG 625 grant no.: 75920), led by Samer Hassan.
187
- - DAOapplications, funded by the Spanish Ministry of Science and Innovation ([PID2021-127956OB-I00](https://produccioncientifica.ucm.es/proyectos/551171/detalle)) and led by Javier Arroyo, Samer Hassan and maria Cruz Valiente
187
+ - DAOapplications, funded by the Spanish Ministry of Science and Innovation ([PID2021-127956OB-I00](https://produccioncientifica.ucm.es/proyectos/551171/detalle)) and led by Javier Arroyo and Samer Hassan
188
188
 
189
189
  ## Cite as
190
190
 
@@ -132,10 +132,10 @@ daoa-cache-scripts --networks xdai
132
132
  >
133
133
  </div>
134
134
 
135
- DAO-Analyzer is created under the umbrella of multiple research projects:
135
+ DAO-Analyzer is developed under the umbrella of multiple research projects:
136
136
  - Chain Community, funded by the Spanish Ministry of Science and Innovation ([RTI2018‐096820‐A‐I00](https://produccioncientifica.ucm.es/proyectos/48103/detalle)) and led by Javier Arroyo and Samer Hassan
137
137
  - P2P Models, funded by the European Research Council (ERC-2017-STG 625 grant no.: 75920), led by Samer Hassan.
138
- - DAOapplications, funded by the Spanish Ministry of Science and Innovation ([PID2021-127956OB-I00](https://produccioncientifica.ucm.es/proyectos/551171/detalle)) and led by Javier Arroyo, Samer Hassan and maria Cruz Valiente
138
+ - DAOapplications, funded by the Spanish Ministry of Science and Innovation ([PID2021-127956OB-I00](https://produccioncientifica.ucm.es/proyectos/551171/detalle)) and led by Javier Arroyo and Samer Hassan
139
139
 
140
140
  ## Cite as
141
141
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dao-scripts
3
- Version: 1.5.0
3
+ Version: 1.5.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ó
@@ -35,7 +35,7 @@ Requires-Dist: requests-toolbelt>=0.9.1
35
35
  Requires-Dist: tenacity>=8.0.0
36
36
  Requires-Dist: tqdm>=4.62.3
37
37
  Provides-Extra: upload
38
- Requires-Dist: kaggle>=1.5.12; extra == "upload"
38
+ Requires-Dist: kaggle<=1.6.15,>=1.5.12; extra == "upload"
39
39
  Requires-Dist: zenodo-client>=0.3.4; extra == "upload"
40
40
  Provides-Extra: dev
41
41
  Requires-Dist: build; extra == "dev"
@@ -181,10 +181,10 @@ daoa-cache-scripts --networks xdai
181
181
  >
182
182
  </div>
183
183
 
184
- DAO-Analyzer is created under the umbrella of multiple research projects:
184
+ DAO-Analyzer is developed under the umbrella of multiple research projects:
185
185
  - Chain Community, funded by the Spanish Ministry of Science and Innovation ([RTI2018‐096820‐A‐I00](https://produccioncientifica.ucm.es/proyectos/48103/detalle)) and led by Javier Arroyo and Samer Hassan
186
186
  - P2P Models, funded by the European Research Council (ERC-2017-STG 625 grant no.: 75920), led by Samer Hassan.
187
- - DAOapplications, funded by the Spanish Ministry of Science and Innovation ([PID2021-127956OB-I00](https://produccioncientifica.ucm.es/proyectos/551171/detalle)) and led by Javier Arroyo, Samer Hassan and maria Cruz Valiente
187
+ - DAOapplications, funded by the Spanish Ministry of Science and Innovation ([PID2021-127956OB-I00](https://produccioncientifica.ucm.es/proyectos/551171/detalle)) and led by Javier Arroyo and Samer Hassan
188
188
 
189
189
  ## Cite as
190
190
 
@@ -19,5 +19,5 @@ pandas-vet
19
19
  twine
20
20
 
21
21
  [upload]
22
- kaggle>=1.5.12
22
+ kaggle<=1.6.15,>=1.5.12
23
23
  zenodo-client>=0.3.4
@@ -52,7 +52,7 @@ console_scripts =
52
52
 
53
53
  [options.extras_require]
54
54
  upload =
55
- kaggle >= 1.5.12
55
+ kaggle >= 1.5.12, <= 1.6.15
56
56
  zenodo-client >= 0.3.4
57
57
  dev =
58
58
  build
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.5.0'
16
- __version_tuple__ = version_tuple = (1, 5, 0)
15
+ __version__ = version = '1.5.2'
16
+ __version_tuple__ = version_tuple = (1, 5, 2)
@@ -44,7 +44,7 @@ class BlockscoutBallancesCollector(NetworkCollector):
44
44
  def endpoint(self) -> str:
45
45
  return ENDPOINTS[self.network]['blockscout']
46
46
 
47
- def _get_from_address(self, addr: str, retry: int = 0, maxretries: int = 3, block: Union[int, Block, None] = None, ignore_errors=False) -> pd.DataFrame: # noqa: C901
47
+ def _get_from_address(self, addr: str, retry: int = 0, maxretries: int = 5, block: Union[int, Block, None] = None, ignore_errors=False) -> pd.DataFrame: # noqa: C901
48
48
  if retry >= maxretries:
49
49
  raise ValueError(f"Too many retries {retry}/{maxretries}")
50
50
 
@@ -117,7 +117,8 @@ class TheGraphCollector(NetworkCollector, UpdatableCollector, ABC):
117
117
  else:
118
118
  df = pd.DataFrame(columns=get_columns_from_query(self.query()))
119
119
 
120
- assert set(df.columns) == set(get_columns_from_query(self.query()))
120
+ if (s1 := set(df.columns)) != (s2 := set(get_columns_from_query(self.query()))):
121
+ raise ValueError(f"Received columns are not the expected columns: {s1} != {s2}")
121
122
 
122
123
  # For compatibility reasons we change from . to snake case
123
124
  def dotsToSnakeCase(str: str) -> str:
@@ -156,7 +156,7 @@ class TokenBalancesCollector(TheGraphCollector):
156
156
  def coalesce_bank_type(df: pd.DataFrame) -> pd.DataFrame:
157
157
  bank_idx = ['guildBank', 'memberBank', 'ecrowBank']
158
158
 
159
- df['bank'] = df[bank_idx].idxmax(1)
159
+ df['bank'] = df[bank_idx].idxmax(1).astype(str)
160
160
  df['bank'] = df['bank'].str.lower()
161
161
  df['bank'] = df['bank'].str.replace('bank', '')
162
162
  df = df.drop(columns=bank_idx)
@@ -25,7 +25,7 @@ class Block:
25
25
  self.number = int(init["number"]) if "number" in init else self.number
26
26
  self.id = init["id"] if "id" in init else self.id
27
27
 
28
- if "timestamp" in init:
28
+ if init.get("timestamp", None):
29
29
  if isinstance(init['timestamp'], int) or init["timestamp"].isdigit():
30
30
  self.timestamp = datetime.fromtimestamp(int(init["timestamp"]))
31
31
  else:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes