Query Halo Custom Edition servers for valuable information
Project description
Halo Server Query
Query and retrieve information about Halo: Custom Edition servers (based on Chaosvex's "Halo-Status")
example
Example Usage:
from pprint import PrettyPrinter
from haloserverquery import queryServer
printer = PrettyPrinter(indent=4)
serverInfo = queryServer("127.0.0.1", 2302)
printer.pprint(serverInfo)
Example Output:
{ 'dedicated': '1',
'final': 'Sapp',
'fraglimit': '50',
'game_classic': '0',
'game_flags': '26',
'gamemode': 'openplaying',
'gametype': 'Slayer',
'gamevariant': 'TeamPistols',
'gamever': '01.00.10.0621',
'hostname': 'server name',
'hostport': '23900',
'mapname': 'carousel',
'maxplayers': '16',
'nextmap': 'carousel',
'nextmode': 'TeamPistols',
'numplayers': '7',
'password': '0',
'player_flags': '1101561860,136',
'players': { 0: { 'name': 'Extreme',
'ping': '108',
'score': '0',
'slot': 0,
'team': '0'},
1: { 'name': 'ext',
'ping': '90',
'score': '30',
'slot': 1,
'team': '1'},
2: { 'name': 'sL Bryan',
'ping': '90',
'score': '13',
'slot': 2,
'team': '0'},
3: { 'name': 'Lizmari',
'ping': '96',
'score': '8',
'slot': 3,
'team': '0'},
4: { 'name': 'timefreeze',
'ping': '110',
'score': '2',
'slot': 4,
'team': '0'},
5: { 'name': 'gjldfaghgk',
'ping': '85',
'score': '1',
'slot': 5,
'team': '1'},
6: { 'name': 'PAUL S2',
'ping': '98',
'score': '4',
'slot': 6,
'team': '1'}},
'queryid': '1.1',
'sapp': '10.2.1 CE',
'sapp_flags': '1',
'score_t0': '23',
'score_t1': '37',
'team_t0': 'Red',
'team_t1': 'Blue',
'teamplay': '1'}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
HaloServerQuery-1.0.1.tar.gz
(16.8 kB
view hashes)
Built Distribution
Close
Hashes for HaloServerQuery-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb323179c17d4fb0058e8e9d538b2aef65928868abf3a383326de978006072b1 |
|
MD5 | 0f39a08b0e63f7467e6970a83e03d369 |
|
BLAKE2b-256 | 9c96cf3fa56f1a8d2d135519e7bb851c917aeca2dc2d939a76099c7a70e3836f |