Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.16 KB

README.md

File metadata and controls

51 lines (34 loc) · 1.16 KB

RGB Lib Python bindings

Python bindings for the rgb-lib Rust library.

Installation

From PyPI (wheel)

Install the latest stable release from PyPI by running:

pip install rgb-lib

From source distribution (sdist)

Installation from source distribution (tested on Linux) has the following requirements:

The process is quite long and requires several GB of disk space, due to the builds of the required Docker image and the rgb-lib rust library.

Usage

Once installed, you can import the rgb_lib module and call its APIs.

As an example:

import rgb_lib

keys = rgb_lib.generate_keys(rgb_lib.BitcoinNetwork.REGTEST)
print(keys.account_xpub)

Demo

The demo/ directory contains a demonstration of the most common operations in the form of a Jupyter notebook. See the included README.md file for more details.