dao-scripts 1.5.0__tar.gz → 1.5.1__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.1}/CHANGELOG.md +3 -0
  2. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/PKG-INFO +1 -1
  3. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/dao_scripts.egg-info/PKG-INFO +1 -1
  4. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/_version.py +2 -2
  5. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/common/blockscout.py +1 -1
  6. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/common/thegraph.py +2 -1
  7. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/daohaus/runner.py +1 -1
  8. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/metadata.py +1 -1
  9. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/.envrc +0 -0
  10. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/.github/workflows/ci.yml +0 -0
  11. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/.github/workflows/update-datasets.yml +0 -0
  12. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/.gitignore +0 -0
  13. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/LICENSE +0 -0
  14. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/README.md +0 -0
  15. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/dao_scripts.egg-info/SOURCES.txt +0 -0
  16. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/dao_scripts.egg-info/dependency_links.txt +0 -0
  17. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/dao_scripts.egg-info/entry_points.txt +0 -0
  18. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/dao_scripts.egg-info/namespace_packages.txt +0 -0
  19. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/dao_scripts.egg-info/requires.txt +0 -0
  20. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/dao_scripts.egg-info/top_level.txt +0 -0
  21. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/pyproject.toml +0 -0
  22. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/setup.cfg +0 -0
  23. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/setup.py +0 -0
  24. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/__init__.py +0 -0
  25. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/__main__.py +0 -0
  26. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/aragon/__init__.py +0 -0
  27. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/aragon/dao_names.json +0 -0
  28. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/aragon/runner.py +0 -0
  29. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/argparser.py +0 -0
  30. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/common/__init__.py +0 -0
  31. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/common/api_requester.py +0 -0
  32. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/common/common.py +0 -0
  33. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/common/cryptocompare.py +0 -0
  34. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/config.py +0 -0
  35. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/daohaus/__init__.py +0 -0
  36. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/daostack/__init__.py +0 -0
  37. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/daostack/runner.py +0 -0
  38. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/endpoints.json +0 -0
  39. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/logging.py +0 -0
  40. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/main.py +0 -0
  41. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/utils/__init__.py +0 -0
  42. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/src/utils/uploadDataWarehouse.py +0 -0
  43. {dao_scripts-1.5.0 → dao_scripts-1.5.1}/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.1
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dao-scripts
3
- Version: 1.5.0
3
+ Version: 1.5.1
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ó
@@ -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.1'
16
+ __version_tuple__ = version_tuple = (1, 5, 1)
@@ -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
File without changes
File without changes