safeada / python-cardano

Python implementation of cardano project.
Other
33 stars 8 forks source link

[WIP] Shelley Era

The old version is archived in byron branch, current development is for shelley era.

Python implementation of Cardano project, including network protocol, crypto primitives, wallet logic, and more.

Why This Project

Why Python

Python is still one of the most cleanly designed, developer friendly programming language out there, has a reputation of executable pseudocode. And lightweight thread provided by gevent makes it suitable to write networking software, and easy interoperability with C thanks to Cython enables us to improve performance incrementally.

With python, we can develop clean prototype very fast, with good performance. And in the future we can always move the CPU intensive code to C after we indentified the hotspot.

Build & Test

.. code-block:: shell

$ virtualenv -p python3 .env
$ source .env/bin/activate
$ pip install -r requirements.txt
$ python setup.py build_ext --inplace

$ mkdir ./test_db
$ python scripts/pycardano.py run
sync block data from mainnet and subscribing for new blocks automatically.
$ python scripts/pycardano.py wallet create default
generate wallet

Features

Modules

TODOs