Python class for interacting with Project Zomboid servers using RCON
Project description
zomboid-rcon version 0.2.2 (Beta)
A Python package for interacting with Project Zomboid Servers using RCON.
This project uses the timeout_decorator package which is Unix/Linux only. Timeouts will cause errors on Windows due to this.
How to use
Example:
from zomboid_rcon import ZomboidRCON
if __name__ == "__main__":
pz = ZomboidRCON(ip='localhost', password='myPassword')
command = pz.serverMsg("You dead yet?")
print(command.response)
print(command.response)
Outputs:
Message sent.
True
Available commands:
The follow commands are available through built-in methods:
- serverMsg
- players
- save
- quit
- help
- showoptions
Or execute any command using the command method:
from zomboid_rcon import ZomboidRCON
if __name__ == "__main__":
pz = ZomboidRCON(ip='localhost', password='myPassword')
command = pz.command("servermsg", "Hello!")
To do:
- Add all possible commands
- Find alternate solution for timeouts for Windows
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
zomboid_rcon-0.2.2.tar.gz
(41.3 kB
view hashes)
Built Distribution
Close
Hashes for zomboid_rcon-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 425293e927a1877db60fc0c233e3efeaa6d4682d7b0cabf62009c42875fd17c2 |
|
MD5 | f60e43e5eb8d30b92f5e75227983074e |
|
BLAKE2b-256 | 3177f2f5864d7ad4a9ec5f995ecea058fc3adfeda789a9ffb9ea799896b34f4e |