py-tendermint
py-tendermint copied to clipboard
A Python microframework for building blockchain applications with Tendermint
py-Tendermint
A Python microframework for building blockchain applications with Tendermint
Inspired by Flask, py-tendermint makes it easy to quickly prototype a Tendermint ABCI application.
NOTE: the current version is broken due to ABCI changes For the interim, see py-abci
py-tendermint hides some of the repetitive setup for you by providing:
- A Patricia Trie backed by persistent storage
- Common Transaction model based on RLP (from Ethereum)
- RPC Client
- Accounts
- ed25519 Keys
If you want to stay closer to the metal, check out the Tendermint Python ABCI library: https://github.com/davebryson/py-abci
Requirements
- Python 3.6.x
- Tendermint engine (of course)
Install
python setup.py install(pip install in the future)
Install
python setup.py install(pip install in the future)
Try it out
- Run Tendermint 'init':
tendermint --home ~/.pytendermint initNote we use a different home directory. to keep all our blockchain apps seperated. - In another terminal, start the app:
python examples/simpleapp.py - Now start tendermint:
tendermint --home ~/.pytendermint node - Finally, open another terminal and talk to the app:
python examples/simpleapp_client.py