Skip to main content

Quake3 Async RCON Client

Project description

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 = 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.4.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

urt30arcon-1.2.4-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: urt30arcon-1.2.4.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","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-1.2.4.tar.gz
Algorithm Hash digest
SHA256 0ed3ba3c6cd2ca09facdf37c2af0695a02d7979cd114ab052b999c2e86f24221
MD5 a3dee442a933940eedd4786887d61add
BLAKE2b-256 d88fc41ea4b13b864572d78c5fb70bcac04d5472e04fc14b5ab8c55d66a1253a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: urt30arcon-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","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-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 146aa025115e295fd74de6e8f00a33d16dae9ec25e4e10b1483c6e1a574569e5
MD5 2fd48a0daf8b6ed59e99ac7a7648fcaa
BLAKE2b-256 8fa4990c081f01e47821cb0e2a6c56d5641545a4765914e58ffcf01d4b086d22

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