dao-scripts 1.5.0__py3-none-any.whl → 1.5.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.
- dao_analyzer/cache_scripts/_version.py +2 -2
- dao_analyzer/cache_scripts/common/blockscout.py +1 -1
- dao_analyzer/cache_scripts/common/thegraph.py +2 -1
- dao_analyzer/cache_scripts/daohaus/runner.py +1 -1
- dao_analyzer/cache_scripts/metadata.py +1 -1
- {dao_scripts-1.5.0.dist-info → dao_scripts-1.5.2.dist-info}/METADATA +4 -4
- {dao_scripts-1.5.0.dist-info → dao_scripts-1.5.2.dist-info}/RECORD +13 -13
- {dao_scripts-1.5.0.dist-info → dao_scripts-1.5.2.dist-info}/WHEEL +1 -1
- /dao_scripts-1.5.0-py3.12-nspkg.pth → /dao_scripts-1.5.2-py3.12-nspkg.pth +0 -0
- {dao_scripts-1.5.0.dist-info → dao_scripts-1.5.2.dist-info}/LICENSE +0 -0
- {dao_scripts-1.5.0.dist-info → dao_scripts-1.5.2.dist-info}/entry_points.txt +0 -0
- {dao_scripts-1.5.0.dist-info → dao_scripts-1.5.2.dist-info}/namespace_packages.txt +0 -0
- {dao_scripts-1.5.0.dist-info → dao_scripts-1.5.2.dist-info}/top_level.txt +0 -0
@@ -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 =
|
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
|
-
|
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"
|
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:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: dao-scripts
|
3
|
-
Version: 1.5.
|
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ó
|
@@ -42,7 +42,7 @@ Requires-Dist: flake8 ; extra == 'dev'
|
|
42
42
|
Requires-Dist: pandas-vet ; extra == 'dev'
|
43
43
|
Requires-Dist: twine ; extra == 'dev'
|
44
44
|
Provides-Extra: upload
|
45
|
-
Requires-Dist: kaggle
|
45
|
+
Requires-Dist: kaggle <=1.6.15,>=1.5.12 ; extra == 'upload'
|
46
46
|
Requires-Dist: zenodo-client >=0.3.4 ; extra == 'upload'
|
47
47
|
|
48
48
|
<p align="center">
|
@@ -179,10 +179,10 @@ daoa-cache-scripts --networks xdai
|
|
179
179
|
>
|
180
180
|
</div>
|
181
181
|
|
182
|
-
DAO-Analyzer is
|
182
|
+
DAO-Analyzer is developed under the umbrella of multiple research projects:
|
183
183
|
- 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
|
184
184
|
- P2P Models, funded by the European Research Council (ERC-2017-STG 625 grant no.: 75920), led by Samer Hassan.
|
185
|
-
- 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
|
185
|
+
- 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
|
186
186
|
|
187
187
|
## Cite as
|
188
188
|
|
@@ -1,32 +1,32 @@
|
|
1
|
-
dao_scripts-1.5.
|
1
|
+
dao_scripts-1.5.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=
|
4
|
+
dao_analyzer/cache_scripts/_version.py,sha256=P-JlE1bO3FGbbntvKHqxjgKk7ORvjFhybkK-h8R2s5g,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
|
8
8
|
dao_analyzer/cache_scripts/logging.py,sha256=9sAqZUk_Qnmlf9Ko60C4O__Ve7Tj4xefzQ7cV07aQ70,3196
|
9
9
|
dao_analyzer/cache_scripts/main.py,sha256=ZgNPI5szAFh-dVa6JEa2uw0eMZ_IWtCZX3yqF7jBJmw,5989
|
10
|
-
dao_analyzer/cache_scripts/metadata.py,sha256=
|
10
|
+
dao_analyzer/cache_scripts/metadata.py,sha256=YX6AA3dmrq6XpD88IY6lkYQgdYdwOejOuYqlf_XDhJM,4219
|
11
11
|
dao_analyzer/cache_scripts/aragon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
dao_analyzer/cache_scripts/aragon/dao_names.json,sha256=ASDOJYTsgHELJ7g1z9NccVROYYxsHQaLy9V-vrfr_Ec,7412
|
13
13
|
dao_analyzer/cache_scripts/aragon/runner.py,sha256=RQX9KkOm268vrY_jgMHT_RthkrncbXhEn9Fcss8pJs4,8163
|
14
14
|
dao_analyzer/cache_scripts/common/__init__.py,sha256=R_rWbKcp-Htw_Y_gt83Y6_N9KQC5kAHyMqb0Dk25HkU,342
|
15
15
|
dao_analyzer/cache_scripts/common/api_requester.py,sha256=objbyqKVVEfNFmffds3BC2Nc3Bjk6Gip-9EUGScm7JY,8145
|
16
|
-
dao_analyzer/cache_scripts/common/blockscout.py,sha256=
|
16
|
+
dao_analyzer/cache_scripts/common/blockscout.py,sha256=kQ3GBzjZN5aRXG5ctN9D9CIgAK3X2zf5GNKe5wSsBWQ,5041
|
17
17
|
dao_analyzer/cache_scripts/common/common.py,sha256=Vj_UHqcCQRiKBwCV1skVTZoDl-eGOtclI8ps28BrD6A,10910
|
18
18
|
dao_analyzer/cache_scripts/common/cryptocompare.py,sha256=jaHdJ-X_AXEUdVRMVtyK6xwHNJdhTs2Ps44QMD0iuIY,2203
|
19
|
-
dao_analyzer/cache_scripts/common/thegraph.py,sha256=
|
19
|
+
dao_analyzer/cache_scripts/common/thegraph.py,sha256=XVa5cNrZsaPOEShA9kVoCWnaf9HgRZVDaT8lvJXu5a0,8265
|
20
20
|
dao_analyzer/cache_scripts/daohaus/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
|
-
dao_analyzer/cache_scripts/daohaus/runner.py,sha256=
|
21
|
+
dao_analyzer/cache_scripts/daohaus/runner.py,sha256=R1K4xhXy3jVOz52UaIqgvXd9mW71c0l4YanK62f1sNE,7561
|
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
25
|
dao_analyzer/cache_scripts/utils/uploadDataWarehouse.py,sha256=dBI_XKCWqblhCh-w0-ewoP82zHZBLxAH8SH44y8nxoU,4698
|
26
|
-
dao_scripts-1.5.
|
27
|
-
dao_scripts-1.5.
|
28
|
-
dao_scripts-1.5.
|
29
|
-
dao_scripts-1.5.
|
30
|
-
dao_scripts-1.5.
|
31
|
-
dao_scripts-1.5.
|
32
|
-
dao_scripts-1.5.
|
26
|
+
dao_scripts-1.5.2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
27
|
+
dao_scripts-1.5.2.dist-info/METADATA,sha256=3boyLWjz6L7EIZ9w4cTrKLOR9HsvjCxkAfeNtNx60lY,8183
|
28
|
+
dao_scripts-1.5.2.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
29
|
+
dao_scripts-1.5.2.dist-info/entry_points.txt,sha256=dHhgA8pcQ2YbIlMuqPPSh7fiQkfHE8ioFPUcbBvXWDc,207
|
30
|
+
dao_scripts-1.5.2.dist-info/namespace_packages.txt,sha256=gbsNupMgtHQXOyBinbeLMo06f278s8My_9N-CrZh3Bk,13
|
31
|
+
dao_scripts-1.5.2.dist-info/top_level.txt,sha256=gbsNupMgtHQXOyBinbeLMo06f278s8My_9N-CrZh3Bk,13
|
32
|
+
dao_scripts-1.5.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|