Skip to main content

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

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.

Metadata

Release files for python-mcstatus 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-mcstatus 0.0.2
File Size Uploaded Provenance
python_mcstatus-0.0.2.tar.gz 10.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for python-mcstatus 0.0.2
File Interpreter ABI Platform
python_mcstatus-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.6 kB

Release files / python_mcstatus-0.0.2.tar.gz

Download URL python_mcstatus-0.0.2.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5e696c0faa30dd12584147196de2cd292cfb740ccbfc0cd32c0780e7dbaf4b9c
BLAKE2b-256 checksum
How to use checksums
16f93b87209b6f492aa15993403a5ba54bf152c3b0ae55bdf7485669193975b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.24.1

Release files / python_mcstatus-0.0.2-py3-none-any.whl

Download URL python_mcstatus-0.0.2-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
000a643ea3d68138a3c439daf566570a6d6ea1db95e54f324471fa0a52e5b738
BLAKE2b-256 checksum
How to use checksums
e7a3255b0b31349eae62b195523dc454f9c88f67dae3220f10a4211ecc76c03c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.24.1

Security for python-mcstatus 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page