Metadata-Version: 2.1
Name: openchain
Version: 0.1.0rc3
Summary: Openchain Library
Home-page: https://bitbucket.org/manti_by/openchain/
Author: Alexander Chaika
Author-email: manti.by@gmail.com
License: BSD
Keywords: blockchain
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3.6
Classifier: Operating System :: POSIX :: Linux
Requires-Python: >=3.6
Requires-Dist: ecdsa (<0.14leveldb>=0.194,<0.195,>=0.13)
Requires-Dist: plyvel (<1.1.0,>=1.0.5)
Requires-Dist: xxhash (<1.3.0,>=1.2.0)

Openchain Library
=================

.. image:: https://circleci.com/bb/manti_by/openchain/tree/master.svg?style=shield&circle-token=7f803605b49718f938b3c300f707ba4fc188cb1e
    :target: https://circleci.com/bb/manti_by/openchain/tree/master

.. image:: https://codecov.io/bb/manti_by/openchain/branch/master/graph/badge.svg
  :target: https://codecov.io/bb/manti_by/openchain

.. image:: https://img.shields.io/badge/license-BSD-blue.svg
    :target: https://bitbucket.org/manti_by/openchain/src/master/LICENSE.txt

About
-----

Library for creating blockchain networks.

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

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

Requirements:

- Base - Python 3.6+, ECSDA, LevelDB/Plyvel
- Development - Flake8, Coverage
- Examples - Docker, Tornado

Installation
------------

Install system libraries::

    $ sudo apt install python3-dev libleveldb-dev

Install package from `PyPi <https://pypi.org/pypi/openchain>`_::

    $ pip install openchain

Alternatively you can clone 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 unit tests with coverage
----------------------------

::

    $ mkdir -p /var/lib/openchain/test/
    $ export DATABASE_PATH='/var/lib/openchain/test/'
    $ 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 <https://bitbucket.org/manti_by/openchain/src/master/examples/README.rst>`_
**in the examples directory**


