The unofficial python library for interacting with the mcstatus.io API.
Project description
Python MCStatus
Python MCStatus is a library which wraps around the mcstatus.io api. It is developed very similar to the node-mcstatus npm package. It's essentially the same just ported to python.
Table of Contents
Installation
pip install python-mcstatus
Usage
Java Status
from python_mcstatus import JavaStatusResponse, statusJava
host = 'demo.mcstatus.io'
port = 25565
query = True
response: JavaStatusResponse = statusJava(host, port, query) # port is optional and defaults to 25565
# You can receive and error in the above when the response is not 200, this copies the functionality from the node library.
Bedrock Status
from python_mcstatus import BedrockStatusResponse, statusBedrock
host = 'demo.mcstatus.io'
port = 19132
response: BedrockStatusResponse = statusBedrock(host, port) # port argument is optional and defaults to 19132
License
python-mcstatus
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_mcstatus-0.0.1.tar.gz
(8.8 kB
view hashes)
Built Distribution
Close
Hashes for python_mcstatus-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3a533afda75b95011d60ca20f7e6530bdafead696c713748754ba4b08884eeb |
|
MD5 | 60dcd65a9d64b0294133bf751ce7b9fb |
|
BLAKE2b-256 | efde6186eae1581a24b0885fa5ceeccd4d5cd6c4e1d46eb1011a704342839a97 |