aio-mc-rcon-3.2.0
توضیحات
An async library for utilizing remote console on Minecraft Java Edition servers
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aio-mc-rcon-3.2.0 |
| نام | aio-mc-rcon |
| نسخه کتابخانه | 3.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Milo Weinberg |
| ایمیل نویسنده | iapetus011@gmail.com |
| آدرس صفحه اصلی | https://github.com/Iapetus-11/aio-mc-rcon |
| آدرس اینترنتی | https://pypi.org/project/aio-mc-rcon/ |
| مجوز | MIT |
# 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](https://github.com/Iapetus-11/aio-mc-rcon/tree/main/examples).
## 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.*
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl aio-mc-rcon-3.2.0:
pip install aio-mc-rcon-3.2.0.whl
نصب پکیج tar.gz aio-mc-rcon-3.2.0:
pip install aio-mc-rcon-3.2.0.tar.gz