Skip to main content

A tool to get basic information from Minecraft: Bedrock Edition servers.

Project description

py-mcpe-stats

PyPI

Introduction


mcstats (aka py-mcpe-stats) is a Python software that allows you to ping a Minecraft: Bedrock edition server for basic information.

Install


You are required to have Python >= 3.6 installed on your computer.

Install via pip

Run pip install mcstats in your terminal, and it will install the latest version of this project in your Python environment.

Install from source

Clone this repository and run the following in the root folder of this project:

python setup.py build install

Usage


Query with CLI

After installation, the mcstats command will be available in your Python environment. You can perform a query with the following command: mcstats localhost.

Example:

$ mcstats play.lbsg.net
Ping id: 850756528
Server id: 123456789
Game id: MCPE
Server name: §3US§8> SM Become a Creeper
Game protocol: 422
Game version: 1.16.210
Num players: 5479
Max players: 38865
Hash code: -1
Motd: None
Gamemode: None
Hash code: 1189580737

You can also specify the port with the -p option (e.g.: mcstats localhost -p 19133). For more options, please run mcstats --help.

Use as a module

You can also use the API by writing the following code in your project:

from mcstats import mcstats

host = "localhost"
port = 19132

with mcstats(host, port=port, timeout=10) as data:
    # data is a StatsServerData object
    print(data)

License


MIT © 2016-2021 w-gao

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

mcstats-0.0.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

mcstats-0.0.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file mcstats-0.0.1.tar.gz.

File metadata

  • Download URL: mcstats-0.0.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2

File hashes

Hashes for mcstats-0.0.1.tar.gz
Algorithm Hash digest
SHA256 38739b48382ea5fd126f3187423b7aed35d7e7e7af9be1bbf1c703098fada87a
MD5 883ccaaba7ed0c5fe20ad7f40a0de4b5
BLAKE2b-256 9ae14ac72c24d48e39ed88f1960e59d0ea51279116c9d2fdd82434874363278d

See more details on using hashes here.

File details

Details for the file mcstats-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: mcstats-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2

File hashes

Hashes for mcstats-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 faeed2362da0412074a1ac8b162f19567740ff77cbeecd455eadf5149ce938ea
MD5 aa7919fad034c4607d9bc668b31638cb
BLAKE2b-256 958cfb8f49bb1eb866f91b759c7841b3d97534fae52cd81dde8395ecbbc1c4f8

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