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.0.3.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.0.3-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: urt30arcon-2.0.3.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.0.3.tar.gz
Algorithm Hash digest
SHA256 3d9145739fb8ea2d00051e43f794ec03a44c0c12f5fa35afdbb0fa1ae063ee3f
MD5 34d3f4abdf86e5c95a7cd8c9a85e1c9c
BLAKE2b-256 3a2a3ddd6c97715f90e2e14a2850c9d06f5c8af814d8e6ac17bdda92699be61f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: urt30arcon-2.0.3-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.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c7606deb50b79977cb9891c9ddc36f24d657315ec065ae5e2a000ca37c2a5ae2
MD5 a4ddfd2e210a36c304e4893e0d5daec1
BLAKE2b-256 2887ddfec7976020cefe9d1965365cfb1ada624644a2b539c14c0c8ff161d08c

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