A stupidly simple RCON library
Yeah, just use it.
- Tested on the following engines:
- quake2.
python setup.py install
Generic
import pyrcon
conn = pyrcon.RConnection("example.com", 123, "password")
conn.send("command")
Quake2
import pyrcon
conn = pyrcon.q2RConnection("example.com", 27910, "password")
conn.status()
To use the webapi for q2:
Local
- Install bottle
- Create/update a file called q2webapi.conf
[web] host = 0.0.0.0 port = 80 [q2] host = 127.0.0.1 port = 27910 password = rconpassword
- Run python bottleq2-local.py
Remote
- Install bottle
- Run python bottleq2-remote.py
MIT licensed. See LICENSE.