twnet_parser/README.md

20 lines
426 B
Markdown
Raw Normal View History

2023-03-12 20:41:14 +00:00
A Python teeworlds client & server library, designed according to sans I/O (http://sans-io.readthedocs.io/) principles
2023-03-12 21:12:07 +00:00
2023-03-16 09:26:36 +00:00
## sample usage
2023-03-12 21:12:07 +00:00
```python
2023-03-16 09:26:36 +00:00
pck = parse(b'\x10\x10\x00\x04\x9a\xcb9\xc9')
for msg in pck.messages:
print(msg.name) # => close
2023-03-12 21:12:07 +00:00
```
2023-03-14 21:58:06 +00:00
## setup
```bash
git clone https://gitlab.com/teeworlds-network/twnet_parser
cd twnet_parser
python -m venv venv
source venv/bin/activate
pip install -r requirements
```