Quake3 Async RCON Client
Project description
Quake3 Async RCON Client
Requirements
- Game: Urban Terror 4.3.4
- Python: 3.11+
Usage
import asyncio
import os
from urt30arcon import AsyncRconClient
async def async_main() -> None:
rcon_host = os.getenv("RCON_HOST", "127.0.0.1")
rcon_port = int(os.getenv("RCON_PORT", "27960"))
rcon_pass = os.environ["RCON_PASS"]
client = await AsyncRconClient.create_client(
host=rcon_host,
port=rcon_port,
password=rcon_pass,
)
await client.bigtext("hello world")
game = await client.game_info()
if game.players:
first_player = game.players[0]
await client.slap(slot=first_player.slot)
if __name__ == '__main__':
asyncio.run(async_main())
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
urt30arcon-1.2.2.tar.gz
(14.1 kB
view hashes)
Built Distribution
urt30arcon-1.2.2-py3-none-any.whl
(12.7 kB
view hashes)
Close
Hashes for urt30arcon-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b80ca6fd95add36eac1c0e00341d8616d8c0a0e9226448c0ea5b583349ef53ab |
|
MD5 | 7be90c9ab433031ec18b105370407695 |
|
BLAKE2b-256 | 8c22639101ccc34372fde45565cbdfc8daec7e7f582f204d8065206072e6e7b5 |