Nervos CKB SDK
Project description
CKB SDK Python
This is my personal side project, which is not an official SDK. The project is still in an early stage, the interfaces are unstable, and I may add breaking changes without notifications.
The library works only with Python 3.
Quick Start
Install in a virtualenv
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Example
from ckb.rpc import rpc
rpc.get_tip_block_number()
Design Choices
This project does not add model classes, instead it uses the JSON response
dict directly. You can check the dict schema in ckb/types.py
.
I want to experiment another way to build a CKB SDK. This project will not
support any features that require knowing how a lock or type script works. I'm
going to create various generator library to building transaction, such as
ckb-sdk-python-secp256k1-generator
.
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
Built Distribution
File details
Details for the file ckb-0.6.0.tar.gz
.
File metadata
- Download URL: ckb-0.6.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 654d78a86a4457f15f7cdf73b28152f6e2d0aad2a686134a1b8a942d47557894 |
|
MD5 | be1b12edfe9817cccb7ef5de1fcccfcb |
|
BLAKE2b-256 | 21bf5d2a9bbe446e68afd23d429371b01d9648387e3268c7b3d1d0ecc0b3d070 |
File details
Details for the file ckb-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: ckb-0.6.0-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36e730ad4f9c4776a9d39d9cc58917ca712634f8d2fb8901c2d2d68eb9324dcc |
|
MD5 | 8bcee25c7c1e592fc970f641288e2365 |
|
BLAKE2b-256 | 05ac063a807bca2759402cd2de0a3631247fd77a36163530781baccdcfd8e4a2 |