Skip to main content

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.

  1. generate private key and public key
  2. sign a deploy with the private key
  3. use grpc api to interact with rnode
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrchain-0.3.12.tar.gz (97.6 kB view details)

Uploaded Source

Built Distribution

pyrchain-0.3.12-py3-none-any.whl (110.6 kB view details)

Uploaded Python 3

File details

Details for the file pyrchain-0.3.12.tar.gz.

File metadata

  • Download URL: pyrchain-0.3.12.tar.gz
  • Upload date:
  • Size: 97.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyrchain-0.3.12.tar.gz
Algorithm Hash digest
SHA256 a4ea6f8ce2804117c8cc580eea56569a8f950f79f110615d594be0ca9527fb91
MD5 9c001593cb20e9a9c5255c598592b260
BLAKE2b-256 dbdc8aeb14490147af0f4fff8417226c27daec8a3116c857eabcc75e352342e8

See more details on using hashes here.

File details

Details for the file pyrchain-0.3.12-py3-none-any.whl.

File metadata

  • Download URL: pyrchain-0.3.12-py3-none-any.whl
  • Upload date:
  • Size: 110.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyrchain-0.3.12-py3-none-any.whl
Algorithm Hash digest
SHA256 25030d9ee3dff789c5eb4a6f9c09c31d4c488d5dfabd90cc4a30123dec5e4a6c
MD5 768f73c7400a48976313dd192f2ce677
BLAKE2b-256 319a574adfbb40ac57e87a505df1833e800ad3c18d679d63ed65472065492a9b

See more details on using hashes here.

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