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

Uploaded Python 3

File details

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

File metadata

  • Download URL: urt30arcon-2.0.1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","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.1.tar.gz
Algorithm Hash digest
SHA256 112fe9987b364c44021e847be13dd538dc978c55a592594667ffb956889a5607
MD5 caba0125e594286451e073dbe8492318
BLAKE2b-256 a4f16e1266189e8e80134a33e6df38f1bac8bf13083caed1d207b38be40e1ec2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: urt30arcon-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b40653c670302d9cef6270c5bc66ab5652601f8bb4198ff1d9fd6b8dde5dfa3
MD5 0adab1471e08e5c1e728e30260c07d04
BLAKE2b-256 cf22443aea5c13e4a9c5b7e483143efab656722b625c01128c74977bc941837d

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