Skip to main content

Python based ABCI Server for Tendermint

Project description

https://travis-ci.org/davebryson/py-abci.svg?branch=master https://codecov.io/gh/davebryson/py-abci/branch/master/graph/badge.svg https://img.shields.io/pypi/v/abci.svg

Build blockchain applications in Python for Tendermint

Version

Supports: ABCI v0.15.0 and Tendermint v0.26.0

Installation

Requires Python >= 3.6.5

pip install abci OR python setup.py install

Generating Protobuf

You ONLY need to mess with the protobuf stuff if you’re developing on this code base, not to create apps. If you just want to create apps, jump to Getting Started

A note on protobuf. You’ll notice 2 additional directories: github and protobuf. The github dir is the protobuf generated code used by abci. It adds proper Python path (via __init___) and preserves all the import statements used by Tendermint for the various protobuf files spread across their codebase. The protobuf directory is the source .proto files.

To build the protobuf files:

  1. Install protoc so it’s available as a command from a terminal

  2. Run the genproto.py script

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/davebryson/py-abci/blob/master/examples/counter.py

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

mt_abci-0.6.0.tar.gz (22.0 kB view details)

Uploaded Source

File details

Details for the file mt_abci-0.6.0.tar.gz.

File metadata

  • Download URL: mt_abci-0.6.0.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for mt_abci-0.6.0.tar.gz
Algorithm Hash digest
SHA256 e2278c648521e48c1881d6543ffc1ba460327f74824225b9e5ecace0100c9dac
MD5 f5cac526c519d0777b1e380621c31841
BLAKE2b-256 3779402dd26d1fbc1ae24d2ebdec07c77738fad66474cfab4806e1c5025ba047

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