| qstat | |||||
|---|---|---|---|---|---|
| SummaryA Python wrapper around QStat, the realtime game server status tool. Overview    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 softwareThe 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/. Requirements
 LicenseThis code is released under the GPL. UsageThe 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. Sample usageWhen 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)
InvocationWhen 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
ReferencesRelease history
 AuthorThis module was written by Erik Max Francis. If you use this software, have suggestions for future releases, or bug reports, I'd love to hear about it. VersionVersion 1.0 $Date: 2003/02/24 $ $Author: max $ 
 |