Skip to main content

Openchain Library

Project description

About

Library for creating blockchain networks.

https://circleci.com/bb/manti_by/openchain/tree/master.svg?style=shield&circle-token=7f803605b49718f938b3c300f707ba4fc188cb1e https://codecov.io/bb/manti_by/openchain/branch/master/graph/badge.svg https://img.shields.io/badge/license-BSD-blue.svg

WARNING: Currently library in Beta development status, use at your own risk.

Author: Alexander Chaika <manti.by@gmail.com>

Source link: https://bitbucket.org/manti_by/openchain

Requirements:

  • Base - Python 3.5+, ECSDA, LevelDB/Plyvel

  • Development - Flake8, Coverage

  • Examples - Docker, Tornado

Installation

Install system libraries

$ sudo apt install python3-dev libleveldb-dev

Install package from PyPi

$ pip install openchain

Alternatively clone from Bitbucket

$ git clone git@bitbucket.org:manti_by/openchain.git

$ cd openchain/

$ python setup.py install

Environment variables

  • $DATABASE_PATH - path to store LevelDB files

Run unit tests and coverage

$ mkdir -p /var/tmp/leveldb/test/

$ export DATABASE_PATH=’/var/tmp/leveldb/test/’

$ python -m unittest discover -s openchain/tests/ -p '*_tests.py'

$ coverage run -m unittest discover -s openchain/tests/ -p '*_tests.py'

$ coverage xml && coverage report -m

For more information about how to run examples, please refer to README in the examples directory

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

openchain-0.1.0rc1.linux-x86_64.tar.gz (31.9 kB view hashes)

Uploaded Source

Built Distribution

openchain-0.1.0rc1-py2.py3-none-any.whl (23.8 kB view hashes)

Uploaded Python 2 Python 3

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