Skip to main content

An async library for utilizing remote console on Minecraft Java Edition servers

Project description

Aio-MC-RCON Code Quality PYPI Version PYPI Downloads

An asynchronous RCON client/wrapper written in Python for Minecraft Java Edition servers!

Installation

pip install -U aio-mc-rcon

Example Usage

Documentation

class aiomcrcon.Client(host: str, port: int, password: str):

  • Arguments:
    • host: str - The hostname / ip of the server to connect to.
    • port: int - The port of the server to connect to.
    • password: str - The password to connect, can be found as the value under rcon.password in the server.properties file.
  • Methods:
    • connect(timeout: int = 2) - where timeout has a default value of 2 seconds.
    • send_cmd(cmd: str, timeout: int = 2) - where cmd is the command to be executed on the server and timeout has a default value of 2 seconds.
    • close() - closes the connection between the client and server.

exception aiomcrcon.RCONConnectionError

  • Raised when the connection to the server fails.

exception aiomcrcon.IncorrectPasswordError

  • Raised when the provided password/authentication is invalid.

exception aiomcrcon.ClientNotConnectedError

  • Raised when the connect() method hasn't been called yet, and commands cannot be sent.

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

aio_mc_rcon-3.4.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

aio_mc_rcon-3.4.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file aio_mc_rcon-3.4.2.tar.gz.

File metadata

  • Download URL: aio_mc_rcon-3.4.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.7 Darwin/25.2.0

File hashes

Hashes for aio_mc_rcon-3.4.2.tar.gz
Algorithm Hash digest
SHA256 e8e6d653025b64ac15b90a00ba84f60f5d9aef149f8241e056c4a81008a10bf3
MD5 a41539072832b78da235f67c009302bb
BLAKE2b-256 b0ff9d2925b11292055a5c746157e9aa2eecd0909824ced7ae8dd92f3174b354

See more details on using hashes here.

File details

Details for the file aio_mc_rcon-3.4.2-py3-none-any.whl.

File metadata

  • Download URL: aio_mc_rcon-3.4.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.7 Darwin/25.2.0

File hashes

Hashes for aio_mc_rcon-3.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2e596ea4c79e58f16c59519d272286e7557d69da65607e4142035c5e868da2fe
MD5 51c1b70f716d5fda194627cda356d25b
BLAKE2b-256 b7a129316f2eb5b5a8482fd0ab93a63f24ca1215350210f4a0fc6f01322360d8

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