Skip to main content

"A tool to download data to monitor DAO activity"

Project description

PyPI DOI 10.5281/zenodo.10938359.svg License Kaggle

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-scripts

Then, you can use this script using the command daoa-cache-scripts or dao-scripts

Download

Enter in your terminal (git must be installed) and write down:

git clone https://github.com/Grasia/dao-scripts

After that, move to the repository root directory with:

cd dao-scripts

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:

dao-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,arbitrum,xdai,polygon} [{mainnet,arbitrum,xdai,polygon} ...]]
                          [-c COLLECTORS [COLLECTORS ...]] [--block-datetime BLOCK_DATETIME]
                          [-D DATAWAREHOUSE]

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,arbitrum,xdai,polygon} [{mainnet,arbitrum,xdai,polygon} ...], --networks {mainnet,arbitrum,xdai,polygon} [{mainnet,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

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

Acknowledgements

Logo Ministerio de Ciencia e Innovación. Gobierno de EspañaLogotipo European Research CouncilLogo GRASIA UCMLogo Universidad Complutense de Madrid

DAO-Analyzer is developed under the umbrella of multiple research projects:

  • Chain Community, funded by the Spanish Ministry of Science and Innovation (RTI2018‐096820‐A‐I00) and led by Javier Arroyo and Samer Hassan
  • P2P Models, funded by the European Research Council (ERC-2017-STG 625 grant no.: 75920), led by Samer Hassan.
  • DAOapplications, funded by the Spanish Ministry of Science and Innovation (PID2021-127956OB-I00) and led by Javier Arroyo and Samer Hassan

Cite as

You can just cite one of our publications:

Javier Arroyo, David Davó, Elena Martínez-Vicente, Youssef Faqir-Rhazoui, and Samer Hassan (2022). "DAO-Analyzer: Exploring Activity and Participation in Blockchain Organizations.". Companion Publication of the 2022 Conference on Computer Supported Cooperative Work and Social Computing (CSCW'22 Companion). ACM, 193–196.

Or, if you want to explicitly cite the application:

Arroyo, Javier, Davó, David, Faqir-Rhazoui, Youssef, & Martínez Vicente, Elena. (2023). DAO Analyzer. Zenodo. https://doi.org/10.5281/zenodo.7669689

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dao_scripts-1.5.11.tar.gz (47.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dao_scripts-1.5.11-py3-none-any.whl (50.6 kB view details)

Uploaded Python 3

File details

Details for the file dao_scripts-1.5.11.tar.gz.

File metadata

  • Download URL: dao_scripts-1.5.11.tar.gz
  • Upload date:
  • Size: 47.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dao_scripts-1.5.11.tar.gz
Algorithm Hash digest
SHA256 1da51817c3be438dd2f119441e3070dcf001889865ba4367092cfb454cfd0abb
MD5 f89fac888092e5e4a288563840cf6288
BLAKE2b-256 8c8256bb0cc07bffad91b634bf9d4c64ddeef70254c1ca453fa688d03bf82e66

See more details on using hashes here.

Provenance

The following attestation bundles were made for dao_scripts-1.5.11.tar.gz:

Publisher: ci.yml on Grasia/dao-scripts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dao_scripts-1.5.11-py3-none-any.whl.

File metadata

  • Download URL: dao_scripts-1.5.11-py3-none-any.whl
  • Upload date:
  • Size: 50.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dao_scripts-1.5.11-py3-none-any.whl
Algorithm Hash digest
SHA256 fb4abd5d56dab12486c749eb942734335f0d343d4d21543fef52b46cc5335d4c
MD5 ea40e8269c7007692376c17b8718a553
BLAKE2b-256 08944959199f9b716265e74fad58008751d84a98aca7b8c2098d553ffcfc0d80

See more details on using hashes here.

Provenance

The following attestation bundles were made for dao_scripts-1.5.11-py3-none-any.whl:

Publisher: ci.yml on Grasia/dao-scripts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page