For your consideration, this PR resolves #358 by adding an optional binary argument to the a2s_rules function. Please let me know if you would prefer a different solution.
I have added a unit test for the new behavior, plus a basic "happy path" test covering a2s_rules when all optional arguments use their defaults, since the steam.game_servers module did not have any existing test coverage.
It looks like this project has not yet dropped legacy Python support, so I have added an upper version limit to protobuf in requirements.txt and setup.py because version 3.18 dropped support for Python 2.7.
Finally, the docs were erroneously reporting that the a2s_rules return type is a list, so I have corrected this to report the type as a dict.
For your consideration, this PR resolves #358 by adding an optional
binary
argument to thea2s_rules
function. Please let me know if you would prefer a different solution.I have added a unit test for the new behavior, plus a basic "happy path" test covering
a2s_rules
when all optional arguments use their defaults, since thesteam.game_servers
module did not have any existing test coverage.It looks like this project has not yet dropped legacy Python support, so I have added an upper version limit to
protobuf
inrequirements.txt
andsetup.py
because version 3.18 dropped support for Python 2.7.Finally, the docs were erroneously reporting that the
a2s_rules
return type is alist
, so I have corrected this to report the type as adict
.