A Python library for interacting and working with the Woop blockchain.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Janet Liang b1118b7030
[refactor] Move blockchain interaction methods out of rpc lib (#4)
5 years ago
pyhmy [refactor] Move blockchain interaction methods out of rpc lib (#4) 5 years ago
tests [refactor] Move blockchain interaction methods out of rpc lib (#4) 5 years ago
.gitignore [git] Add .gitignore 5 years ago
LICENSE.txt [license] Update license 5 years ago
Makefile [Make] Add make dev to install pytest & dependencies for dev 5 years ago
README.md Basic Python SDK (#1) 5 years ago
pytest.ini [test] Add pytest skeleton + basic tests 5 years ago
setup.py [setup] Require incremental lib for install 5 years ago

README.md

Pyhmy - Harmony's python utilities

This library only supports Python 3.6+

A Python library for interacting and working the Harmony blockchain and related codebases.

Full documentation is located on Harmony's GitBook (in progress).

Installation

pip install pyhmy

On MacOS:

Make sure you have Python3 installed, and use python3 to install pyhmy

sudo pip3 install pathlib
sudo pip3 install pyhmy

Development

Clone the repository and then run the following:

make install

Running tests

You need to run a local Harmony blockchain (instructions here) that has staking enabled. You can run all of the tests with the following:

make test

Or directly with pytest (reference here for more info):

py.test tests

Releasing

You can release this library with the following command (assuming you have the credentials to upload):

make release

TODO: sample of how to use the library, reference Tezos. TODO: start (and finish) some of the documentation. TODO: add more blockchain rpcs TODO: check None return types for rpcs TODO: more detailed tests for rpcs