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.3.tar.gz (30.1 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.3-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

Details for the file berconpy-3.1.3.tar.gz.

File metadata

  • Download URL: berconpy-3.1.3.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for berconpy-3.1.3.tar.gz
Algorithm Hash digest
SHA256 911a6a88050a14e11e2cec32067c55c4246982d622d394c6939c499e89f3e618
MD5 3ec711a25eaf7246fb42af57da580eda
BLAKE2b-256 3912be7c06e48ab991fa0cbd5afea4060dc8502b6cf148a195a624028c10cd93

See more details on using hashes here.

Provenance

The following attestation bundles were made for berconpy-3.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: berconpy-3.1.3-py3-none-any.whl
  • Upload date:
  • Size: 42.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for berconpy-3.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b251afb30990d5801a357d9d8b2b0f25e4e7b6751989568f08a1bfe7a3a000c6
MD5 e0d6392d9bd339859c6e3e517da8e769
BLAKE2b-256 263fdb87e365a171c9a85ba24f3a424a09e3b4c80e4195749b1a4d333a2886e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for berconpy-3.1.3-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