Skip to main content

An async wrapper for the BattlEye RCON protocol

Project description

berconpy

PyPI Docs

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

berconpy-3.1.2.tar.gz (30.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

berconpy-3.1.2-py3-none-any.whl (41.9 kB view details)

Uploaded Python 3

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

Hashes for berconpy-3.1.2.tar.gz
Algorithm Hash digest
SHA256 96f8c1299aec87e9733af492e3c8f683b16ab1bf9e55fb4d61bf8156a215ab78
MD5 8472af9dca2319a6b4b9bca787d4d4e5
BLAKE2b-256 a9f30c876e87a654fa9b44f91e89a6b602abe7d8ef8476b978238bd72a763bf6

See more details on using hashes here.

Provenance

The following attestation bundles were made for berconpy-3.1.2.tar.gz:

Publisher: python-publish.yml on thegamecracks/berconpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for berconpy-3.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1fefb3880c54bce97b7edce0e393e8fe7620a3bdf8481f6e109c02598846571c
MD5 8437fefa88eac47606220e0982ccd4e1
BLAKE2b-256 a67400fdc71a6326dda8ed3ba9d36a200c7a2ace85615b953a4c16eb93da4c52

See more details on using hashes here.

Provenance

The following attestation bundles were made for berconpy-3.1.2-py3-none-any.whl:

Publisher: python-publish.yml on thegamecracks/berconpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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