blockchain-etl / icon-etl

Python scripts for ETL (extract, transform and load) jobs for ICON blocks, transactions, receipts, and logs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ICON ETL

Build Status Pypi Version Pypi Version

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

Full documentation available here.

Quickstart

Install ICON ETL:

pip3 install icon-etl

Export blocks and transactions:

> iconetl export_blocks_and_transactions --start-block 0 --end-block 500000 \
--blocks-output blocks.csv --transactions-output transactions.csv

Export logs and receipts:

> iconetl export_receipts_and_logs --transaction-hashes hashes.txt \
--receipts-output receipts.csv --logs-output logs.csv

Running Tests

> pip3 install -e .[dev]
> export ICON_ETL_RUN_SLOW_TESTS=True
> pytest -vv

Running Tox Tests

> pip3 install tox
> tox

About

Python scripts for ETL (extract, transform and load) jobs for ICON blocks, transactions, receipts, and logs.

License:MIT License


Languages

Language:Python 100.0%