项目作者: codabl

项目描述 :
Python scripts for ETL (extract, transform and load) jobs for Celo blockchain blocks, transactions and more coming.
高级语言: Python
项目地址: git://github.com/codabl/celo-etl.git
创建时间: 2020-04-16T01:02:06Z
项目社区:https://github.com/codabl/celo-etl

开源协议:MIT License

下载


Celo ETL

Build Status
Discord

Celo ETL lets you convert blockchain data into convenient formats like CSVs and relational databases.

Celo ETL is a fork of

Quickstart

Install Celo ETL:

  1. pip3 install celo-etl

Export blocks and transactions (Schema, Reference):

  1. > celoetl export_blocks_and_transactions --start-block 0 --end-block 100000 \
  2. --provider-uri https://alfajores-forno.celo-testnet.org --blocks-output blocks.csv --transactions-output transactions.csv

For the latest version, check out the repo and call

  1. > pip3 install -e .
  2. > python3 celoetl.py

Running Tests

  1. > pip3 install -e .[dev,streaming]
  2. > export ETHEREUM_ETL_RUN_SLOW_TESTS=True
  3. > pytest -vv

Running Tox Tests

  1. > pip3 install tox
  2. > tox

Running in Docker

  1. Install Docker https://docs.docker.com/install/

  2. Build a docker image

    1. > docker build -t celo-etl:latest .
    2. > docker image ls
  3. Run a container out of the image

    1. > docker run -v $HOME/output:/celo-etl/output celo-etl:latest export_all -s 0 -e 100000 -b 50000 -p https://alfajores-forno.celo-testnet.org