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 details)
Built Distribution
File details
Details for the file urt30arcon-1.2.2.tar.gz
.
File metadata
- Download URL: urt30arcon-1.2.2.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a643d4a19830817d0930dcbde909191640901ec502dc14f4872f1dd49d5f03a |
|
MD5 | 4c0a7207b926ff11e2bf7c7041faa2fb |
|
BLAKE2b-256 | 55217133a00d4b1d41a2256a4334bc61a96cc5cf36280a8639adc6d2a6e108af |
File details
Details for the file urt30arcon-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: urt30arcon-1.2.2-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b80ca6fd95add36eac1c0e00341d8616d8c0a0e9226448c0ea5b583349ef53ab |
|
MD5 | 7be90c9ab433031ec18b105370407695 |
|
BLAKE2b-256 | 8c22639101ccc34372fde45565cbdfc8daec7e7f582f204d8065206072e6e7b5 |