Skip to main content

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


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 details)

Uploaded Source

Built Distribution

nebula_chia-0.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file nebula-chia-0.1.tar.gz.

File metadata

  • Download URL: nebula-chia-0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for nebula-chia-0.1.tar.gz
Algorithm Hash digest
SHA256 4c5c892f06119df99d594de8253fdcd21f2ed38c5bdde3071693b0a24ba7790d
MD5 7203f031365ded3c864fcbb87ab5c080
BLAKE2b-256 4b13cbc42baf55652f376bc15229bb9920da5d5249c390129d2ce5082f48e555

See more details on using hashes here.

File details

Details for the file nebula_chia-0.1-py3-none-any.whl.

File metadata

  • Download URL: nebula_chia-0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for nebula_chia-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae0961f60fbff9d07a27bc883714228431330db11df9345aaa03e09551033add
MD5 750a8748ec0313d9336ba25678f1199a
BLAKE2b-256 64453bf28d85337da621ef697ab75cbd69cdeb0309d207a800537250a39ee415

See more details on using hashes here.

Supported by

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