Skip to main content

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

ckb-0.6.0.tar.gz (11.7 kB view hashes)

Uploaded Source

Built Distribution

ckb-0.6.0-py3-none-any.whl (13.8 kB view hashes)

Uploaded Python 3

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