Openchain Library
Project description
Openchain Library
=================
About
-----
Library for creating blockchain networks.
**WARNING:** Currently library in **Alpha** development status.
It's a concept of vision, not working library yet.
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, PyP2P
Installation
------------
From `PyPi <https://pypi.python.org/pypi/openchain>`_
$ pip install openchain
From `Bitbucket <https://bitbucket.org/manti_by/openchain>`_
$ 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 the examples with Docker
----------------------------
$ cd examples/
$ docker build -t mantiby/openchain:latest .
$ docker swarm init
$ docker stack deploy -c docker-compose.yml openchain
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 report -m
=================
About
-----
Library for creating blockchain networks.
**WARNING:** Currently library in **Alpha** development status.
It's a concept of vision, not working library yet.
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, PyP2P
Installation
------------
From `PyPi <https://pypi.python.org/pypi/openchain>`_
$ pip install openchain
From `Bitbucket <https://bitbucket.org/manti_by/openchain>`_
$ 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 the examples with Docker
----------------------------
$ cd examples/
$ docker build -t mantiby/openchain:latest .
$ docker swarm init
$ docker stack deploy -c docker-compose.yml openchain
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 report -m
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for openchain-0.1.0a11.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8f90a2ad06e462092e7cd67c03aa50d9837941a393ec72976c7a4e2c28c37e9 |
|
MD5 | c56a7c7af525bd933c1e8863d06ec1f6 |
|
BLAKE2b-256 | 7c1feb7074da4e06d460ea6416b97097849363ba9a6fb1ab19a4314f618b1f10 |