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
Note:
Nebula-chia depends on
chia-blockchain, the easiest way is to call it from the venv inside the Chia Network repo.
Install Chia Netowrk refers to https://github.com/Chia-Network/chia-blockchain/wiki/INSTALL
Activate venv like:
cd chia-blockchain . ./activate
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
$ python
# block_record_limit = 0 means unlimited
# coin_record_limit = 0 means unlimited
from nebulachia.convertor import ChiaBatchConvertor
c = ChaiBatchConvertor(block_record_limit=0, coin_record_limit=0, write_batch_size=10000)
c.convert_block_record()
c.convert_coin_record()
exit()
$ 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
...
Metadata
Release files for nebula-chia 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nebula-chia-0.2.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nebula_chia-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / nebula-chia-0.2.tar.gz
| Download URL | nebula-chia-0.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0957ed9e774901bf9435f31a4d1ddeefa407643637aebb652b677896be2b7317
|
|
BLAKE2b-256 checksum How to use checksums |
ded7dea3cd9a1650dee068655f554476ba67f2f6ddc348416db3d80bf41cac53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / nebula_chia-0.2-py3-none-any.whl
| Download URL | nebula_chia-0.2-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59e6fa79e527dd7573626740851608262512b58c928bebadabac9bfd3312b013
|
|
BLAKE2b-256 checksum How to use checksums |
fbad825b47ef6159a15c69154556fedfb6165ca48a061610c872e857ddf3576e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for nebula-chia 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.