Skip to main content

Build blockchain applications in Python for Tendermint

Version

Supports ABCI v0.15.0 and latest Tendermint (0.26.0)

Installation

Requires Python >= 3.6.5

pip install tm-abci OR python setup.py install

Generating Protobuf

ONLY needed for developing this code base, not to create apps. If you just want to create apps, goto Getting Started

  1. Update all .proto files (protobuf dir)

  2. Install protoc

  3. Install go

  4. Install gogo protobuf via go

  5. Run make gogo

Or using Docker container:

  1. Update all .proto files (protobuf dir)

  2. Build image:sudo docker build -t abcidev .

  3. Run container: sudo docker run -it abcidev sh

  4. Inside container run: make gogo

Testing with tm-bench

Use this if you want to test throughput of server and application. By default, dummpy app is used, you can change it in docker-compose.yml, abci command section (before build).

  1. Build tm-bench and move to tm-abci directory (you can get it here)

  2. Change testing config in tm-bench command section of docker-compose.yml

  3. Run sudo docker-compose -f docker-compose.yml up -d

  4. Wait about minute (or more/less if you changed default) and run sudo docker-compose -f docker-compose.yml logs --tail 50 tm-bench

Getting Started

  1. Extend the BaseApplication class

  2. Implement the Tendermint ABCI callbacks - see https://github.com/tendermint/abci

  3. Run it

See the example app counter.py application under the examples directory here: https://github.com/SoftblocksCo/tm-abci/blob/master/examples/counter.py

Metadata

Release files for tm-abci 0.6.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tm-abci 0.6.3
File Size Uploaded
tm-abci-0.6.3.tar.gz 22.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tm-abci 0.6.3
File Interpreter ABI Platform
tm_abci-0.6.3-py3-none-any.whl Python 3 none any Details

Total release size: 48.6 kB

Release files / tm-abci-0.6.3.tar.gz

Download URL tm-abci-0.6.3.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3833cfb1084effae39e44bbf4c256ea878cd2b8bb459fbca504c3a6b3e8b58e7
BLAKE2b-256 checksum
How to use checksums
7e2800782a917fe71c8458f29b45baf9e1137a39d1e0a78db0b990b88eefb73e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/20.7.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/3.5.2

Release files / tm_abci-0.6.3-py3-none-any.whl

Download URL tm_abci-0.6.3-py3-none-any.whl
Size 26.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0d3ccb44a3253a09a7fa308933f4e107467be3b6668f049f8bd3ef8b6709a63
BLAKE2b-256 checksum
How to use checksums
4ec8160d222cdadd59ff4e655403819b52377b4d5e1c13e38eff48940dd114ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/20.7.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/3.5.2

Release history Release notifications | RSS feed

This release

0.6.3 This release

2 release files

0.6.2

1 release file

0.6.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page