Chia Network data ETL for Nebula Graph
Project description
nebula-chia
How To Use
ChaiBatchConvertor
Step 0, Installation
nebula-chia
could be installed either via pip or from this git repo itself.
Install via pip
python3 -m pip install nebula-chia
Install from the github repo
git clone git@github.com:wey-gu/nebula-chia.git
cd nebula-chia
python3 setup.py install
Step 1, Convert Chia as CSV files
ChiaBatchConvertor
is used to convert Chia Block Chain data into CSV files, which could then be used for nebula-importer
python3 -m pip install nebula-chia
$ ipython
# block_record_limit = 0 means unlimited
# coin_record_limit = 0 means unlimited
In [1]: from nebulachia.convertor import ChiaBatchConvertor
In [2]: c = ChaiBatchConvertor(block_record_limit=0, coin_record_limit=0, write_batch_size=10000)
In [3]: c.convert_block_record()
In [4]: c.convert_coin_record()
In [437]: ls -lth
-rw-r--r-- 1 weyl staff 173M May 19 13:01 coin_record.csv
-rw-r--r-- 1 weyl staff 77M May 19 12:59 block_record.csv
...
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
nebula-chia-0.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for nebula_chia-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae0961f60fbff9d07a27bc883714228431330db11df9345aaa03e09551033add |
|
MD5 | 750a8748ec0313d9336ba25678f1199a |
|
BLAKE2b-256 | 64453bf28d85337da621ef697ab75cbd69cdeb0309d207a800537250a39ee415 |