Skip to main content

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


Download files

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

Source Distribution

SourceWatch-0.0.4.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SourceWatch-0.0.4-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file SourceWatch-0.0.4.tar.gz.

File metadata

  • Download URL: SourceWatch-0.0.4.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for SourceWatch-0.0.4.tar.gz
Algorithm Hash digest
SHA256 78fcd05665f547e1c6c7546f2fac1e51c7f8400743d9f26b08c6f8221bf0c3eb
MD5 09ac22f23d15df35b719357f65fe2c2e
BLAKE2b-256 4e7884f716e43aa87ffcbcf16d57c0decc528c6bcffe128f000ff0cd72a15843

See more details on using hashes here.

File details

Details for the file SourceWatch-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: SourceWatch-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for SourceWatch-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 256928ef9ea59522ba2040db84e712b494aa16f104e942d3c021db0b21b41068
MD5 9553fea0398ae8f8de64c061a6d14925
BLAKE2b-256 dec748d2dbbd94c9d8c23fee3af35e2bc63ae4e2aaf6741cd55b5a008abe95ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page