Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mcpi-revival/pi_protocol


https://github.com/mcpi-revival/pi_protocol

hacktoberfest protocol

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# pi_protocol

## How to use

```
import pi_protocol

data: bytes = b"\x82\x00\x05Steve\x00\x00\x00\x09\x00\x00\x00\x09"
decoded_packet: dict = pi_protocol.decode_packet(data)
print("Decoded your packet :)")
print(decoded_packet)
print("let's reencode it :)")
encoded_packet: bytes = pi_protocol.encode_packet(decoded_packet)
print(encoded_packet)
```