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.
Metadata
Release files for ckb 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ckb-0.6.0.tar.gz | 11.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ckb-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.4 kB
Release files / ckb-0.6.0.tar.gz
| Download URL | ckb-0.6.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
654d78a86a4457f15f7cdf73b28152f6e2d0aad2a686134a1b8a942d47557894
|
|
BLAKE2b-256 checksum How to use checksums |
21bf5d2a9bbe446e68afd23d429371b01d9648387e3268c7b3d1d0ecc0b3d070
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / ckb-0.6.0-py3-none-any.whl
| Download URL | ckb-0.6.0-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36e730ad4f9c4776a9d39d9cc58917ca712634f8d2fb8901c2d2d68eb9324dcc
|
|
BLAKE2b-256 checksum How to use checksums |
05ac063a807bca2759402cd2de0a3631247fd77a36163530781baccdcfd8e4a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|