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.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

aio_mc_rcon-3.4.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aio_mc_rcon-3.4.1.tar.gz
Algorithm Hash digest
SHA256 c1623ed54a56b302abd76a7be9fbeab1275285bf58f8109a78169f82c01cdd13
MD5 6e8caa5182b341a73a4c9bdcf6b50833
BLAKE2b-256 cfa9afb064b4092e60608ee297de158a4259b2a5a54d8e4c34256b60f25b239e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aio_mc_rcon-3.4.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.10.7 Darwin/23.6.0

File hashes

Hashes for aio_mc_rcon-3.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8cb967505b3801d341e949a36afa6ea62ffe6f999cfa9fe72108378347ef440
MD5 fbc644f7388bc1945e648a77e1f95375
BLAKE2b-256 445eac4d4a68cb47a8dcc1514cbc2866167fa6729d114bbef7848014030ef06e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page