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_and_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_and_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.2.0

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.2.0
File Size Uploaded Provenance
rconx-0.2.0.tar.gz 31.4 kB With provenance Details

Built distribution (wheel)

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

Total release size: 76.5 kB

Release files / rconx-0.2.0.tar.gz

Download URL rconx-0.2.0.tar.gz
Size 31.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f6560cafcb7e91c7cebbcbb6c9716cac6b9b5e3bfa2d6e0e74b1e58d61f5d3ee
BLAKE2b-256 checksum
How to use checksums
e36cb4db38e68c34d4434f59ea7e9e7542959549c6193b565a7ef60b88740ea3
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 19, 2026.

Transparency log

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

Download URL rconx-0.2.0-py3-none-any.whl
Size 45.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44d6c3c27b122f48b9e6e00045f68c7dad1bea35dff9b735d85d341aae5bafe0
BLAKE2b-256 checksum
How to use checksums
9a588b6083bee345cac34109173110c539e0cad47b5e36e8821b3fdef9366095
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 19, 2026.

Transparency log

Security for rconx 0.2.0

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.2.0.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 19, 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