"A tool to monitor DAO activity"
Project description
DAO-Analyzer's cache-scripts
Set-up & Running
The easiest method by far to download and run the application is to use pip to install it
pip install dao-analyzer
Then, you can use this script using the command daoa-cache-scripts
Download
Enter in your terminal (git must be installed) and write down:
git clone https://github.com/Grasia/dao-analyzer
After that, move to repository root directory with:
cd dao-analyzer
Installation
All code has been tested on Linux, but it should work on Windows and macOS, 'cause it just uses the python environment.
So, you must install the following dependencies to run the tool:
- python3 (3.10 or later)
- python3-pip
Now, install the Python dependencies:
pip3 install -r requirements.txt
If you don't want to share Python dependencies among other projects, you should use a virtual environment, such as virtualenv.
How to run it?
If you want all the data used in the app, you can just use:
python3 -m cache_scripts
this will create a folder called datawarehouse
with a lot of files in apache's arrow format.
You can import those files to pandas
with read_feather
. For example:
pd.read_feather('datawarehouse/aragon/apps.arr')
Usage guide
If you don't want all the data (and it can take a lot of time), you have a lot of options available to select whichever data you want. The full --help
output is
usage: daoa-cache-scripts [-h] [-V] [-p [{aragon,daohaus,daostack} ...]]
[--ignore-errors | --no-ignore-errors] [-d] [-f] [-F] [--skip-daohaus-names]
[-n {mainnet,_theGraph,arbitrum,xdai,polygon} [{mainnet,_theGraph,arbitrum,xdai,polygon} ...]]
[-c COLLECTORS [COLLECTORS ...]] [--block-datetime BLOCK_DATETIME]
[-D DATAWAREHOUSE] [--cc-api-key CC_API_KEY]
Main script to populate dao-analyzer cache
options:
-h, --help show this help message and exit
-V, --version Displays the version and exits
-p [{aragon,daohaus,daostack} ...], --platforms [{aragon,daohaus,daostack} ...]
The platforms to update. Every platform is updated by default.
--ignore-errors, --no-ignore-errors
Whether to ignore errors and continue (default: True)
-d, --debug Shows debug info
-f, --force Removes the cache before updating
-F, --delete-force Removes the datawarehouse folder before doing anything
--skip-daohaus-names Skips the step of getting Daohaus Moloch's names, which takes some time
-n {mainnet,_theGraph,arbitrum,xdai,polygon} [{mainnet,_theGraph,arbitrum,xdai,polygon} ...], --networks {mainnet,_theGraph,arbitrum,xdai,polygon} [{mainnet,_theGraph,arbitrum,xdai,polygon} ...]
Networks to update. Every network is updated by default
-c COLLECTORS [COLLECTORS ...], --collectors COLLECTORS [COLLECTORS ...]
Collectors to run. For example: aragon/casts
--block-datetime BLOCK_DATETIME
Get data up to a block datetime (input in ISO format)
-D DATAWAREHOUSE, --datawarehouse DATAWAREHOUSE
Specifies the destination folder of the datawarehouse
--cc-api-key CC_API_KEY
Set the CryptoCompare API key (overrides environment variable)
Getting only data from a platform
You can select the platform to download data about with the --platform
selector. Let's download only data for daostack and aragon:
daoa-cache-scripts --platforms daostack aragon
Getting only data from a network
You can select the chain to get data from with the --networks
switch. For example, to get data only for xdai network, you can do:
daoa-cache-scripts --networks xdai
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dao-scripts-1.1.9.post3.dev4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90fe5b9565e6ac6800f08d542f6be10874f78f4c9e655ae109c4d84a9b854f24 |
|
MD5 | 5a98a1d16070b3aa4d05da931b2dae98 |
|
BLAKE2b-256 | 3f71418934cb7f68b4288380db631fed537ca7b5ca07af0499c9dd3d0e0cc1a2 |
Hashes for dao_scripts-1.1.9.post3.dev4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81ad10ee7bf1ba7eaac97940828e34e1f6f454a4aff46c87e4324af2ae10bea9 |
|
MD5 | ccbd448d10004c4e116a723dc0e93290 |
|
BLAKE2b-256 | 0e259e1e9b09feb1de6f9f51d79aa62e634081375431e36b6346c3e226912b0c |