An async wrapper for the BattlEye RCON protocol
Project description
berconpy
An asynchronous Python wrapper over the BattlEye RCON protocol.
Features
- Easy to use event-based interface
- Automatic network loss recovery
- Included extension for using Arma-related commands
Basic Usage
import asyncio
import berconpy
client = berconpy.AsyncRCONClient()
IP = "XXX.XXX.XXX.XXX"
PORT = 9999
PASSWORD = "ASCII_PASSWORD"
@client.dispatch.on_login
async def on_login():
print("We have logged in!")
async def main():
async with client.connect(IP, PORT, PASSWORD):
players = await client.send_command("players")
print(players)
asyncio.run(main())
See the documentation for more details.
Installation
(Python 3.10 or higher is required)
This package can be installed from PyPi using the following command:
# Linux/macOS
python3 -m pip install berconpy
# Windows
py -m pip install berconpy
If you want to install the development version instead, and you have git installed:
pip install git+https://github.com/thegamecracks/berconpy
Related resources
License
This project uses the MIT License.
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
berconpy-2.1.0b2.tar.gz
(33.4 kB
view hashes)
Built Distribution
berconpy-2.1.0b2-py3-none-any.whl
(42.4 kB
view hashes)
Close
Hashes for berconpy-2.1.0b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53a0f4eeae33948e6747cdf611a9c0030b4d3d6207b353a841bf2f1154042a51 |
|
MD5 | 1aa9365628df314f033e6145b45260ac |
|
BLAKE2b-256 | be316ac77b9e2a260fe89db1e8b5a95c94a674e6a9b72c0864514bae0ffad643 |