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
To install this package open your terminal for your workspace and use the following command:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_mcstatus-0.0.2.tar.gz.
File metadata
- Download URL: python_mcstatus-0.0.2.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e696c0faa30dd12584147196de2cd292cfb740ccbfc0cd32c0780e7dbaf4b9c
|
|
| MD5 |
6d34975830211ecccd06207d9a403fe5
|
|
| BLAKE2b-256 |
16f93b87209b6f492aa15993403a5ba54bf152c3b0ae55bdf7485669193975b3
|
File details
Details for the file python_mcstatus-0.0.2-py3-none-any.whl.
File metadata
- Download URL: python_mcstatus-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
000a643ea3d68138a3c439daf566570a6d6ea1db95e54f324471fa0a52e5b738
|
|
| MD5 |
725e2da57e09bd5a1b824f5b3092a507
|
|
| BLAKE2b-256 |
e7a3255b0b31349eae62b195523dc454f9c88f67dae3220f10a4211ecc76c03c
|