Skip to main content

Asynс lib to get information about Minecraft server

Project description

MCaio

Asynс lib to get information about Minecraft Java server using SLP

Project uses code from clarence112

Install:

From Gitea

pip install --extra-index-url https://git.orudo.ru/api/packages/trueold89/pypi/simple/ mcaio

From PyPi

pip install trueold89/mcaio

Build:

Deps: python3

Clone repo:

git clone https://git.orudo.ru/trueold89/mcaio --depth=1 && cd mcaio

Create venv:

python -m venv venv && . venv/bin/activate

Install SetupTools:

pip install setuptools

Build:

python3 setup.py sdist

Usage:

As lib:

Import MCServer class::

from mcaio.client import AIOMCServer as AIOMC

Create object:

mc = AIOMC("localhost", 25565)

Await property:

name = await mc.name
print(name)
# Paper 1.20.4

Properties:

Property Description
name Server name
motd Server motd
players_count Current number of players on the server
maxplayers Max number of players on the server

As cli:

MC_HOST=localhost MC_PORT=25565 mcaio name
# Paper 1.20.4

Args:

Arg Description
name Server name
motd Server motd
pcount Current number of players on the server
pmax Max number of players on the server

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

mcaio-0.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file mcaio-0.1.tar.gz.

File metadata

  • Download URL: mcaio-0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for mcaio-0.1.tar.gz
Algorithm Hash digest
SHA256 387291d96d1bcf96bb28feae036dfee23e408f42f9d5bef4dbbcac727ca67561
MD5 ff188a492fdc20416132361b2cfea011
BLAKE2b-256 7aebdce40f73d2f42e104ef9a7ac372d6a60f74e3c63ae5b23bf3ead334bdb62

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