Skip to main content

rconx

License PyPI Python

rconx is a Python library for communicating with TCP servers that use the Source RCON packet format. It provides synchronous and asynchronous clients for authentication and command execution, together with servers for exposing an application's own command handlers over RCON.

The clients collect command results using selectable presets, including SRCDS, Minecraft, and Cuberite. Low-level clients and servers are available for applications that need to exchange individual RCON packets. The command-line interface executes commands from a terminal or script.

Installation

rconx supports Python 3.8 and later, with best-effort compatibility for Python 3.6 and 3.7. The examples below use Python 3.8 or later.

rconx is available on PyPI:

python -m pip install rconx

Quick start

These examples execute list on a Minecraft server with RCON enabled.

Synchronous client

from rconx import RconClient, RconPreset

with RconClient.create("127.0.0.1", 25575, RconPreset.minecraft) as client:
	client.connect()
	client.authenticate("your-rcon-password")
	response = client.execute("list")
	print(response.text)

Asynchronous client

import asyncio

from rconx import AsyncRconClient, RconPreset


async def main():
	async with AsyncRconClient.create("127.0.0.1", 25575, RconPreset.minecraft) as client:
		await client.connect()
		await client.authenticate("your-rcon-password")
		response = await client.execute("list")
		print(response.text)


asyncio.run(main())

Documentation

  • The client guide describes client usage, presets, command results, and error handling. It also records compatibility and testing status for individual servers.
  • The server guide describes business callbacks, connection handling, and service lifecycle.
  • The command-line guide describes installation, command execution, interactive mode, and output handling.

License

rconx is licensed under LGPL-3.0-only.

Metadata

Release files for rconx 0.1.1

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

Source distribution (sdist)

Source distribution for rconx 0.1.1
File Size Uploaded Provenance
rconx-0.1.1.tar.gz 31.1 kB With provenance Details

Built distribution (wheel)

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

Total release size: 76.0 kB

Release files / rconx-0.1.1.tar.gz

Download URL rconx-0.1.1.tar.gz
Size 31.1 kB
Tags Source
SHA-256 checksum
How to use checksums
51fbefa76adb59e6fcee6f40f735e24a464e5c2e15dfa5592276ea9dec183463
BLAKE2b-256 checksum
How to use checksums
7948adb818cafcf96afed34899c1149f9e0f2085bd5d228db7bf57cbcfebcbf6
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 Oct 17, 2026.

Transparency log

Release files / rconx-0.1.1-py3-none-any.whl

Download URL rconx-0.1.1-py3-none-any.whl
Size 44.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d8559a3e86b3569de79ae7737fea7784f1feb2aaa92470dc0bb3275cc9e89c8
BLAKE2b-256 checksum
How to use checksums
10d5322f423e3c4cf2665b5854bf6f8f8138f3b5fc4ba53be6c2b263056ddb23
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 Oct 17, 2026.

Transparency log

Security for rconx 0.1.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rconx-0.1.1.tar.gz

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 Oct 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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