Skip to main content

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.

Metadata

Release files for berconpy 3.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for berconpy 3.1.4
File Size Uploaded
berconpy-3.1.4.tar.gz 30.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for berconpy 3.1.4
File Interpreter ABI Platform
berconpy-3.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 72.8 kB

Release files / berconpy-3.1.4.tar.gz

Download URL berconpy-3.1.4.tar.gz
Size 30.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d1cc9c7aa3c7742e65b11abf80487d0f4109b6b2f50dda6712f77a33f6a8d74c
BLAKE2b-256 checksum
How to use checksums
664af8f0e36a2955a809cdad6d6427294c6de68ba78160146cb6e8eb79964cab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 15, 2026.

Transparency log

Release files / berconpy-3.1.4-py3-none-any.whl

Download URL berconpy-3.1.4-py3-none-any.whl
Size 42.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca94dbd2687d36da0f973a43931f677f3cc39cb81de95dfe13d68b550e10e55c
BLAKE2b-256 checksum
How to use checksums
c381b8087c1abf899f91d25a118dc5f87fdb5bb1f510f56b6559ce1e59465d4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 15, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page