Skip to main content

pymcsrvstatus

Discord Actions Status PyPI - Version PyPI - Python Version PyPI - License

A simple async API wrapper for the mcsrvstat.us API.

Usage

import asyncio
from pymcsrvstatus import McSrvStatusClient

async def example(address: str) -> None:
    async with McSrvStatusClient(extra_user_agent="pymcsrvstatus example") as client:
        if await client.check_if_online(address):
            print("Wynncraft is online!")
        else:
            print("Wynncraft is offline!")

        status = await client.fetch(address)
        assert status.online is True
        print(status.protocol)  # Protocol(version=769, name='1.21.4')
        print(status.version)  # "1.21.4+"
        print(status.players)  # Players(online=2704, max=3500, players=[])

        print(client.get_icon_url(address))  # play.wynncraft.com

asyncio.run(example(address="play.wynncraft.com"))

Metadata

Release files for pymcsrvstatus 2.0.1

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

Source distribution (sdist)

Source distribution for pymcsrvstatus 2.0.1
File Size Uploaded Provenance Actions
pymcsrvstatus-2.0.1.tar.gz 3.7 kB Without provenance Details for pymcsrvstatus-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pymcsrvstatus 2.0.1
File Interpreter ABI Platform Actions
pymcsrvstatus-2.0.1-py3-none-any.whl Python 3 none any Details for pymcsrvstatus-2.0.1-py3-none-any.whl

Total release size: 8.3 kB

Release files / pymcsrvstatus-2.0.1.tar.gz

Download URL pymcsrvstatus-2.0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
47a0e148c90d5b7b3927a287a4ab471131dc9419c56ae687231b440a4bbf6e15
BLAKE2b-256 checksum
How to use checksums
640b4070b499c4e6c000a45698b8488ed6d9f3e551ae8ad02ae16706e13bc6e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.12 {"installer":{"name":"uv","version":"0.12.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pymcsrvstatus-2.0.1-py3-none-any.whl

Download URL pymcsrvstatus-2.0.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f26a1adb9171def49e4d51e584243b0dc376f93a82be0d5ae1d9ef645d729ec3
BLAKE2b-256 checksum
How to use checksums
72e405d8d83ea0fdbf66a736fae1fd265ce717d3a5160b7d189764ec5e5f5627
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.12 {"installer":{"name":"uv","version":"0.12.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pymcsrvstatus 2.0.1

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.

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