A teeworlds network protocol library, designed according to sans I/O (http://sans-io.readthedocs.io/) principles
Go to file
2023-03-14 22:58:06 +01:00
.gitignore First draft 2023-03-14 22:58:06 +01:00
.gitlab-ci.yml First draft 2023-03-14 22:58:06 +01:00
.pylintrc First draft 2023-03-14 22:58:06 +01:00
main.py First draft 2023-03-14 22:58:06 +01:00
README.md First draft 2023-03-14 22:58:06 +01:00
requirements.txt First draft 2023-03-14 22:58:06 +01:00

A Python teeworlds client & server library, designed according to sans I/O (http://sans-io.readthedocs.io/) principles

goal

msg = twnet_parser.parse(b'\x10\x10\x00\x04\x9a\xcb9\xc9')
print(msg)

# <class '__main__.CtrlMessage'>: {'name': 'disconnect', 'token': b'\x9a\xcb9\xc9', 'fields': {}}

setup

git clone https://gitlab.com/teeworlds-network/twnet_parser
cd twnet_parser
python -m venv venv
source venv/bin/activate
pip install -r requirements