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.2.tar.gz (12.5 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.2-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: urt30arcon-2.1.2.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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.2.tar.gz
Algorithm Hash digest
SHA256 208a80be89b4a1b344648fd54fd535403a7c96a3a0bd59c3d3fca219e7027be4
MD5 e27bec996671e766a8fee018f48da284
BLAKE2b-256 bae865907cd9c9ecc70247ee5e856ac781276e022825bc0bf3328005a2627f27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: urt30arcon-2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4599d8b6dc915517c2075ae0a53e25f01e3154ba5c1891b4b9a23954d5c3de55
MD5 dd3aa09ed48b90fc8701c21940cbc69e
BLAKE2b-256 1b99b50eee0c9c3d37b3a1e3b7badf0d1b7c356770f75e2392bd7ee88fec6047

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