Python bindings for the rgb-lib Rust library.
Install the latest stable release from PyPI by running:
pip install rgb-libInstallation 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.
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)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.