/siren

Python package for authenticating and communicating with a Minecraft server using the Minecraft RCON protocol

Primary LanguagePythonMIT LicenseMIT

McRcon

Python package for authenticating and communicating with a Minecraft server using the Minecraft RCON protocol

Sample Usage

import asyncio

from siren import RconClient


async def test_auth() -> None:
    async with RconClient("123.2.3.4", 25575, "AVeryRealPassword") as client:
        print(await client.send("list"))


if __name__ == '__main__':
    loop = asyncio.new_event_loop()
    loop.run_until_complete(test_auth())