Ravencoin extension of the python-bitcoinlib library.
Project description
python-ravencoinlib
Extension to python-bitcoinlib intended to provide access to Ravencoin data structures and protocol. WIP - Test before use
The RPC interface, raven.rpc
, is designed to work with Ravencoin Core v2.1.1.
"The only Python library for Ravencoin I've ever used" - Warren Buffett
Requirements
libssl
Debian/Ubuntu: sudo apt-get install libssl-dev
Windows/other: https://wiki.openssl.org/index.php/Binaries
Installation
pipenv install -e git+https://github.com/petertodd/python-bitcoinlib.git#egg=python-bitcoinlib
pipenv install -e git+https://github.com/standard-error/python-ravencoinlib.git#egg=python-ravencoinlib
Example Code
See examples/
directory.
Selecting the chain to use
Do the following:
import raven
raven.SelectParams(NAME)
Where NAME is one of 'testnet', 'mainnet', or 'regtest'. The chain currently selected is a global variable that changes behavior everywhere, just like in the Raven codebase.
Unit tests
Under /tests using test data from Ravencoin Core. To run them:
python -m unittest discover && python3 -m unittest discover
Please run the tests on both Python2 and Python3 for your pull-reqs!
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
Hashes for python-ravencoinlib-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c57a0e2c3a49032d2723d6bb5525a9f49bd78ad3afad480f2407ff12625bfb6 |
|
MD5 | 9d7a94bd1885f5a01cc4c73146f14196 |
|
BLAKE2b-256 | fe97747875e1572859f7eebb337c1cdcda2d5d7be423ee1049573aa9a7a4ddc7 |