An async library for utilizing remote console on Minecraft Java Edition servers
Project description
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.password
in theserver.properties
file.
- Methods:
connect(timeout: int = 2)
- wheretimeout
has a default value of 2 seconds.send_cmd(cmd: str, timeout: int = 2)
- wherecmd
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
Release history Release notifications | RSS feed
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.2.2.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file aio_mc_rcon-3.2.2.tar.gz
.
File metadata
- Download URL: aio_mc_rcon-3.2.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59439a0cafd2a51ad579bc91271b8dc8ff02417d31dd9cc35e56ba68fe52e1ed |
|
MD5 | 0fbc41c75271be9ff8532ad61331964d |
|
BLAKE2b-256 | 39443a1f9756de33ca320c99c2f248f5d3143f82f16d6f5a738373e34ce153bd |
File details
Details for the file aio_mc_rcon-3.2.2-py3-none-any.whl
.
File metadata
- Download URL: aio_mc_rcon-3.2.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eab224a323e2499a4bc996593691356ac7eb458aed020fbe826d98a22b2452a |
|
MD5 | e7bd4a9116a99cb8636034d45c464e38 |
|
BLAKE2b-256 | b97503122cdc5639eda618e671e6c8cfae8b708479b294d48d78d5292cbdc0f2 |