Small Python module to decode the DayZ rules binary response.
Python >= 3.9, python-a2s
pip3 install .
dayzquery.dayz_rules(address, timeout=DEFAULT_TIMEOUT, encoding=DEFAULT_ENCODING)
async dayzquery.dayz_arules(address, timeout=DEFAULT_TIMEOUT, encoding=DEFAULT_ENCODING)
dayzquery.dayz_rules_decode(rules_resp, encoding=DEFAULT_ENCODING)
dayz_rules_decode
decodes a a2s.rules(encoding=None)
response, the other functions work just like their a2s counterpart.
All functions return a DayzRules instance. Some documentation is included in the source file.
MIT