Interface to RChain RNode RPC
Project description
pyrchain
Interface to RChain RNode RPC.
Install
Pyrchain is Python 3 library for interfacing with RChain RNode gRPC API. The library is distributed via PyPI (https://pypi.org/project/pyrchain/). You can install it for current user by running:
pip3 install -U pyrchain
See setup.py
for information about 3rd party library dependencies.
Examples
The features below are provided in pyrchain.
- generate private key and public key
- sign a deploy with the private key
- use grpc api to interact with rnode
- Vault Api of rchain to do transfer and check balance
Development
To install the development package:
pip install -e .[dev]
To update protocol buffers from upstream run:
./update-protobufs
./update-generated
This first command will fetch latest RChain *.proto
files from dev
branch
into ./protobuf
directory. The second command will generate gRPC Python code
corresponding to the protcol buffers into rchain.pb
package (./rchain/pb
).
To run integration tests run:
python -m pytest rchain/tests
python -m mypy rchain
isort --recursive --check-only rchain
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyrchain-0.4.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f73a6b5fd35a7bacf0ef8ce152aa1a517e7bd59b5b9e3f407ca2e5be4b8e1451 |
|
MD5 | 1fbe2b499fa7e2b732d0f6878c1edea0 |
|
BLAKE2b-256 | a51ca96c57ef2726b76c4b82da95a0e2bb54386974668dce17f75616392b8fdf |