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

Uploaded Python 3

File details

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

File metadata

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

See more details on using hashes here.

File details

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

File metadata

  • Download URL: urt30arcon-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e1a482659147afdf8e412f091361d8c1f47cfcaeb07db3899f82e8340db067f
MD5 88f78769f337e87f741da093807cfd83
BLAKE2b-256 a7145f45bde420f3f395ea2781569f4a25c815699e5dc5c4b0ce26decfeb0580

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