|
|
|
# Pyhmy - Harmony's python utilities
|
|
|
|
|
|
|
|
**This library is for python 3 only.**
|
|
|
|
|
|
|
|
A Python library for interacting and working the [Harmony blockchain](https://harmony.one/)
|
|
|
|
and [related codebases](https://github.com/harmony-one).
|
|
|
|
|
|
|
|
[Full documentation is located on Harmony's GitBook](https://harmony.one/) (in progress).
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
```
|
|
|
|
sudo pip3 install pathlib
|
|
|
|
sudo pip3 install pyhmy
|
|
|
|
|
|
|
|
Requires Python3.5+
|
|
|
|
```
|
|
|
|
|
|
|
|
## Development
|
|
|
|
|
|
|
|
Clone the repository and then run the following:
|
|
|
|
```
|
|
|
|
make install
|
|
|
|
```
|
|
|
|
|
|
|
|
## Running tests
|
|
|
|
|
|
|
|
You can run all of the tests with the following:
|
|
|
|
|
|
|
|
```
|
|
|
|
make test
|
|
|
|
```
|
|
|
|
|
|
|
|
Or directly with `pytest` (reference [here](https://docs.pytest.org/en/latest/index.html) 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.
|