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 Arma 3 commands and events
Basic Usage
import asyncio
import berconpy
client = berconpy.RCONClient()
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.
Migrating to v3
v3.0.0 is a major rewrite of this library to isolate generic BattlEye RCON functionality from Arma 3 / DayZ-specific features. For users that need to work with other games like Arma Reforger, you must use v3.
For v2 users that cannot migrate, ensure that your requirements are pinned
to berconpy~=2.1 to prevent accidentally upgrading to v3.
v2 documentation is still available for the time being.
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
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 berconpy-3.1.2.tar.gz.
File metadata
- Download URL: berconpy-3.1.2.tar.gz
- Upload date:
- Size: 30.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96f8c1299aec87e9733af492e3c8f683b16ab1bf9e55fb4d61bf8156a215ab78
|
|
| MD5 |
8472af9dca2319a6b4b9bca787d4d4e5
|
|
| BLAKE2b-256 |
a9f30c876e87a654fa9b44f91e89a6b602abe7d8ef8476b978238bd72a763bf6
|
Provenance
The following attestation bundles were made for berconpy-3.1.2.tar.gz:
Publisher:
python-publish.yml on thegamecracks/berconpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
berconpy-3.1.2.tar.gz -
Subject digest:
96f8c1299aec87e9733af492e3c8f683b16ab1bf9e55fb4d61bf8156a215ab78 - Sigstore transparency entry: 946793601
- Sigstore integration time:
-
Permalink:
thegamecracks/berconpy@f78db298e74bf5c5885abde0ba91ac1d00ee0ef1 -
Branch / Tag:
refs/tags/v3.1.2 - Owner: https://github.com/thegamecracks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f78db298e74bf5c5885abde0ba91ac1d00ee0ef1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file berconpy-3.1.2-py3-none-any.whl.
File metadata
- Download URL: berconpy-3.1.2-py3-none-any.whl
- Upload date:
- Size: 41.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fefb3880c54bce97b7edce0e393e8fe7620a3bdf8481f6e109c02598846571c
|
|
| MD5 |
8437fefa88eac47606220e0982ccd4e1
|
|
| BLAKE2b-256 |
a67400fdc71a6326dda8ed3ba9d36a200c7a2ace85615b953a4c16eb93da4c52
|
Provenance
The following attestation bundles were made for berconpy-3.1.2-py3-none-any.whl:
Publisher:
python-publish.yml on thegamecracks/berconpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
berconpy-3.1.2-py3-none-any.whl -
Subject digest:
1fefb3880c54bce97b7edce0e393e8fe7620a3bdf8481f6e109c02598846571c - Sigstore transparency entry: 946793609
- Sigstore integration time:
-
Permalink:
thegamecracks/berconpy@f78db298e74bf5c5885abde0ba91ac1d00ee0ef1 -
Branch / Tag:
refs/tags/v3.1.2 - Owner: https://github.com/thegamecracks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f78db298e74bf5c5885abde0ba91ac1d00ee0ef1 -
Trigger Event:
push
-
Statement type: