Skip to main content

A high-performance, asynchronous Python library for Minecraft server management (RCON, Status, SLP).

Project description

mcnexus logo

mcnexus

Production-ready, high-performance asynchronous Minecraft library for Python.

PyPI version Last Commit License Python Versions


🚀 Overview

mcnexus is a modern Python library built from the ground up to provide reliable, asynchronous tools for interacting with Minecraft servers. Whether you are building a monitoring dashboard, a cross-server chat system, or a complex management bot, mcnexus has you covered.

Key Features

  • Robust RCON: Handles multi-packet responses (up to 4KB+) and automatic reconnection.
  • 🌍 Server Status (SLP): Full support for Modern (1.7+) and Legacy (pre-1.7) protocols.
  • 📡 DNS & SRV Support: Automatically resolves records like mc.hypixel.net to the correct IP and port.
  • Async-First: Built on top of asyncio for high-concurrency environments.
  • 💎 Clean API: Beautiful, documented models and developer-friendly error messages.

📦 Installation

pip install mcnexus

📖 Documentation

For full documentation and API reference, visit:
👉 https://bogdan11212.github.io/mcnexus/


⚡ Quick Start

Get Server Status

import asyncio
from mcnexus import status

async def main():
    info = await status("mc.hypixel.net")
    if info.online:
        print(f"[{info.ping:.1f}ms] {info.players_online}/{info.players_max} players online.")
        print(f"MOTD: {info.motd_clean}")

asyncio.run(main())

Run RCON Commands

from mcnexus import RCONClient

async def run_rcon():
    async with RCONClient("127.0.0.1", 25575, "secret_password") as rcon:
        response = await rcon.command("list")
        print(response.clean)

🤝 Contributing

Contributions are welcome! Please check out our Contributing Guidelines and Code of Conduct.

📄 License

mcnexus is released under the MIT License. See LICENSE for details.

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

mcnexus-1.3.0.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

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

mcnexus-1.3.0-py3-none-any.whl (48.0 kB view details)

Uploaded Python 3

File details

Details for the file mcnexus-1.3.0.tar.gz.

File metadata

  • Download URL: mcnexus-1.3.0.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mcnexus-1.3.0.tar.gz
Algorithm Hash digest
SHA256 3079b1a474d9f298ea9321fc9ed522e6cb7dbde6516f8c0a7718bdf61d3d16b2
MD5 5b9fbc0ad2e70152ce1a9b97b81355a6
BLAKE2b-256 f70771f940bb5de2341c84485fe8cce66139cdea40b913b2d0d78e6f9279dc0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcnexus-1.3.0.tar.gz:

Publisher: release.yml on Bogdan11212/mcnexus

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

File details

Details for the file mcnexus-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: mcnexus-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 48.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mcnexus-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e68113a171cdffdb847578adab3311b27f88fff13f62204ffbfd60b6cb37b8e
MD5 f3675c8c42b4d392eb9ed56fa3a119c4
BLAKE2b-256 439292aef1809c110223c42a7e115016f0baee1434743a89f10354504ea68204

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcnexus-1.3.0-py3-none-any.whl:

Publisher: release.yml on Bogdan11212/mcnexus

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