Aio-MC-RCON

An asynchronous RCON client/wrapper written in Python for Minecraft Java Edition servers!
Installation
pip install -U aio-mc-rcon
Example Usage
- See the examples folder.
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 underrcon.passwordin theserver.propertiesfile.
- Methods:
connect(timeout: int = 2)- wheretimeouthas a default value of 2 seconds.send_cmd(cmd: str, timeout: int = 2)- wherecmdis 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.
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8e6d653025b64ac15b90a00ba84f60f5d9aef149f8241e056c4a81008a10bf3
|
|
| MD5 |
a41539072832b78da235f67c009302bb
|
|
| BLAKE2b-256 |
b0ff9d2925b11292055a5c746157e9aa2eecd0909824ced7ae8dd92f3174b354
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e596ea4c79e58f16c59519d272286e7557d69da65607e4142035c5e868da2fe
|
|
| MD5 |
51c1b70f716d5fda194627cda356d25b
|
|
| BLAKE2b-256 |
b7a129316f2eb5b5a8482fd0ab93a63f24ca1215350210f4a0fc6f01322360d8
|