Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A library to query information of Goldsrc and Source servers.

Project description

SourceWatch

Python 3 MIT library to query information from Valve's Goldsrc and Source servers. A full implementation of http://developer.valvesoftware.com/wiki/Server_Queries

Usage

import SourceWatch

server = SourceWatch.Query('steamcalculator.com', 27015)
print(server.ping())
print(server.info())
print(server.players())
print(server.rules())

Info output:

{
  "info": {
    "game_app_id": 70,
    "game_description": "Half-Life",
    "game_directory": "valve",
    "game_map": "crossfire",
    "game_version": "1.1.2.2/Stdio",
    "players_bot": 0,
    "players_current": 0,
    "players_human": 0,
    "players_max": 12,
    "server_name": "SteamCalculator.com #1 HLDM",
    "server_os": "l",
    "server_password_protected": 0,
    "server_port": 27015,
    "server_protocol_version": 48,
    "server_steam_id": 90119214309364746,
    "server_type": "d",
    "server_vac_secured": 1
  }
}

Credits

Andreas Klauer Andreas.Klauer@metamorpher.de This project is a fork of https://github.com/frostschutz/SourceLib

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for SourceWatch, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size SourceWatch-0.0.4-py3-none-any.whl (6.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size SourceWatch-0.0.4.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page