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: this is still very alpha stuff DO NOT USE IN PRODUCTION.
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
- Python 3.6.x
- Tendermint engine (of course)
python setup.py install
(pip install in the future)
python setup.py install
(pip install in the future)
- Run Tendermint 'init':
tendermint --home ~/.pytendermint init
Note 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