Skip to content

MCPI-Revival/pi_protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

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)

Releases

No releases published

Packages

No packages published

Languages