Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcpi-revival/pi_protocol
https://github.com/mcpi-revival/pi_protocol
hacktoberfest protocol
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mcpi-revival/pi_protocol
- Owner: MCPI-Revival
- License: mit
- Created: 2021-04-18T20:00:49.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-12T13:10:05.000Z (7 months ago)
- Last Synced: 2024-10-29T11:18:52.314Z (about 2 months ago)
- Topics: hacktoberfest, protocol
- Language: Python
- Homepage:
- Size: 92.8 KB
- Stars: 6
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pi_protocol
## How to use
```
import pi_protocoldata: 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)
```