2020-08-01 13:17:17 +00:00
|
|
|
# simple-hypercore-protocol
|
|
|
|
|
|
|
|
[![Build Status](https://drone.autonomic.zone/api/badges/hyperpy/simple-hypercore-protocol/status.svg)](https://drone.autonomic.zone/hyperpy/simple-hypercore-protocol)
|
|
|
|
|
|
|
|
## The Hypercore protocol state machine
|
|
|
|
|
2020-08-01 13:25:06 +00:00
|
|
|
> **Work In Progress**
|
|
|
|
|
2020-08-01 13:17:17 +00:00
|
|
|
## Install
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ pip install simple-hypercore-protocol
|
|
|
|
```
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```python
|
|
|
|
from simple_hypercore_protocol import messages
|
|
|
|
|
|
|
|
print(messages.Request(index=0))
|
|
|
|
```
|
|
|
|
|
2020-08-01 13:19:56 +00:00
|
|
|
Output:
|
|
|
|
|
2020-08-01 13:17:17 +00:00
|
|
|
```sh
|
|
|
|
index: 0
|
|
|
|
```
|