Skip to main content

Quake3 Async RCON Client

Project description

Urban Terror Quake3 Async RCON Client

Requirements

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 = AsyncRconClient(
        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-2.1.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

urt30arcon-2.1.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file urt30arcon-2.1.0.tar.gz.

File metadata

  • Download URL: urt30arcon-2.1.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for urt30arcon-2.1.0.tar.gz
Algorithm Hash digest
SHA256 59e0a692c48a1a83a3bd15a52b1c23973fa2130b8600eec940f51b888bb1c575
MD5 d80ee199e2f463d182277e4bbae19092
BLAKE2b-256 f8b64b22b9330d008f3450c1272ba5ad5831fb6d3495f89a59ff1c6772a551c2

See more details on using hashes here.

File details

Details for the file urt30arcon-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: urt30arcon-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for urt30arcon-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 560279042ae2b0b2567931466a55b248f2f1710e807ddacc90f45ad09eeae40b
MD5 6e58de8ed1a8dc15f471bc6dbd5062ca
BLAKE2b-256 38060b936bd7cbb9ee1598685900c3f657f9085f533d5d2885c82fe7a4ffc0ad

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