Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

A tiny Python "library" for querying Enemy Territory: Quake Wars servers.

Notifications You must be signed in to change notification settings

jmp/etqw-server-query-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

etqwlib

This is a small library for querying Enemy Territory: Quake Wars servers.

usage

Usage is pretty simple. The fetch_data function returns a 3-tuple containing the server variables, player data and server info in that order. Each of these is a dictionary:

import etqwlib
vars, players, info = etqwlib.fetch_data('example.com', 27733)
print vars['si_maxplayers']  # '23'
print players[10]['nick']    # nick of player id 10 (with colors stripped)
print info['time_left']      # number of seconds left

About

A tiny Python "library" for querying Enemy Territory: Quake Wars servers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages