Skip to main content

Client implementation of Minecrafts RCON protocol using asyncio

Project description



asyncrcon is a client side implementation of the Minecraft RCON protocol using asyncio sockets for non-blocing socket handling.

pip install asyncrcon


Usage Example

For more examples, see here. Here, we are opening a RCON connection to add a given user to the servers whitelist. Then, we close the connection.

from asyncrcon import AsyncRCON, AuthenticationException

async def add_to_whitelist(user: str):
    rcon = AsyncRCON('loclahost:25575', 'secretRCONPassword')
        await rcon.open_connection()
    except AuthenticationException:
        print('Login failed: Unauthorized.')

    res = await rcon.command('whitelist add {}'.format(user))


© 2020 Ringo Hoffmann (zekro Development)
Covered by the Apache Licence 2.0.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for asyncrcon, version 1.1.4
Filename, size File type Python version Upload date Hashes
Filename, size asyncrcon-1.1.4-py3-none-any.whl (10.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size asyncrcon-1.1.4.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page