Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 870 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 870 Bytes

Python client for godbledger

files transaction.proto -> from the GoDBLedger Source, provides the GRPC protocol definition transaction_pb2.py -> generated python code from GRPC transaction_pb2_grpc.py -> generated python code from GRPC sendtransaction -> example script to send a transaction to GoDBLedger gettrialbalance -> example script to obtain the trial balance from GoDBLedger

To get started with a python script you will need a copy of the protobuffers.

wget https://raw.githubusercontent.com/darcys22/godbledger/master/proto/transaction.proto

Install the GRPC pip

pip install grpcio-tools
python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. ./transaction.proto

this will generate 2 py files that can be imported with the following in your script

import transaction_pb2
import transaction_pb2_grpc