Skip to main content

The unofficial python library for interacting with the mcstatus.io API.

Project description

Python MCStatus

PyPI - Version PyPI - Python Version Hatch project


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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_mcstatus-0.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_mcstatus-0.0.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for python_mcstatus-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b3e213c8f93794dcedeb9d42607f42c4341b2ec5c0ef6ee46bef54db95f7cefb
MD5 6ec2d0892d956ab16afc069d199491bf
BLAKE2b-256 03ba0f03beee84d7067546d84a49f6c033f0a357cc2cc1d439603a06910c7b16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_mcstatus-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3a533afda75b95011d60ca20f7e6530bdafead696c713748754ba4b08884eeb
MD5 60dcd65a9d64b0294133bf751ce7b9fb
BLAKE2b-256 efde6186eae1581a24b0885fa5ceeccd4d5cd6c4e1d46eb1011a704342839a97

See more details on using hashes here.

Supported by

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