Skip to main content

Client implementation of Minecrafts RCON protocol using asyncio

Project description

asyncrcon

PyPI 

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

pip install asyncrcon

Links

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')
    try:
        await rcon.open_connection()
    except AuthenticationException:
        print('Login failed: Unauthorized.')
        return

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

    rcon.close()

© 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.

Source Distribution

asyncrcon-1.1.4.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

asyncrcon-1.1.4-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file asyncrcon-1.1.4.tar.gz.

File metadata

  • Download URL: asyncrcon-1.1.4.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for asyncrcon-1.1.4.tar.gz
Algorithm Hash digest
SHA256 3c8600bf76a7888687520c712414e5a2f521bb9648f3504980968445c052d57c
MD5 3f1715196c94a781d3172f71f20c266c
BLAKE2b-256 c8eda74746140e33d5c97e41cf898fe3bf82b7103546eb3a9aaa317162c2da85

See more details on using hashes here.

File details

Details for the file asyncrcon-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: asyncrcon-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for asyncrcon-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fe748aa25980859399b4638f6ad7d1166bca45efb495fa3963ae1c84e30ed752
MD5 d61ba13bc5aa357b8245c88dcbac4e11
BLAKE2b-256 b8540d11b9136db5b774469b7630d68f415dece3a7edfba375e0e87cb5681500

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page