Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spezifanta/SourceWatch
Python implementation of Valve's GoldSrc and Source server query protocol.
https://github.com/spezifanta/SourceWatch
gameserver goldsrc steam valve
Last synced: 3 months ago
JSON representation
Python implementation of Valve's GoldSrc and Source server query protocol.
- Host: GitHub
- URL: https://github.com/spezifanta/SourceWatch
- Owner: spezifanta
- License: mit
- Created: 2018-10-09T20:28:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-06T20:08:47.000Z (about 1 year ago)
- Last Synced: 2024-08-03T18:20:57.288Z (6 months ago)
- Topics: gameserver, goldsrc, steam, valve
- Language: Python
- Homepage:
- Size: 124 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- RAWR - SourceWatch - Python implementation of Valve's GoldSrc and Source server query protocol. (Gaming / GoldSrc / Source - Web tools)
README
# 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 SourceWatchserver = 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
This project is a fork of https://github.com/frostschutz/SourceLib