Table of Contents
A Python wrapper around QStat, the realtime game server status tool.
PyQStat is a fairly basic Python wrapper around QStat, an application designed to report server
status for a wide variety of realtime game servers. PyQStat
invokes QStat via
Although primarily intended as an importable module for integrating QStat functionality into other applications, PyQStat can also be used from the command line.
Getting the software
The current version of qstat is 1.0.
The latest version of the software is available in a tarball here: http://www.alcyone.com/pyos/qstat/qstat-latest.tar.gz.
The official URL for this Web site is http://www.alcyone.com/pyos/qstat/.
This code is released under the GPL.
The module contains three classes: Application, Server, and Player.
The Application class is used to encapsulate the interaction with the QStat application. It contains the following methods:
The Server class returned by the
The Player class, instances of which are contained in the
Some or many of the above characteristics might be
Finally, there is an Error class which is raised in the occasion when the QStat application does not appear to be functioning properly.
When using the module itself, in its basic form it can be as simple as:
import qstat application = qstat.Application() server = application.run('q3s', 'some.quake.server') print server.hostName for player in server.players: print "%s (%d)" % (player.name, player.score)
When used as a standalone application, the required usage is:
qstat.py <options> <server type> <server address>...
The server type is a code used by the QStat application; see QStat's help page for more information.
The following command line options alter the behavior of the program as follows:
PyQStat is primarily intended to be used as an imported module. It can be invoked from the command line:
qstat.py q3s cs.somewhere.tld
Version 1.0 $Date: 2003/02/24 $ $Author: max $
Table of ContentsThis document was automatically generated on Mon Feb 24 01:58:42 2003 by HappyDoc version 2.0.1